Search Results

Search: Posts Made By: eckertd
2,665
Posted By eckertd
You lost me there...can you post the entire...
You lost me there...can you post the entire script, along with how you intend for it to be called?

You could also add a "set -x" line before your 'if' statement so you can see what values it's...
2,665
Posted By eckertd
If you're looking to see if the specified file...
If you're looking to see if the specified file exists

if [ -f <filename> ]; then
cp ....
else
cp ...
fi

'-f' test if the file exists, and is a regular file (not a directory, etc)

See...
2,665
Posted By eckertd
This may help you figure out your logic: In...
This may help you figure out your logic:

In your 'for' loop:

"var" is going to start with arg1 and get reassigned to the next in the list each iteration until argn
"T1" is always going to be...
Showing results 1 to 3 of 3

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