Re: cat and grep without destroying file
- From: "Mihamina (R12y) Rakotomandimby" <mihamina.rakotomandimby@xxxxxxxxxxxxxxxxxxx>
- Date: Sun, 30 Sep 2007 16:32:37 +0200
(``-_-´´) -- Fernando wrote:
#for i in $(/bin/ls -1); do cat $i | egrep -v ^Date > $i.new; mv $i.new $i; done
Use "sed -i".
try a google search with "sed inline replace"
--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
- References:
- cat and grep without destroying file
- From: (``-_-´´) -- Fernando
- cat and grep without destroying file
- Prev by Date: Re: [users]Re: Unsubscribe!!!
- Next by Date: Re: [users]Need help getting install to work
- Previous by thread: Re: cat and grep without destroying file
- Next by thread: Re: cat and grep without destroying file
- Index(es):