I have a script that logon DB and submit queries and export the output to a specified drive. ok
Now i want within the output file to remove/cut the first two characters and write the rest out file to elsewhere.
can someone help ???
cat file1.txt |awk '{print substr($0,3,length($0)-2)}' > file2.txt
oops. was corrected.
Thanks a lot, it work !!!
I just noticed one small problem: length($0)-3 trims off the last character of each line.. it should be length($0)-2.
Thanks you too, i have noticed it and recitified it for it to do the job ...