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 ππ¦β¨
π¦ where this page comes from
- alpine 3.22: byobu-doc 6.12-r0 Β· GPL-3.0-or-later
- alpine 3.23: byobu-doc 6.13-r0 Β· GPL-3.0-or-later
- alpine 3.24: byobu-doc 6.16-r0 Β· GPL-3.0-or-later
- debian bookworm: byobu 5.133-1.1
- debian trixie: byobu 5.133-1.1
- epel 10: byobu 6.14-1.el10_2 Β· GPL-3.0-only
- epel 9: byobu 6.12-4.el9 Β· GPL-3.0-only
- fedora 43: byobu 6.12-7.fc43 Β· GPL-3.0-only
- fedora 43: byobu 6.16-2.fc43 Β· GPL-3.0-only
- fedora 44: byobu 6.14-1.fc44 Β· GPL-3.0-only
- fedora 44: byobu 6.16-2.fc44 Β· GPL-3.0-only
- nixos 26.05: byobu 6.13
- nixpkgs unstable: byobu 7.18
- opensuse-leap 16.0: byobu 6.12-bp160.1.11 Β· GPL-3.0-only
- ubuntu jammy: byobu 5.133-1
- ubuntu noble: byobu 6.11-0ubuntu1
- ubuntu noble: byobu 6.11-0ubuntu1.1
- ubuntu questing: byobu 6.11-0ubuntu2
- ubuntu resolute: byobu 6.11-0ubuntu3
- ubuntu resolute: byobu 6.11-0ubuntu3.1
- ubuntu stonking: byobu 7.20-0ubuntu1 Β· GPL-3.0-only
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms