Quote:
Originally Posted by gugs
[SIZE=2] Code:
'
+ echo 'sed -n '\''/TEST01.*\.mqsc$/{p;q}'\'''
|
There's a qouting problem somewhere. These escaped-double-quotes shouldn't be there at all.
[quote][code]
Why can't you just do:
Code:
ls -1t $dir >temp.txt
sed -n "/$NEXT/{p;q}" temp.txt