Red Hat Linux 9 Professional Secrets [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Red Hat Linux 9 Professional Secrets [Electronic resources] - نسخه متنی

Naba Barkakati

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید








cut



Purpose


Copy selected parts of each line of text from a file to standard output.


Syntax


cut [options]

file


Options


-b

list extracts the characters at positions specified in the

list.

-f

list extracts the fields (assumed to be Tab-separated) specified in

list.

-d

char specifies the character that delimits the fields (the default is Tab).

-s skips lines that do not contain delimited fields (see the

-f option).


Description


The

cut command extracts specified parts from each line of text in a file and writes those lines out to standard output. You can extract either a range of characters (specified by their positions) from each line or specific fields, where the fields are separated by a special character such as the Tab. For example, to extract characters 1 through 11 and the 56th character onward from a detailed directory listing, use the following command:

ls -l | cut -b 1-11,56- | more

total 2056 -rw-r—r— a2ps.cfg -rw-r—r— a2ps-site.cfg -rw-r—r— adjtime drwxr-xr-x aep -rw-r—r— aep.conf -rw-r—r— aeplog.conf drwxr-xr-x alchemist -rw-r—r— aliases -rw-r——- aliases.db

(... lines deleted)


/ 341