How to use cut or awk commands into sed command ?
maslak at ihlas.net.tr
Wed Dec 12 23:35:40 PST 2007
Let me try to explain
I have a file called A which contains variable values as below;
Also I have another file called B which contains partly valuable values as
### file of A begin
#### the file end
I have to assign the first column valuables in A to valuable1 in B and
assign second column valuable1 in A to valuable2 in B.
Finally I should see as following in a file called C
How can I do that ? Could you give me a script ?
Also does it possible to define two or more variable in for loop as below
for i in `cat file1` a in `cat file2` ;
sed -e "s/oldstring1/$i/" -e "s/oldstring2/$a/"
More information about the freebsd-questions