On 13/07/07, Matthew Benjamin <msbenjamin12@xxxxxxxxx> wrote:
if you prefer the comman line, you can do
wc -l somefile | awk -v a=42 '{t=$1+a; print t}'
I have a command that I am trying to read a particular amount of lines with
wc -l somefile | awk '{print $1}'
if you prefer the comman line, you can do
wc -l somefile | awk -v a=42 '{t=$1+a; print t}'
when it givs the number of lines, I am trying to find out how to use that number in an addition problem. Can someone help me with that?
--
mB.
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list