Quantcast
Viewing all articles
Browse latest Browse all 10

LC - Line Counter

For some reason I find I do this quite a bit. I want to know how many lines are in a file or pipe. So this simple script effectively does what "wc -l" does in unix.

You can provide a filename or send via a pipe. I thought one of the cool things about this if you give it a filename, it just pipes it to itself. Ok, not the fanciest recursion, but I thought it was neat.

Code:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: lc
::
:: Simple function that counts the...

Read more

Viewing all articles
Browse latest Browse all 10

Trending Articles