littleIdiot
MIS
I need to pass a ls -al output and grab just the:
. permission string
. month
. day
. swing (time/year)
. filename
This seems to be failing:
$line is the entire line, e.g.
To be clear:
this snippet comes from a much larger script called HardFeed that I found here:
i have spent ages working out that this script is failing at this point for some reason.
Simple suggestions please!
Thanks
. permission string
. month
. day
. swing (time/year)
. filename
This seems to be failing:
$line is the entire line, e.g.
Code:
-rw------- 1 sam samadm 11 Feb 17 15:19 file.txt
Code:
echo "$line" | IFS=" " read permstring junk junk junk junk \
month day swing rawname
To be clear:
this snippet comes from a much larger script called HardFeed that I found here:
i have spent ages working out that this script is failing at this point for some reason.
Simple suggestions please!
Thanks