![]() |
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 |
| 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 |
| Help Required: Command to find IP address and command executed of a user | loggedout | Security | 2 | 08-06-2008 08:12 PM |
| how to? launch command with string of command line options | TinCanFury | Shell Programming and Scripting | 5 | 04-28-2008 06:06 PM |
| inconsistent ls command display at the command prompt & running as a cron job | rajranibl | SuSE | 5 | 07-30-2007 08:26 AM |
| How to use more than one MPE command STREAM with Unix command in a single shell? | bosskr | HP-UX | 1 | 10-16-2006 04:16 PM |
| How to use more than one MPE command STREAM with Unix command in a single shell? | bosskr | Shell Programming and Scripting | 0 | 09-19-2006 09:44 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
I want to print only the name of one file which is last modified.
I use :: $ls -ltr S07* |cut -f 8-9 but it is not working. it gives the outut -rw-r--r-- 1 aaaaa aaaaa 0 May 29 00:32 S070528D -rw-r--r-- 1 aaaaa aaaaa 0 May 29 00:41 S070528S I want the output S070528S please help me. |
|
||||
|
thanx.
it works but it print All file name which are similar to that pattren. that means it print S070528D S070528S both file name. but I want to print only last modified file name. If I have to change that ls command then plz tell me what is it. |
|
|||||
|
Quote:
ls -1 |tail -1 NOTE: ls option is not l (el), but 1 (one) |
| Sponsored Links | ||
|
|