[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: deleting coma in a large number of files
From: |
Bob Proulx |
Subject: |
Re: deleting coma in a large number of files |
Date: |
Sat, 21 Jul 2007 11:34:44 -0600 |
User-agent: |
Mutt/1.5.9i |
Timothee wrote:
> as said in the title, I have suppress all comas in a lot of text files
> located in the same directory, all having the same name but with a different
> number at the end (year1, year2, year3, ...).
>
> I'm sure this can be done very rapidly in bash but have no idea of how to
> write it!
This is easier done in 'sed' than in 'bash'.
sed --in-place 's/,//g' *
Be sure to try it without the --in-place option to verify that it does
what you want before you fire it for effect!
Bob