03-24-2011
Hi Franklin52,
thx a lot, it works.
...Damn annoying about myself...
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Is there an easy way to delete the first so many lines in a log file?
like I have a log file that has 10000 lines, i want to just get rid of the first 9000. (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies
2. Shell Programming and Scripting
Hi
I have a file & always I need to remove or delete last 2 lines from that file. So in a file if I have 10 lines then it should return me first 8 lines.
Can someone help me? (4 Replies)
Discussion started by: videsh77
4 Replies
3. Shell Programming and Scripting
How do I delete all the lines after the line containing text ***DISCLOSURES*** . I want to delete this line too.
Thank you (2 Replies)
Discussion started by: reachsamir
2 Replies
4. UNIX for Dummies Questions & Answers
I have a file with 65 sets of 35 coordinates, and would like to isolate these coordinates so that I can easily copy the coordinates to another file. The problem is, I've got a 9 line header before each set of coordinates (so each set is 44 lines long). There are a zillion threads out there about... (3 Replies)
Discussion started by: red baron
3 Replies
5. UNIX for Advanced & Expert Users
How I can delete 100 lines anywhere in a file without opening a file and without renaming the file. (11 Replies)
Discussion started by: Nirgude07
11 Replies
6. Shell Programming and Scripting
Hi Friends
I have a flat file which has sentence like "Notice generated". It can be anywhere in the flat file.
What I want to do is, I want to delete all the lines which are above sentence "Notice generated".
How can I do it.
Kindly advice.
Anushree (5 Replies)
Discussion started by: anushree.a
5 Replies
7. Shell Programming and Scripting
Hi All
I am not able to delete few line from long file.
I have a big file which is of 53998 B in size i want to delete lines starting from 32768 to 53998 and collect remaining file in new file.
It is giving exception
sed: command garbled: 32768,$countd
Please find the sample script... (2 Replies)
Discussion started by: rajeshorpu
2 Replies
8. Shell Programming and Scripting
We have a server that logs transactions to a file. I want to write a script that will delete the first 50 lines of the file daily without renameing the file or moving the file. (8 Replies)
Discussion started by: daveisme
8 Replies
9. Shell Programming and Scripting
Hi,
I have a big (2.7 GB) text file. Each lines has '|' saperator to saperate each columns.
I want to delete those lines which has text like '|0|0|0|0|0'
I tried:
sed '/|0|0|0|0|0/d' test.txt
Unfortunately, it scans the file but does nothing.
file content sample:... (4 Replies)
Discussion started by: dipeshvshah
4 Replies
10. Shell Programming and Scripting
Hi Guys ,
I have two files say a1 and a2 having following contents
a1
dag
wfd
a2
dag
wfd
chire
hcm
I want to delete only the lines in a2 which are in a1 and final output of a2 should be
a2
chire
hcm (6 Replies)
Discussion started by: Pradeep_1990
6 Replies
LEARN ABOUT CENTOS
splitmail
splitmail(1) General Commands Manual splitmail(1)
NAME
splitmail - Split a large mail message into MIME-compliant partial messages
SYNOPSIS
splitmail [-d] [-v] [-s splitsize] [-p prefix] [-i id-suffix] [file-name]
DESCRIPTION
The splitmail program will take an email message and break it up into smaller pieces using the "message/partial" type defined by MIME, the
proposed Internet standard for multimedia mail formats.
By default it will take the message either from standard input or the named file, and will produce a set of partial message files with
names like "/tmp/split.1" for the first part, and so on. The prefix "/tmp/split." can be overridden using the "-p" option.
If the -d option is specified, the mail will actually be delivered. If -v is specified, the verbose flag will be passed to sendmail.
The -i option can be used to make splitmail generate the pieces with similar (but not identical) message-id fields, in a format which
allows them to be easily correlated with one another and which end with the suffix provided on the command line after -i.
The default chunk size for spliting messages is 250000 at most sites, though this is also a compile-time option. This can be overriden
with the -s switch, or with the environment variable SPLITSIZE.
Messages smaller than the chunk size will not be turned into partial messages, but will be written to a single file or delivered as a sin-
gle message.
ENVIRONMENT
SPLITSIZE overrides the default chunk size. Setting SPLITSIZE to, say, 4000000 will effectively ensure that your messages are unlikely
ever to be split, but it may cause them to be rejected by some mail transport software.
SEE ALSO
mailto(1), metamail(1)
BUGS
If the size of the input is just on the fencepost, and if it is coming from a file rather than standard input, splitmail will sometimes
estimate the number of parts wrong and will have to write out an extra part. This is harmless but annoying. It is especially annoying if
the estimate was 2 but the real number was 1.
COPYRIGHT
Copyright (c) 1992 Bell Communications Research, Inc. (Bellcore)
Permission to use, copy, modify, and distribute this material for any purpose and without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies, and that the name of Bellcore not be used in advertising or publicity
pertaining to this material without the specific, prior written permission of an authorized representative of Bellcore. BELLCORE MAKES NO
REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY OF THIS MATERIAL FOR ANY PURPOSE. IT IS PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
WARRANTIES.
AUTHOR
Nathaniel S. Borenstein, Bellcore
Release 1 splitmail(1)