man > col4(1)

🏆 NAME

col1 .. col9, NF - awk and print a column (based on the name of the program, 1-9)

🚀 Quick Reference

Use CaseCommandDescription
📊 Print a specific column (1-9)col1 to col9Print the nth field, where n is the script name
🔄 Print the last fieldNFPrint the last field of each line
⚙️ Custom separatorcol1 [SEPARATOR]Print the specified column with a custom input field separator
🔍 Example: mount point (field 3)mount | col3Instead of mount | awk '{print $3}'
🔍 Example: shell (field 7) from /etc/passwdcat /etc/passwd | col7 :Instead of awk -F":" '{print $7}'
🔍 Example: last field from /etc/passwdcat /etc/passwd | NF :Print the last field using colon separator

📋 SYNOPSIS

col1 [SEPARATOR]

📖 DESCRIPTION

col1 is a simple script that conveniently splits and prints a given column, where the column to print is the name of the script program you're running (col1-col9). col2-col9 are symlinks to col1; their behavior simply changes based on the name called.

🏁 NF can be used to print the last field.

The program takes one optional argument, the input field separator (whitespace, by default).

💡 EXAMPLES

🔗 SEE ALSO

awk(1)

👤 AUTHOR

This manpage and the utility was written by Dustin Kirkland <kirkland AT ubuntu.com> for Ubuntu systems (but may be used by others). 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.


byobu 27 Sep 2010 col1(1)

col4(1)
🏆 NAME 🚀 Quick Reference 📋 SYNOPSIS 📖 DESCRIPTION 💡 EXAMPLES 🔗 SEE ALSO 👤 AUTHOR

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-03 14:27 @216.73.216.198
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!