Getting modified time & filename only

Hi,

When we use "ls -l" we are getting like below,

-rw-r--r-- 1 mdskl mds 4161479 Apr 12 14:57 VTTF2008.20080412145748.cc

But i need only modified time and filename only like below,

Apr 12 14:57 VTTF3008.20080412145748.cc

Thanks-:slight_smile:

Senthil

ls -l | cut -d' ' -f 6-15

Hi Jim,

It is not working as per my requirement.i have attached the file with my sample input and output.

FYI,
ur script is based on space.
But in my input space count may vary.

Hai Seera,

Try this..

ls -l | awk '{print $6 $7 $8 $9}'

Thanks Hanu...

It is working well..