Sample Header Ad - 728x90

Is it possible to read user input with no extra variables?

-2 votes
1 answer
114 views
I want to grep an IP address inside Nginx configuration files. I want to input the IP address with the read command, but I don't want to store input in an additional variable. So I want something like:
grep -ir $(read) /etc/nginx/
What's the correct way to use read inside argument?
Asked by palmasd1 (127 rep)
Jun 2, 2024, 01:42 PM
Last activity: Jun 2, 2024, 05:47 PM