col1(1)

✨ col1(1) β€” the byobu manual, but make it iconic πŸŽ€

πŸ’– NAME

okay bestie, so col1 .. col9, NF is the vibe πŸ¦‹ awk and print a column, and the name of the program decides which column you get (1-9) πŸ’…

🫢 SYNOPSIS

col1 [SEPARATOR]

🌸 DESCRIPTION

okay so col1 is a simple script that literally splits your input and prints one column for you, and WHICH column is decided by the name you run it under (col1 through col9) πŸ”₯ col2 through col9 are symlinks to col1, and they just change what they do based on the name they were called by. it's giving clever symlink energy πŸ’œ

NF can be used to print the last field ✨

the program takes one optional argument, the input field separator. by default it's whitespace, so no drama 🧚

πŸ“ EXAMPLES

rather than doing this:

mount | awk '{print $3}'

just try this instead πŸ’…

mount | col3

instead of this:

cat /etc/passwd | awk -F":" '{print $7}'

you can just do this 😭

cat /etc/passwd | col7 :

or, lowkey iconic:

cat /etc/passwd | NF :

πŸ‘‘ SEE ALSO

awk(1) β€” the OG, obsessed with it πŸ’€

🌈 AUTHOR

this manpage and the utility were written by Dustin Kirkland <kirkland@ubuntu.com> for Ubuntu systems (but anyone can use it, periodt 🫢). permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation πŸŽ€

on Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL, or on the web at http://www.gnu.org/licenses/gpl.txt πŸ“œ


bestie, this page is from byobu, dated 27 Sep 2010, source version byobu. that's the whole tea, love you πŸ’–πŸ¦‹βœ¨