hi,
I am running a script on a file that contains line with fields containing the "*" character.
example:
----------------------------------------------
ORG A* U 994825555 DS
----------------------------------------------
first field stops after the *.
What I need to do is put this line in the file org.txt
i'm using the gsub function as follows:
------------------------
nfic=$1gsub(" A*","",nfic)
line=$0
fic_algo=nfic".txt"
print line>>fic_algo
------------------------
now, when I run the script, I get "can't open ORG*.txt"
I can't find why this doesn't work
thank you for your help
I am running a script on a file that contains line with fields containing the "*" character.
example:
----------------------------------------------
ORG A* U 994825555 DS
----------------------------------------------
first field stops after the *.
What I need to do is put this line in the file org.txt
i'm using the gsub function as follows:
------------------------
nfic=$1gsub(" A*","",nfic)
line=$0
fic_algo=nfic".txt"
print line>>fic_algo
------------------------
now, when I run the script, I get "can't open ORG*.txt"
I can't find why this doesn't work
thank you for your help