Search Results

Search: Posts Made By: stolz
477,234
Posted By stolz
Thanks guys
All worked as I required -s FILE option was the solution I used in my script and now I am a happy man.
477,234
Posted By stolz
check if file is empty
How do I check if a file is empty in a sh script

I want to test in my shell script if the output file is empty and if it is do one thing and if it isnt empty do another?

any ideas?
3,090
Posted By stolz
pipe through grep
if you pipe to grep -v what you dont want you will get the desired effect.

ie if you didnt want to see files called foo.c you would grep -v foo.c and get the following output:
...
49,542
Posted By stolz
script to change passwords for the same user on multiple servers
I am trying to write a script to change passwords for the same user on multiple servers.

My environment runs purely ssh / scp not rsh / rcp and therefore coping using rcp is not an option.

I...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 04:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy