Date: Sat, 27 Oct 2001 11:17:38 +0200 From: "Gavin Mutch" <gmutch@global.co.za> To: <questions@freebsd.org> Message-ID: <000801c15ec8$5434c860$0101a8c0@family>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] Hi I was wondering if you could tell me if there is a way to get the number of lines of a piece of text, with no other output. What I mean by this is that if you use cat -n file1, you get the number of lines but you also get the text. Thanx Gavin [-- Attachment #2 --] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content="text/html; charset=iso-8859-1" http-equiv=Content-Type> <META content="MSHTML 5.00.3019.2500" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face="Comic Sans MS">Hi</FONT></DIV> <DIV> </DIV> <DIV><FONT face="Comic Sans MS">I was wondering if you could tell me if there is a way to get the number of lines of a piece of text, with no other output. What I mean by this is that if you use cat -n file1, you get the number of lines but you also get the text.</FONT></DIV> <DIV> </DIV> <DIV><FONT face="Comic Sans MS">Thanx</FONT></DIV> <DIV><FONT face="Comic Sans MS">Gavin</FONT></DIV></BODY></HTML>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000801c15ec8$5434c860$0101a8c0>
