BUTHEAD(1)

πŸ‘‘ buthead(1) β€” the girlies' guide to skipping header lines πŸ’…

okay so bestie, we're in User Commands territory and this little icon is called buthead. that's the manual name, that's the whole vibe. buckle up πŸŽ€


✨ NAME ✨

buthead β€” copies all but the first few lines πŸ¦‹

like. it's literally the opposite of a header. the anti-header. the "no thank you to your first N lines" queen πŸ‘‘


🌸 SYNOPSIS 🌸

buthead count
bh count

two names, same energy. you can call her buthead, or you can call her bh if you're in a rush, no judgement 🫢


πŸ’– EXAMPLES πŸ’–

the classic move β€” yeet a 5-line header off a file:

buthead 5 <file-with-5-line-header >file-without-header

and here's the cute pipe moment, generating numbers and dropping the first 3:

seq 5 | buthead 3

ate. no crumbs. πŸ”₯


✨ DESCRIPTION ✨

so here's the tea β˜• β€” buthead copies all but the first count lines of stdin to stdout.

that's it. that's the whole job. stdin in, stdout out, first count lines gently escorted off the premises πŸšͺ✨


🚨 DIAGNOSTICS 🚨

if it hits EOF while it's still inside those first count lines, it terminates gracefully. no drama, no crash, no screaming. she simply leaves the group chat πŸ’€πŸ’…


πŸŽ€ AUTHOR πŸŽ€

written by Barak A. Pearlmutter on April 1. yes, April 1. make of that what you will, bestie πŸ™ˆ


πŸ’€ BUGS πŸ’€

ngl, the functionality overlaps with tail -n +count β€” or awk '(NR>count)' β€” or sed 1,countd. so like... she has competition. multiple main characters, same plot 😭

lowkey if you already have tail or awk or sed memorised, you're not missing out on anything technical here. but buthead is cuter. periodt.

πŸ¦‹ SEE ALSO πŸ¦‹


and that's the whole page, bestie πŸ’œ

this was buthead from the latzutils collection, dated April 1 β€” go forth and skip some header lines, you absolute legend πŸ‘‘βœ¨πŸŒΈ

πŸ“¦ where this page comes from