csplit

csplit

The csplit command in Unix is a utility that is used to split a file into two or more smaller files determined by context lines.

Contents

Usage

The command-syntax is:

csplit (optional parameters) (input filename) (patterns)

The patterns may be line numbers or regular expressions. The program outputs pieces of the file separated by the patterns into files xx00, xx01, etc., and outputs the size of each piece, in bytes, to standard output.

The optional parameters modify the behaviour of the program in various ways. For example, the default prefix string (xx) and number of digits (2) in the output filenames can be changed.

As with most Unix utilities, a return code of 0 indicates success, while nonzero values indicate failure.

Comparison to split

The split command also splits a file into pieces, except that all the pieces are of a fixed size (measured in lines or bytes).

See also

References


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • Программы UNIX-подобных операционных систем — Это список популярных программ, работающих в операционных системах основанных на UNIX (POSIX совместимых). Некоторые из этих программ являются стандартными для UNIX подобных систем. Содержание 1 Системный софт 1.1 Общего назначения …   Википедия

  • GNU Coreutils — GNU Core Utilities Тип Miscellaneous Utilities Разработчик GNU Project Написана на C Операционная система Unix подобные ОС Последняя версия 8.20 (23 октября 2012) …   Википедия

  • List of Unix utilities — This is a list of UNIX utilities as specified by IEEE Std 1003.1 2008, which is part of the Single UNIX Specification (SUS). These utilities can be found on UNIX Operating systems and most UNIX like operating systems. List IEEE Std 1003.1 2008… …   Wikipedia

  • GNU Core Utilities — Developer(s) GNU Project Stable release 8.14  (October 12, 2011; 39 days ago (2011 10 12)) …   Wikipedia

  • Programas para Unix — Anexo:Programas para Unix Saltar a navegación, búsqueda Plantilla:Listas Ésta es una lista de software disponible para sistemas operativos Unix y similares como GNU/Linux. Según corresponda se trasladarán a las subcategorías de la Categoría… …   Wikipedia Español

  • AWK — Класс языка: скриптовый, процедурный, событийно ориентированный Появился в: 1977 Автор(ы): Альфред Ахо, Питер Вайнбергер и Брайан Керниган Релиз …   Википедия

  • Wget — GNU Wget Тип менеджер загрузок Автор Hrvoje Nikšić …   Википедия

  • Mkdir — Тип программа для создания новых каталогов Разработчик Проект GNU Написана на C Операционная система Unix подобные Последняя версия 8.5 (23 апреля 2010) Лицензия …   Википедия

  • Netstat — команда unix и Windows Содержание 1 Синтаксис 2 Описание 3 Использование 4 Оп …   Википедия

  • LILO — Загрузочное меню Тип загрузчик операционной системы Автор Вернер Альмесбергер Разра …   Википедия

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”