1
vote
2answers
345 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)
4
votes
1answer
2k 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
912 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
3k 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?