"GNU/Linux" instead of "Linux"

Alexandre Franke alexandre.franke at gmail.com
Sun Oct 29 21:40:10 UTC 2006


On 10/28/06, H.S. <hs.samix at gmail.com> wrote:
> How about:
> $> perl -p -i.bak -e "s/Linux/GNU\/Linux/g;" *.txt
> to replace all "Linux" occurrences with "GNU/Linux"

... and all "GNU/Linux" occurrences with "GNU/GNU/Linux" :-)
Yeah, that's a nice one :-P
You should rather have something like s/[^GNU\/]Linux/GNU\/Linux/g in
your command line, except that [^GNU\/] won't do the "anything but
GNU/" bit we'd like but rather "anything but G, N, U or /".


-- 
Alexandre Franke
GNU/Linux user #390077




More information about the ubuntu-users mailing list