Search Results

Search: Posts Made By: ysvsr1
1,964
Posted By MadeInGermany
printf's first argument specifies the format...
printf's first argument specifies the format where % is a special character.
man printf
Quick fix:
printf "%s\n", substr($0,1,field_position-1) k substr($0,tl,z) NR >> "ABC.out"
Or use the...
5,381
Posted By greet_sed
In perl: perl -ne 'print "$1 $2\n" if...
In perl:

perl -ne 'print "$1 $2\n" if /(\w+)\s(?:.*)\((.*)\);$/' inputfile
3,710
Posted By jim mcnamara
No - in the file called scriptname there is the...
No - in the file called scriptname there is the statement set -x
3,710
Posted By ahamed101
You must have put set -x in your original script....
You must have put set -x in your original script. Remove it, recompile and test it.

--ahamed
5,113
Posted By agama
Typically the command awk --version will generate...
Typically the command awk --version will generate the version of awk that you are using. If you are running on Solaris, it's wise to use nawk instead as the default awk in that environment is quite...
2,674
Posted By agama
If you're running on Sun/Solaris you might need...
If you're running on Sun/Solaris you might need to use nawk rather than awk. Older versions, including the default awk on Sun boxen (If I remember correctly), have smallish line length restrictions....
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 09:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy