| |
| |
| |
|
Comments:
<0> same here. no clue. -E is more intuitive (though, there are always manpages, you know heh) <1> how do i force sed to to only remove the first / in a line, the / is not the first character and there may be other /'s in the a line <2> echo "moo/foo/doo" | sed 's@/@@1' <1> thanks
<2> np <3> how do i say, in the current directory, in every file, replace abc with xyz ? <3> sed -e "s/matrix_copy_new/matrix_new_m/" * <3> <-- doesn't do what I want <0> for file in *; do mv "$file" "$file.old"; sed ...... "$file.old" >"$file"; rm -f "$file.old"; done <3> wow, there's no command line option to do "in place" replace? <3> (btw, thanks for the script) <0> it is - in GNU sed <0> -i <0> but no idea if that affects multiple files <0> (IN A SANE WAY) <0> shift - oops
<3> got it; thanks; <0> sed '=' /etc/group /etc/p***wd - sed is and stays a stream editor, just as example <4> looking for stupid sed trick #42: have 2 files File 2 has lines i want to remove if a string in another file matches the first part of the line. <4> File 1 has the strings to match against file 2. <4> Rule: The order of lines in file 2 matters. <4> I'm going to the post office to drop of a couple of netflix movies. I expect you all to have solved this completely by the time i get back. --- Just kidding. I'm actually just looking for how to approch this kind of problem... <2> www.redbrick.dcu.ie/~goldfish/field <2> it's in awk. Something like your problem <2> could be modified <2> well, actually. **** that. <2> pac1: you gone yet? <2> Anyone ignore that url. <2> *ANYWAY
Return to
#sed or Go to some related
logs:
knoppix non-free repo #bash #gaim #linux minpci reception #debian microphone not load HDA Intel Ubuntu #web #mysql #lisp
|
|