Hello,
I would like done the following functionality.
At launching time
1) If argument is added to the script-name, argument is used as variable via $1 positional parameter.
2) If no argument is added to the script-name, argument is prompted and read via read v1? command.
It does not work...
Hi PHV,
Yes I tried,
bsp:/admin/temp> nawk -F'[A^]+' '{print $1"|"$2"|"$5}' file1
aax|bbbx|dddx
aax|bbbx|dddx
instead of
aax|bbbx|AABB
I'm not able to make it working proberly.
Uzel,
Thanks both for your answer.
PHV: I'm looking for "^A" not "A^"
Taupirho: Thanks, I just have to find a substitute character not in the text file yet and I'll be great.
Uzel,
Hello,
I have a text file with ^A as separator (136;101). I have line in a text file like the following example:
aax^Abbbx^AcAccx^Adddx^AAABB
aax^Abbbx^AcAccx^Adddx^AAABB
I expect to remove everything between the second ^A and the fourth ^A.
The result must be:
aax^Abbbx^AAABB
aax^Abbbx^AAABB...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.