Название: LPIC-1 Linux Professional Institute Certification Study Guide
Автор: Richard Blum
Издательство: John Wiley & Sons Limited
Жанр: ОС и Сети
isbn: 9781119021193
isbn:
By Byte
The -b
list or -bytes=
list option cuts the specified list of bytes from the input file. (The format of list is described shortly.)
By Character
The -c
list or -characters=
list option cuts the specified list of characters from the input file. In practice, this method and the by-byte method usually produce identical results. (If the input file uses a multibyte encoding system, though, the results won't be identical.)
By Field
The -f
list or -fields=
list option cuts the specified list of fields from the input file. By default, a field is a tab-delimited section of a line, but you can change the delimiting character with the -d
char, -delim=
char, or -delimiter=
char option, where char is the character you want to use to delimit fields. Ordinarily, cut
echoes lines that don't contain delimiters. Including the -s
or -only-delimited
option changes this behavior so that the program doesn't echo lines that don't contain the delimiter character.
Many of these options take a list option, which is a way to specify multiple bytes, characters, or fields. You make this specification by number. It can be a single number (such as 4
), a closed range of numbers (such as 2-4
), or an open range of numbers (such as -4
or 4-
). In this final case, all bytes, characters, or fields from the beginning of the line to the specified number (or from the specified number to the end of the line) are included in the list.
Конец ознакомительного фрагмента.
Текст предоставлен ООО «ЛитРес».
Прочитайте эту книгу целиком, купив полную легальную версию на ЛитРес.
Безопасно оплатить книгу можно банковской картой Visa, MasterCard, Maestro, со счета мобильного телефона, с платежного терминала, в салоне МТС или Связной, через PayPal, WebMoney, Яндекс.Деньги, QIWI Кошелек, бонусными картами или другим удобным Вам способом.