Im very new to bash scripting. I'd like some pointers on how to do this....
If I had a list say of users from a file and I wanted to run finger on each name and append that to a file how could I do this.
for i in [long list from file] do
finger $i >> finger_query_file <--how can I put an empty line after each query '\n' ?
Can anyone show me a good way of doing this thanx
What you have done looks fine as far as it goes. To get a blank line you can append the output from an echo command (with no text) to the file.
Code:for i in `cat myfile` do finger $i >>finger_query_file echo >>finger_query_file done