[PLUG] File content modification
mayuresh at acm.org
Sun Aug 1 02:10:54 PDT 2010
On Sat, Jul 31, 2010 at 12:32:47PM +0530, Shreerang Patwardhan wrote:
> Hello all,
> I have a file with contents in the following manner:
> Each entry is on a new line and each line begins with a number and ends with
> the word county!
> I wish to convert the contents of this file in the form as specified below:
cat yourfile | cut -d_ -f2- | sed -e 's/_county//' -e 's/_//g'
More information about the plug-mail