Hi, So far I have managed to get the following but I need to go one more level as detailed below:
The file reads:
$CMDE "/*" &
$CMDE "/usr/*" >>$LOG
$CMDE "/var/*" >>$LOG &
$CMDE "/tmp/*" >>$LOG
$CMDE "/home/*" >>$LOG &
Using -> awk {'print $2'} | cut -c2-20 <- I can get
/*"
/usr/*"
/var/*"
/tmp/*"
/home/*"
Now, how do I manage to get the following???
ie. cutting the last 2/3 fields on each line?
/
/usr
/var
/tmp
/home
thanks in advance
The file reads:
$CMDE "/*" &
$CMDE "/usr/*" >>$LOG
$CMDE "/var/*" >>$LOG &
$CMDE "/tmp/*" >>$LOG
$CMDE "/home/*" >>$LOG &
Using -> awk {'print $2'} | cut -c2-20 <- I can get
/*"
/usr/*"
/var/*"
/tmp/*"
/home/*"
Now, how do I manage to get the following???
ie. cutting the last 2/3 fields on each line?
/
/usr
/var
/tmp
/home
thanks in advance