[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what happens to the rest of a file piped to head/tail?





Of course, you could do it the long & half-assed way with wc (word count).

wc -l  gives you a line count.

wc -l /etc/file


NUM=$(wc -l /etc/file); NUM=$((NUM-20)); tail -$NUM /etc/file


--
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.