I am using the bourne scripting langauge and would like to be able to set the "wc -l" (line count) as a variable in my script. can this be done?
I want to be able to make a for loop ranging from one going until the value returned as the line count. i tried
for ((i=1;i=wc -l;i=i+1))
but it doesnt seem to work. the logical conclusion is that i need to set the value which would be returned from the wc -l command as a variable.
Thanks in advance--AJ
2007-08-13
09:29:09
·
1 answers
·
asked by
toodles_1399
1
in
Computers & Internet
➔ Programming & Design