<br><br><div><span class="gmail_quote">On 13/07/07, <b class="gmail_sendername">Matthew Benjamin</b> <<a href="mailto:msbenjamin12@gmail.com">msbenjamin12@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have a command that I am trying to read a particular amount of lines with<br><br><span style="font-weight: bold;">wc -l somefile | awk '{print $1}' </span></blockquote><div><br>if you prefer the comman line, you can do
<br><br><span style="font-weight: bold;">wc -l somefile | awk -v a=42 '{t=$1+a; print t}'<br><br> </span><div><br>
</div></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">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?
<br><br clear="all"><br>-- <br><span class="sg">mB.
</span><br>--<br>fedora-list mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>To unsubscribe: <a onclick="return top.js.OpenExtLink(window,event,this)" href="https://www.redhat.com/mailman/listinfo/fedora-list" target="_blank">
https://www.redhat.com/mailman/listinfo/fedora-list</a><br></blockquote></div><br>