![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| script to find latest executable in particular directory and start that particular ex | kvineeth | Shell Programming and Scripting | 6 | 09-24-2007 08:19 AM |
| Find all files created by a specified user in a directory and its subdirectories | abhilashnair | UNIX for Dummies Questions & Answers | 5 | 06-13-2007 03:37 AM |
| want to cat the latest log file created | vkandati | UNIX for Dummies Questions & Answers | 1 | 03-08-2005 06:13 PM |
| ksh: How to get latest file from a list of files in a directory | Jayathirtha | Shell Programming and Scripting | 1 | 06-24-2003 11:23 AM |
| new directory - how to force files created in it to inherit grp,own and permissions | avisb | UNIX for Dummies Questions & Answers | 2 | 04-26-2002 05:47 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Get the latest directory created
hi,
I need to get the latest directory created for example wheni run ls -altr *xyz_Integration* I have plenty of directories created like my_build_77_xx_Integration_050908_150714: total 177898 -rw-rw--- 1 xyzmgr cchyg 7687338 May 9 19:29 myapp.ear my_build_77_xx_Integration_050908_163337: total 177898 -rw-rw--- 1 xyzmgr cchyg 7687338 May 9 19:29 myapp.ear my_build_77_xx_Integration_050908_165636: total 177898 -rw-rw--- 1 xyzmgr cchyg 7687338 May 9 19:29 myapp.ear my_build_77_xx_Integration_050908_183534: total 177898 -rw-rw--- 1 xyzmgr cchyg 7687338 May 9 19:29 myapp.ear my_build_77_xx_Integration_050908_191844: total 177898 -rw-rw--- 1 xyzmgr cchyg 7687338 May 9 19:29 myapp.ear I need to print only the name of the latest directory created like my_build_77_xx_Integration_050908_191844 Can anybody help me in getting this.. I am new to scripting. Thanks Vikram |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|