HP/UX command to pull file name/date based on date

HI,
Can anyone tell me how to pull the date and file name separated by a space using the find command or any other command. I want to look through several directories and based on a date timeframe (find -mtime -7), output the file name (without the path) and the date(in format mmddyyyy) to a file. I was able to pull the file name with other file information but it had the entire path. If I tried to use the xargs -n 1 basename, I only pull the filename.

I'm trying to pull this information into a text file to pass along to a sql script to load this information into an oracle table.

Thanks,

Linda

Unfortunately HP-UX find does not have the -ls option.
If you have perl installed, you can use

find . -type f -mtime -7 -print |
 perl -nle 'use POSIX; $d=(stat $_)[9]; $_=~s|.*/||; print POSIX::strftime("%m%d%Y", localtime $d), " ", $_'

--
Admins, pls move this to hp-ux!

Thank you so much!! Worked perfectly!!!:slight_smile: