/srv/irclogs.ubuntu.com/2010/12/22/#ubuntu-nz.txt

thumperanyone have sed foo?02:01
thumperof sed fu?02:01
* ibeardslee has used it02:02
thumperI want to replace some strings in a shed load of files in a whole pile of directories02:02
thumpers/DEBUG:/DEBUG/g02:02
thumperover a lot of files02:02
ibeardsleeohhh .. something I've done(ish)02:02
snailthumper: you want to use a perl one liner, which an in place option i believe02:04
thumperperl is fine02:04
ibeardsleefor F in *.*; do sed -i s/DEBUG:/DEBUG/ $F; done02:04
ibeardsleethat should do all files in one directory02:04
thumperibeardslee: recursively over files?02:04
thumperfind . -name "*.py" | xargs ... ?02:04
lifelessxargs -n1 ...05:11
ojwblifeless: there's no need for -n1 - all that'll serve to do is make it take longer...06:31
lifelessojwb: depends on your sed, I think :)06:36
ojwbperhaps, i'd tend to use perl there myself, but I'm pretty sure GNU sed has been like that for some time06:39
=== Hogggs is now known as Hoggs
Atamiramornin18:57
ibeardsleemorning19:07
Atamirabeautiful day here today19:12
Atamiraive been told it might be a tad windy down your way19:12
ibeardsleebeautiful and still at the moment .. forgot to bring the camera into get a photo of the pōhutakawa I can see out the window19:17
ibeardsleeit looks even more stunning with the blue sky int he background and the sun bringing out the red and gree19:18
ajmitchmorning19:20
snailhowdy all20:31

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!