Search Results

Search: Posts Made By: ultimatix
1,104
Posted By methyl
One idea is to create a reference file with...
One idea is to create a reference file with "touch" with a timestamp at the start of the day, then compare the timestamp.
Not tested with your exact shell.

YYYYMMDD="`date +%Y%m%d`" #...
15,054
Posted By clx
Also try, do [[ -e "$line" ]] && let ...
Also try,


do [[ -e "$line" ]] && let counter=counter+1 || echo "$line not found" ; done < input_file.txt
9,660
Posted By methyl
Please post sample input and sample output making...
Please post sample input and sample output making it clear whether you are checking whether files exist in the current directory or whether you are checking whether file names are contained in a file...
Showing results 1 to 3 of 3

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