awk scripts problem after upgrade from RHEL-2.1 to RHEL-4

Jack Challen jack_challen at ocsl.co.uk
Mon May 15 20:31:37 UTC 2006


Ben Russo wrote:
<snip>
> and it would give you a list of files in the directories that are listed 
> in /u/apps/utilities/idxpath that contain the date string in the range 
> given.

> any ideas?

ls /u/apps/utilities/idxpath | grep -e $(seq -s ' -e ' 060501 060510)


where the final two numbers represent the start and end dates 
respectively. It wouldn't be too hard to script with "expr" so that it 
evaluated your relative dates...

jack
-- 
Jack Challen
Technical Consultant, OCSL.
http://www.ocsl.co.uk/




More information about the redhat-list mailing list