Monday, 13 April 2015

Append a line using sed

Below command append ":x" after first field
ypcat -k passwd|grep -i testuser|cut -d':' -f2-9|sed 's/^..//'|sed 's/:/:x:/1'

No comments: