Here is what I have in my file.
Code:
"1234"|"1234"|"1234"|"1234"
"1234"|"1234"|"1234"|"12
34"
"1234"|"1234"|"1234"|"1234"
"1234"|"1234"|"1234"|"1234"
expected output to be like below.
Code:
"1234"|"1234"|&qu
Dear community,
I have to do something too hard for me :rolleyes:. I hope you can help me.
This is an output coming from Oracle query, stored in a file called query.out, there are many rows, but I read them, one by one, using while/read/done.
Hello,
Here is what i'm trying to do :
I want to replace any occurence of the string "abc=123" by "abc=999" except if the pattern is followed by a digit (I want to replace only "abc=123" and not "abc=1234")
One of the most promissing command I tried was :
Code:
echo 'abc=123
abc=1234
xyzabc=123&fghij=555&abc=123
abc=234'|sed 's/abc=123[^0-
i am having a file contants as below
Quote:
sam 1234
sem 4568
san 7894
my requirement is
Code:
for file in `awk -F "," '{print $8,$9}'` <temp.txt
echo "$file"
echo "$file">test.txt
a=`awk -F "," '{print $1}' `<test.txt
b=`awk -F "," '{print $2}' `<test.txt
but scri
Hi,
I don't script often enough to know how to do this, and I can't seem to find a right example online. I have a csv output from an old, old system (Win2K???), from which I want to extract only certain fields.
Hello,
I am working on a script to get values from 2 files, and write to a new result file.
Hello:
I have a large file which contains lines like the following:
1/t123ab, &Xx:1:1234:12345:123456@ABCDEFG...
i have a variable that has more than one value. i am declaring another variable, which will have the old variable data one by one. i want to use the second variable to hold the track of all the variable it has parsed from the first one.
I am using Solaris 10 and have no GNU products installed. I have the following awk code and would like to add a variable. I believe awk doesn't accept variables, but I think nawk can. I would like to replace the red higlighted part of my code with a variable.