while read line; do echo .$line >> OUTPUTFILE done < INPUTFILE Just make sure INPUTFILE and OUTPUTFILE are different, otherwise that will enter an endless loop.
On Thu, Jan 21, 2010 at 3:13 PM, david t. asuncion, jr. <[email protected]> wrote: > I must admit that I asked this question some years back but when I tried to > a search the archives, I can't find it. :( > I have a file (let's say 'censored.acl') with the following contents... > google.com > yahoo.com > facebook.com > What command can I use to put a dot in front of each line, to wit; > .google.com > .yahoo.com > .facebook.com > Anyone?! > This time I will surely save it! > > _________________________________________________ > Philippine Linux Users' Group (PLUG) Mailing List > http://lists.linux.org.ph/mailman/listinfo/plug > Searchable Archives: http://archives.free.net.ph > -- This email is: [ ] actionable [ ] fyi [ ] social Response needed: [ ] yes [ ] up to you [ ] no Time-sensitive: [ ] immediate [ ] soon [ ] none _________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List http://lists.linux.org.ph/mailman/listinfo/plug Searchable Archives: http://archives.free.net.ph

