#!/bin/ksh
#{for (i = 1; i <= 10; i++)
# print i*5
#}
#using awk on win pc
#the above will work but i have to hit enter key for it to begin and it prints a blank first
#and then finishes but doesn't return to the terminal command line.
#[b]this is on my win pc machine.on my kubuntu machine i receive an #error
#"syntax error near unexpected token 'i'". it worked once and did not have
#the problems---i can't remember how i did it---senility!!!!
$i*5--as suggested does not work.don'really need the $.
#!/bin/ksh
{for (i =1; i <=NF; i++)
print $i
}
this works fine! using awk -f progfile file and works on both machines..
on my win pc i have only ksh.
#{for (i = 1; i <= 10; i++)
# print i*5
#}
#using awk on win pc
#the above will work but i have to hit enter key for it to begin and it prints a blank first
#and then finishes but doesn't return to the terminal command line.
#[b]this is on my win pc machine.on my kubuntu machine i receive an #error
#"syntax error near unexpected token 'i'". it worked once and did not have
#the problems---i can't remember how i did it---senility!!!!
$i*5--as suggested does not work.don'really need the $.
#!/bin/ksh
{for (i =1; i <=NF; i++)
print $i
}
this works fine! using awk -f progfile file and works on both machines..
on my win pc i have only ksh.
Comment