![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Display modified files in ascending order | balareddy | UNIX for Advanced & Expert Users | 1 | 08-13-2008 05:48 AM |
| Ascending & Descending order numbers | pravani1 | Shell Programming and Scripting | 6 | 06-03-2008 07:43 AM |
| list exe files modified before certain dates | fremont | UNIX for Dummies Questions & Answers | 2 | 05-25-2007 09:29 AM |
| list last 10 days modified files | arunkumar_mca | UNIX for Dummies Questions & Answers | 1 | 10-12-2006 04:09 AM |
| how to see disk usage in descending order | asutoshch | UNIX for Dummies Questions & Answers | 8 | 09-18-2001 08:58 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
||||
|
Code:
filetime()
{
perl -e '
use POSIX qw(strftime);
$mtime = (stat $ARGV[0])[9];
print strftime "%Y-%m-%d:%H:%M:%S ", localtime($mtime);
' $1
}
find . -name '*.shl' |\
while read filename
do
echo "$(filetime $filename) $filename"
done | sort
|
|
||||
|
Thanks a lot jim mcnamara, With your help I am able to solve my problem.
Appreciate your help. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| sort by file date |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|