09-18-2001
try this to slpit the file by each line.
slpit -i 300 -a1 filename
300 being how many lines per file
1 being the files will be named using xa xb xc xd xc etc....
if u use 2 xaa xbb xcc ( just gives you more files to play with)
have fun
man pages are good, but most times it looks like bad driving directions
enjoy
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I need to split a large file into small files based on a string.
At different palces in the large I have the string ^Job.
I need to split the file into different files starting from ^Job to the last character before the next ^Job.
Also all the small files should be automatically named.... (4 Replies)
Discussion started by: dncs
4 Replies
2. UNIX for Dummies Questions & Answers
hi all
im new to this forum..excuse me if anythng wrong.
I have a file containing 600 MB data in that. when i do parse the data in perl program im getting out of memory error.
so iam planning to split the file into smaller files and process one by one.
can any one tell me what is the code... (1 Reply)
Discussion started by: vsnreddy
1 Replies
3. Shell Programming and Scripting
Hi Everyone,
I am using a centos 5.2 server as an sflow log collector on my network. Currently I am using inmons free sflowtool to collect the packets sent by my switches. I have a bash script running on an infinate loop to stop and start the log collection at set intervals - currently one... (2 Replies)
Discussion started by: lord_butler
2 Replies
4. Shell Programming and Scripting
Hello Everyone,
I have a large file that needs to be split into many seperate files, however the text in between the blank lines need to be intact. The file looks like
SomeText
SomeText
SomeText
SomeOtherText
SomeOtherText
....
Since the number of lines of text are different for... (3 Replies)
Discussion started by: jwillis0720
3 Replies
5. Shell Programming and Scripting
Hello all, newbie here. I've searched the forum and found many "how to split a text file" topics but none that are what I'm looking for.
I have a large text file (~15 MB) in size. It contains a variable number of "paragraphs" (for lack of a better word) that are each of variable length. A... (3 Replies)
Discussion started by: lupin..the..3rd
3 Replies
6. Shell Programming and Scripting
I need to write a shell script for below scenario
My input file has data in format:
qwerty0101TWE 12345 01022005 01022005 datainala alanfernanded 26
qwerty0101mXZ 12349 01022005 06022008 datainalb johngalilo 28
qwerty0101TWE 12342 01022005 07022009 datainalc hitalbert 43
qwerty0101CFG 12345... (19 Replies)
Discussion started by: jimmy12
19 Replies
7. Shell Programming and Scripting
Hi Experts,
I have to split huge file based on the pattern to create smaller files. The pattern which is expected in the file is:
Master.....
First...
second....
second...
third..
third...
Master...
First..
second...
third...
Master...
First...
second..
second..
second..... (2 Replies)
Discussion started by: saisanthi
2 Replies
8. Shell Programming and Scripting
I am trying to update an older program on a small cluster. It uses individual files to send jobs to each node. However the newer database comes as one large file, containing over 10,000 records. I therefore need to split this file. It looks like this:
HMMER3/b
NAME 1-cysPrx_C
ACC ... (2 Replies)
Discussion started by: fozrun
2 Replies
9. Shell Programming and Scripting
Hi All,
This is my first post here. Hoping to share and gain knowledge from this great forum !!!!
I've scanned this forum before posting my problem here, but I'm afraid I couldn't find any thread that addresses this exact problem.
I'm trying to split a large XML file (with multiple tag... (7 Replies)
Discussion started by: Aviktheory11
7 Replies
10. Shell Programming and Scripting
Hi,
I need a suggestion for an issue in UNIX file.
I have a log file in my system where data is appending everyday and as a consequence the file is increasing heavily everyday.
Now I need a logic to split this file daily basis and remove the files more than 15 days.
Request you to... (3 Replies)
Discussion started by: bhaski2012
3 Replies
TROFF(1) General Commands Manual TROFF(1)
NAME
troff, nroff - text formatting and typesetting
SYNOPSIS
troff [ option ] ... [ file ] ...
nroff [ option ] ... [ file ] ...
DESCRIPTION
Troff formats text in the named files for printing on a Graphic Systems C/A/T phototypesetter; nroff for typewriter-like devices. Their
capabilities are described in the Nroff/Troff user's manual.
If no file argument is present, the standard input is read. An argument consisting of a single minus (-) is taken to be a file name corre-
sponding to the standard input. The options, which may appear in any order so long as they appear before the files, are:
-olist Print only pages whose page numbers appear in the comma-separated list of numbers and ranges. A range N-M means pages N through M;
an initial -N means from the beginning to page N; and a final N- means from N to the end.
-nN Number first generated page N.
-sN Stop every N pages. Nroff will halt prior to every N pages (default N=1) to allow paper loading or changing, and will resume upon
receipt of a newline. Troff will stop the phototypesetter every N pages, produce a trailer to allow changing cassettes, and resume
when the typesetter's start button is pressed.
-mname Prepend the macro file /usr/lib/tmac/tmac.name to the input files.
-raN Set register a (one-character) to N.
-i Read standard input after the input files are exhausted.
-q Invoke the simultaneous input-output mode of the rd request.
Nroff only
-Tname Prepare output for specified terminal. Known names are 37 for the (default) Teletype Corporation Model 37 terminal, tn300 for the
GE TermiNet 300 (or any terminal without half-line capability), 300S for the DASI-300S, 300 for the DASI-300, and 450 for the
DASI-450 (Diablo Hyterm).
-e Produce equally-spaced words in adjusted lines, using full terminal resolution.
-h Use output tabs during horizontal spacing to speed output and reduce output character count. Tab settings are assumed to be every 8
nominal character widths.
Troff only
-t Direct output to the standard output instead of the phototypesetter.
-f Refrain from feeding out paper and stopping phototypesetter at the end of the run.
-w Wait until phototypesetter is available, if currently busy.
-b Report whether the phototypesetter is busy or available. No text processing is done.
-a Send a printable ASCII approximation of the results to the standard output.
-pN Print all characters in point size N while retaining all prescribed spacings and motions, to reduce phototypesetter elasped time.
-g Prepare output for a GCOS phototypesetter and direct it to the standard output (see gcat(1)).
If the file /usr/adm/tracct is writable, troff keeps phototypesetter accounting records there. The integrity of that file may be secured
by making troff a `set user-id' program.
FILES
/usr/lib/suftab suffix hyphenation tables
/tmp/ta* temporary file
/usr/lib/tmac/tmac.* standard macro files
/usr/lib/term/* terminal driving tables for nroff
/usr/lib/font/* font width tables for troff
/dev/cat phototypesetter
/usr/adm/tracct accounting statistics for /dev/cat
SEE ALSO
J. F. Ossanna, Nroff/Troff user's manual
B. W. Kernighan, A TROFF Tutorial
eqn(1), tbl(1)
col(1), tk(1) (nroff only)
tc(1), gcat(1) (troff only)
TROFF(1)