![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| File modification | panknil | Shell Programming and Scripting | 2 | 10-04-2007 04:04 AM |
| SED for text file modification | gfhgfnhhn | Shell Programming and Scripting | 6 | 07-07-2006 05:41 AM |
| Shell script: last modification date for a file | onlyc | UNIX for Dummies Questions & Answers | 4 | 07-06-2006 10:01 AM |
| Search by modification date | slink | UNIX for Dummies Questions & Answers | 5 | 05-25-2006 03:07 AM |
| File modification time | edog | UNIX for Dummies Questions & Answers | 1 | 10-03-2001 09:13 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Good morning,
I would like to find all files of a certain type and display their name as well as their modification date. In order to do this, I would do the following: find ./ -name *.csv | ???????? My question: what to put after the pipe instead of the question marks? Is there a basic UNIX command that can determine the modification date of a file? Thanks Dominique |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Code:
find . -name '<search_file>' | xargs ls -l | awk '{print $9" "$6" "$7" "$8}'
|
|
#3
|
|||
|
|||
|
Hello MatrixMadhan,
I have tried your command, it does exactly what I wanted and I have learned a lot via the 'xargs' command. Thanks Dominique |
|
#4
|
|||
|
|||
|
a different way without involving xargs
Code:
find . -name '<search_file>' -ls | awk '{print $11" "$8" "$9" "$10}'
|
|
#5
|
||||
|
||||
|
I am wondering whether
ls -l *.csw can't give the modification date of a file? |
|
#6
|
||||
|
||||
|
Quote:
|
||||
| Google The UNIX and Linux Forums |