12-12-2001
3,
0
Join Date: Nov 2001
Last Activity: 12 December 2001, 9:08 AM EST
Posts: 3
Thanks Given: 0
Thanked 0 Times in 0 Posts
ls -l --full-time
How can i write a shell script to display only the dates and times listed when i type ls -l --full-time. i have something, but it tells me there is an illegal variable name. here's what i have:
#! /bin/tcsh
set a = `ls -l --full-time`
set b = `ls -l --full-time | wc -l`
while($b > 0)
echo $a[8] $a[9] $a[10] $[11] $a[12]
echo $b
$b--
tail -$b `ls -l --full-time` > modified
end
unset a
unset b