I don't know if I'm doing something wrong here, but sed appears to be not working on my system. I tried a number of examples from Rute (asper my sig.) and whenever I try a sed command of the the 'sed -e 's/>regexp>/<substitution>/g' type nothing happens.
I tried the following command:
Code:
$ ls -l | grep ^-| sed -e 's/^\(<.*> [ ]*\){8}\(.$\)/\2/g'
It is supposed to return 'clean' filenames. The only thing I get is the ls -l output without any directories, but with full permission, owner, time etc info. I've asked other people to try the command and they tell me it works. What might be going wrong?
Code:
$ rpm -q sed
sed-4.1.4-1