I have following problem: when I use this command - it works fine:
nawk '{system("echo "$1" "$2+22)}' filename
but when I want to add to the second column of the file (filename) the content of the variable itest I get an error! how can I add the content of the variable itest to every value of the second column of the file?
while [ $# -gt ${inoargs} ]
do
iusedpseudo=0
# now file $1${fileend} will be created with: do something > $1${fileend}
iusedpseudo=${command1}
echo ${iusedpseudo}
shift
done
I get an error because when i declare command1 the file $1${fileend} does not exists! how can i solve this problem, that i can declare the command at the beginning of the script?