Dear all:
I find it strange when I try this under the Solaris9-bash shell.
why
$-prompt) awk '{ if (substr($0,1,1)==" ") printf "%s" substr($0,2,100) }' file_my
run output is this:
awk: not enough arguments in printf(%sXXXXABCD0000 abc) or sprintf(%sXXXXABC
D0000 abc)
record number 1
The result "XXXXABCD0000 abc" is just what I want,but why do it say "argument not enough"??????
I find it strange when I try this under the Solaris9-bash shell.
why
$-prompt) awk '{ if (substr($0,1,1)==" ") printf "%s" substr($0,2,100) }' file_my
run output is this:
awk: not enough arguments in printf(%sXXXXABCD0000 abc) or sprintf(%sXXXXABC
D0000 abc)
record number 1
The result "XXXXABCD0000 abc" is just what I want,but why do it say "argument not enough"??????