|
Search Forums:
|
|||||||
| Forums | Register | Forum Rules | Linux and Unix Links | Man Pages | Albums | FAQ | Users | 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 !! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
What is this perl snippet is doing?
Code:
perl -e '@stat=stat("/etc/passwd");$now_string=localtime($stat[9]);print $ARGV[0].":$now_string\n"' ./file_namePlease if anyone can describe it. Thanks in advance |
| Sponsored Links | |
|
|
|
#2
|
|||
|
|||
|
Hi ezee, It prints the name of the input file plus a colon and modification time of file /etc/passwd in a readable mode, like: Code:
./file_name:Mon Dec 12 11:19:15 2011 Regards, Birei |
| Sponsored Links | ||
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Script required to truncate all the lines except a specific snippet. | abinash | UNIX for Dummies Questions & Answers | 3 | 12-05-2010 02:06 AM |
| Code snippet for signals | joker40 | UNIX for Dummies Questions & Answers | 6 | 10-22-2010 12:18 PM |
| gui text box code snippet? | Allasso | Shell Programming and Scripting | 1 | 06-29-2008 01:00 PM |
| Can someone help translate this snippet? | Heron | Shell Programming and Scripting | 7 | 03-29-2005 02:01 AM |
|
|