If you discover any rendering problems in this HTML version of the page, or you believe there is a better or more up-to-date source for the page, or you have corrections or improvements to the information in this COLOPHON (which is not part of the original manual page), send a mail to man-pages@www.doorway.ru GNU coreutils March CUT(1). cut(1) General Commands Manual cut(1) NAME cut - cut out (extract) selected fields of each line of a file SYNOPSIS list [file] list [file] list char] [file] DESCRIPTION cuts out (extracts) columns from a table or fields from each line in a file; in data base parlance, it implements the projection of a rela- tion. cut - Unix, Linux Command, cut - To divide a file into several parts (columns) Home.
cut(1) General Commands Manual cut(1) NAME cut - cut out (extract) selected fields of each line of a file SYNOPSIS list [file] list [file] list char] [file] DESCRIPTION cuts out (extracts) columns from a table or fields from each line in a file; in data base parlance, it implements the projection of a rela- tion. When invoking cut, use the -b, -c, or -f option, but only one of them. If no FILE is specified, cut reads from the standard input. Specifying LIST. Each LIST is made up of an integer, a range of integers, or multiple integer ranges separated by commas. Selected input is written in the same order that it is read, and is written to output exactly once. The cut Command. The next program we’ll look at is the cut command. This program cuts out columns or fields of input data. For example, we can tell it to print just the login name and full name from the /etc/passwd file. The /etc/passwd file has seven fields, separated by colons: arnold:xyzzyArnold D. Robbins:/home/arnold:/bin/bash.
٢٠/٠١/٢٠٢٠ For a first cut command example, I'll use the /etc/passwd file on my Unix system. I use this file because fields in the file are separated. In data base parlance, it projects a rela- tion. The fields can be fixed length, as on a punched card (-c option), or be marked with a delimiter character (-f. which node. #-->node: /usr/bin/node /usr/bin/X11/node /usr/local/bin/node /usr/share/man/man1/nodegz. which node | cut -d':' -f1. #-->node.
0コメント