Tagged Questions
1
vote
2answers
50 views
Redirecting Multiple Commands as Input
What is the correct way to redirect the output of multiple commands as input for another command?
e.g.
$ command < (command2 | grep pattern)
3
votes
1answer
378 views
SSH causes while loop to stop
I have finally managed to boil down a problem I have been struggling with for a few weeks. I use SSH with "authorized keys" to run commands remotely. All is fine except when I do it in a while loop. ...
1
vote
1answer
278 views
Behavior of while loop and for loop in unix script
I am trying to read user and server details from file tempo.txt and then check the disk space usage of the file system on that unix account using another script server_disk_space.sh.But I am not able ...
0
votes
2answers
403 views
Shell script how to read input from a file [closed]
I need to read input from a file given in following format.
$ ./process_data.sh arg1 < input_data.txt
How do I read input_data in my shell script process_data.sh?