GoGPT Best VPN GoSearch

OnWorks favicon

csplitposix - Online in the Cloud

Run csplitposix in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command csplitposix that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAMA:

NAME


csplit — split files based on context

SINOPSIS


hati [−ks] [−f unlapi] [−n numero] file arg...

DESCRIPTION


Ang hati utility shall read the file named by the file operand, write all or part of
that file into other files as directed by the arg operands, and write the sizes of the
file.

Opsyon


Ang hati ang utility ay dapat umayon sa Base Definition volume ng POSIX.1–2008, seksyon
12.2, Gamit palaugnayan Mga Alituntunin.

Ang mga sumusunod na opsyon ay dapat suportahan:

−f unlapi Name the created files unlapi00, unlapi01, ..., prefixn. Ang default ay xx00
... xxn. Kung ang unlapi argument would create a filename exceeding {NAME_MAX}
bytes, an error shall result, hati shall exit with a diagnostic message, and
no files shall be created.

−k Leave previously created files intact. By default, hati shall remove created
files if an error occurs.

−n numero paggamit numero decimal digits to form filenames for the file pieces. The default
ay magiging 2.

−s Suppress the output of file size messages.

MGA OPERAND


Ang mga sumusunod na operand ay dapat suportahan:

file The pathname of a text file to be split. If file is '−', ang karaniwang input
dapat gamitin.

bawat arg operand can be one of the following:

/reexp/[ginalaw]
A file shall be created using the content of the lines from the current line up
to, but not including, the line that results from the evaluation of the regular
expression with ginalaw, if any, applied. The regular expression reexp Dapat
follow the rules for basic regular expressions described in the Base Definitions
dami ng POSIX.1–2008, seksyon 9.3, Basic regular expression. Ang aplikasyon
shall use the sequence "\/" to specify a <slash> character within the reexp. ang
optional offset shall be a positive or negative integer value representing a
number of lines. A positive integer value can be preceded by '+'. Kung ang
selection of lines from an ginalaw expression of this type would create a file
with zero lines, or one with greater than the number of lines left in the input
file, the results are unspecified. After the section is created, the current
line shall be set to the line that results from the evaluation of the regular
expression with any offset applied. If the current line is the first line in the
file and a regular expression operation has not yet been performed, the pattern
tugma ng reexp shall be applied from the current line to the end of the file.
Otherwise, the pattern match of reexp shall be applied from the line following
the current line to the end of the file.

%reexp%[ginalaw]
Equivalent to /reexp/[ginalaw], except that no file shall be created for the
selected section of the input file. The application shall use the sequence "\%"
to specify a <percent-sign> character within the reexp.

line_no Create a file from the current line up to (but not including) the line number
line_no. Lines in the file shall be numbered starting at one. The current line
nagiging line_no.

{num} Repeat operand. This operand can follow any of the operands described
previously. If it follows a reexp type operand, that operand shall be applied num
more times. If it follows a line_no operand, the file shall be split every
line_no mga linya, num times, from that point.

An error shall be reported if an operand does not reference a line between the current
position and the end of the file.

STDIN


Tingnan ang seksyong INPUT FILES.

INPUT MGA FILE


Ang input file ay dapat na isang text file.

Kapaligiran MGA VARIABLE


Ang mga sumusunod na variable ng kapaligiran ay dapat makaapekto sa pagpapatupad ng hati:

WIKA Magbigay ng default na halaga para sa mga variable ng internationalization na hindi nakatakda o
wala. (Tingnan ang dami ng Base Definition ng POSIX.1–2008, seksyon 8.2,
internationalization Variable para sa pangunguna sa internasyonalisasyon
mga variable na ginagamit upang matukoy ang mga halaga ng mga lokal na kategorya.)

LC_ALL Kung nakatakda sa isang walang laman na halaga ng string, i-override ang mga halaga ng lahat ng iba pa
mga variable ng internasyonalisasyon.

LC_COLLATE
Tukuyin ang lokal para sa pag-uugali ng mga saklaw, equivalence class, at multi-
character collating elements sa loob ng mga regular na expression.

LC_CTYPE Tukuyin ang lokal para sa interpretasyon ng mga pagkakasunud-sunod ng mga byte ng data ng teksto
bilang mga character (halimbawa, single-byte kumpara sa multi-byte na character sa
argument at input file) at ang pag-uugali ng mga klase ng character sa loob ng regular
mga ekspresyon.

LC_MESSAGES
Tukuyin ang lokal na dapat gamitin upang makaapekto sa format at mga nilalaman ng
mga mensaheng diagnostic na nakasulat sa karaniwang error.

NLSPATH Tukuyin ang lokasyon ng mga katalogo ng mensahe para sa pagproseso ng LC_MESSAGES.

ASYNCHRONOUS KAGANAPAN


Kung ang −k option is specified, created files shall be retained. Otherwise, the default
action occurs.

STDOUT


Maliban sa −s option is used, the standard output shall consist of one line per file
created, with a format as follows:

"%d\n", <file laki in bytes>

STDERR


Ang karaniwang error ay dapat gamitin lamang para sa mga diagnostic na mensahe.

oUTPUT MGA FILE


The output files shall contain portions of the original input file; otherwise, unchanged.

LALAKI DESCRIPTION


Wala.

EXIT STATUS


Ang mga sumusunod na exit value ay ibabalik:

0 Matagumpay na pagkumpleto.

>0 May naganap na error.

Mga kahihinatnan OF MGA KAMALI


By default, created files shall be removed if an error occurs. When the −k Ang opsyon ay
specified, created files shall not be removed if an error occurs.

Ang sumusunod seksyon ay nagbibigay-kaalaman.

APLIKASYON PAGGAMIT


Wala.

HALIMBAWA


1. This example creates four files, cobol00 ... cobol03:

hati −f cobol file '/procedure division/' /par5./ /par16./

After editing the split files, they can be recombined as follows:

pusa cobol0[0−3] > file

Note that this example overwrites the original file.

2. This example would split the file after the first 99 lines, and every 100 lines
thereafter, up to 9999 lines; this is because lines in the file are numbered from 1
rather than zero, for historical reasons:

hati −k file 100 99 {}

3. Ipagpalagay na prog.c follows the C-language coding convention of ending routines with
a '}' at the beginning of the line, this example creates a file containing each
separate C routine (up to 21) in prog.c:

hati −k prog.c '%main(%' '/^}/+1' 20 {}

RATIONALE


Ang −n option was added to extend the range of filenames that could be handled.

Isinaalang-alang ang pagdaragdag ng a −a flag to use the alphabetic filename generation used
by the historical pagsibak utility, but the functionality added by the −n option was deemed
to make alphabetic naming unnecessary.

PAGTATAYA DIREKSYON


Wala.

Use csplitposix online using onworks.net services


Mga Libreng Server at Workstation

Mag-download ng Windows at Linux apps

Linux command

Ad




×
anunsyo
❤️Mamili, mag-book, o bumili dito — walang gastos, tumutulong na panatilihing libre ang mga serbisyo.