..MindWrite..

Posts Tagged ‘sed’

Remove first word using sed

Posted by guptaradhesh on April 2, 2014

cat filename | sed -e 's/^ *[^ ]* //'

Rating: 4.5

Advertisements

Posted in uncategorized | Tagged: , | Leave a Comment »

remove front spaces from a string

Posted by guptaradhesh on November 8, 2010

a simple sed command to do the same is as:

sed -e 's/^ *//' data

Posted in tech, unix | Tagged: , , | 1 Comment »