cut

M.W. Chang mwchang
Mon May 17 12:02:12 PDT 2004


root at server: init.d> ps ax | grep bttrack | grep -v grep
  6016 ?        S     29:50 /usr/bin/python /usr/bin/bttrack.py --p

There is a leading a space char in the line. I couldn't use `cut -f 1 -d 
" "` on the line. What's the neatest command to remove all leading 
spaces (1..n) in a line of text?

-- 
   .~.    http://toylet.homeip.net
  / v \   Linux 2.4.26
/( _ )\  12:18am up 10 days 1:41
   ^ ^    load average: 1.09 1.13 1.17
-- 
Scanned by ClamAv - http://www.clamav.net



More information about the Linux-users mailing list