On 2007-12-12 23:19, Halid Faith <[EMAIL PROTECTED]> wrote: > I have a file named file1 which contains some values. > I want to replace some strings into it, so I use sed command but I get an > error. > > sed "s#oldstring#`cut -d, -f3 file2`#" file1 > sed: 1: "s/yenidomain2/f0b2875d- ...": unterminated substitute in regular > expression
That's not enough information to help you in a meaningful manner. * What does `file2' have to do with the replacement strings, and why do you use it? * What are the contents of both files? * What do you want to replace, and what should it be replaced with? > also I get an error with awk command into sed; > sed "s#oldstring#`awk -F, '{print$3}' file2`#" file1 > sed: 1: "s#yenidomain2#f0b2875d- ...": unterminated substitute in regular > expression That's not very different from the cut-based command. _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"