Re: How to use cut or awk commands into sed command ?

2007-12-13 Thread Giorgos Keramidas
On 2007-12-13 09:35, Halid Faith <[EMAIL PROTECTED]> wrote: > Let me try to explain > I have a file called A which contains variable values as below; > file1, abc12 > foot1, cba11 > boby, def123 > ... > > Also I have another file called B which contains partly valuable values as > following; > ###

Re: How to use cut or awk commands into sed command ?

2007-12-13 Thread Frank Shute
On Thu, Dec 13, 2007 at 09:35:29AM +0200, Halid Faith wrote: > > Let me try to explain > I have a file called A which contains variable values as below; > file1, abc12 > foot1, cba11 > boby, def123 > ... > > Also I have another file called B which contains partly valuable values as > following; >

Re: How to use cut or awk commands into sed command ?

2007-12-12 Thread Halid Faith
Let me try to explain I have a file called A which contains variable values as below; file1, abc12 foot1, cba11 boby, def123 ... Also I have another file called B which contains partly valuable values as following; ### file of A begin Server valuable1 Client valuable2 the file end I have to

Re: How to use cut or awk commands into sed command ?

2007-12-12 Thread Giorgos Keramidas
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- ...": unterm

Re: How to use cut or awk commands into sed command ?

2007-12-12 Thread Bill Campbell
On Wed, Dec 12, 2007, Halid Faith 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 r

Re: How to use cut or awk commands into sed command ?

2007-12-12 Thread Tino Engel
Halid Faith schrieb: 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 also I