Search Results

Search: Posts Made By: spirit10
15,286
Posted By methyl
It always helps to know what Shell you have. ...
It always helps to know what Shell you have.

One unrefinded idea which should still work whether or not the file exists. Of couse if the file does not exist, ${src_filename} is blank.
...
15,286
Posted By mirni
If it evaluates src_filename1 as the path, then...
If it evaluates src_filename1 as the path, then it does exist -- it's the directory $AI_LANDING. And it's not empty, so the test passes. All kosher there.

As for your original problem, I'd put it...
15,286
Posted By ygemici
try this #!/bin/ksh AI_LANDING=/searchdir ...
try this
#!/bin/ksh
AI_LANDING=/searchdir
ls -1 ${AI_LANDING}/abc*|while read -r src_filename1 ; do
print "Checking for file $src_filename1 ...."
if [[ ! -s $src_filename1 ]]
then
print -u2...
Showing results 1 to 3 of 3

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