{
    "mode": "man",
    "parameter": "col2",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/col2/1/json",
    "generated": "2026-05-30T05:11:54Z",
    "synopsis": "",
    "sections": {
        "NAME": {
            "content": "col1 .. col9, NF - awk and print a column (based on the name of the program, 1-9)\n\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "",
            "subsections": [
                {
                    "name": "col1 [SEPARATOR]",
                    "content": ""
                }
            ]
        },
        "DESCRIPTION": {
            "content": "col1  is a simple script that conveniently splits and prints a given column, where the column\nto print is the name of the script program you're running (col1-col9).   col2-col9  are  sym‐\nlinks to col1; their behavior simply changes based on the name called.\n\nNF can be used to print the last field.\n\nThe program takes one optional argument, the input field separator (whitespace, by default).\n\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "Rather than:\nmount | awk '{print $3}'\n\nTry:\nmount | col3\n\nInstead of:\ncat /etc/passwd | awk -F\":\" '{print $7}'\n\nYou can just do:\ncat /etc/passwd | col7 :\n\nOr\ncat /etc/passwd | NF :\n\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "awk(1)\n\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "This  manpage and the utility was written by Dustin Kirkland <kirkland@ubuntu.com> for Ubuntu\nsystems (but may be used by others).  Permission is granted to copy, distribute and/or modify\nthis  document  under the terms of the GNU General Public License, Version 3 published by the\nFree Software Foundation.\n\nOn Debian systems, the complete text of the GNU  General  Public  License  can  be  found  in\n/usr/share/common-licenses/GPL, or on the web at http://www.gnu.org/licenses/gpl.txt.\n\n\n\nbyobu                                        27 Sep 2010                                     col1(1)",
            "subsections": []
        }
    },
    "summary": "col1 .. col9, NF - awk and print a column (based on the name of the program, 1-9)",
    "flags": [],
    "examples": [
        "Rather than:",
        "mount | awk '{print $3}'",
        "Try:",
        "mount | col3",
        "Instead of:",
        "cat /etc/passwd | awk -F\":\" '{print $7}'",
        "You can just do:",
        "cat /etc/passwd | col7 :",
        "Or",
        "cat /etc/passwd | NF :"
    ],
    "see_also": [
        {
            "name": "awk",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/awk/1/json"
        }
    ]
}