03-23-2018
Why shouldn't that work? If the first positional parameter holds the file name, it should. What errors do you get? Run with the -x option set and post the log.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have gone through all the threads in the forum and tested out different things. I am trying to split a 3GB file into multiple files. Some files are even larger than this.
For example:
split -l 3000000 filename.txt
This is very slow and it splits the file with 3 million records in each... (10 Replies)
Discussion started by: madhunk
10 Replies
2. Shell Programming and Scripting
Hi All,
I have a requirement .I want to split a file and the split files should have certain names.
Currently when i use the split command
split -1000 testdata testdata_
Then the output is
testdata_aa
testdata_bb
testdata_cc
and so on.
But i want the output as
testdata1.snd... (3 Replies)
Discussion started by: dnat
3 Replies
3. Shell Programming and Scripting
I have a file test1.html like below:
<dctm_topnav_en_US>
<html>
.....
</html>
<dctm_topnav_en_CA>
<html>
.....
</html>
<dctm_topnav_en_FR>
<html>
.....
</html>
I need to use awk to split this into three file names like en_US.html ,
en_CA.html, en_FR.html each having content between... (4 Replies)
Discussion started by: vijay52
4 Replies
4. UNIX for Dummies Questions & Answers
Hi everyone,
I am trying to write an if statement that will split a file if it is over 1 million records/lines into files with say 900,000 records and then rename
those files without the aaa, aab, aac format that splitting normally does and into a specific naming convention. For instance, if... (2 Replies)
Discussion started by: coach5779
2 Replies
5. UNIX for Dummies Questions & Answers
I have a file named Me_thread_spell.txt that I want to split into smaller files. I want it to be split in each place there is a ;;;. For example,
blah blah blah ;;;
blah bhlah hlabl
awasnceuir
asenduhfoijhacseiodnbfxasd;;;
oabwcuhaweoir;;;
This full file would be three separate files... (7 Replies)
Discussion started by: mschpers
7 Replies
6. Shell Programming and Scripting
Hello;
I have a file consists of 4 columns separated by tab. The problem is the third fields. Some of the them are very long but can be split by the vertical bar "|". Also some of them do not contain the string "UniProt", but I could ignore it at this moment, and sort the file afterwards. Here is... (5 Replies)
Discussion started by: yifangt
5 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have a data file like below
messageid|email|timestamp
750452173|123@googlemail.com|2013-05-24 16:14:32
750464921|000@gmail.com|2013-06-13 19:38:01
750385426|001@googlemail.com|2013-01-06 12:06:36
750373470|000@wz.eu|2012-11-30 22:32:07
.
.
I want to split the files based on the... (4 Replies)
Discussion started by: armsaran
4 Replies
8. Shell Programming and Scripting
Hello,
Need to split files into n number of files and rename the files
Example:
Input:
transaction.txt.1aa
transaction.txt.1ab
......
Output:
transaction.txt.1
transaction.txt.2
transaction.txt.3 (3 Replies)
Discussion started by: krux_rap
3 Replies
9. Shell Programming and Scripting
Hello,
I'm using Windows 7 ; sed, awk and gnuwin32 are installed.
I have a big text file I need to manipulate.
In short, I will have to split it in thousands of short files, then rename and save in a folder which name is based upon filename.
Here is a snippet of my big input.txt file (this... (4 Replies)
Discussion started by: sellig
4 Replies
10. UNIX for Beginners Questions & Answers
i use the split command to split a one terabyte backup file into 10 chunks of 100 GB each. The files are split one after the other. While the files is being split, I will like to scp the files one after the other as soon as the previous one completes, from server A to Server B. Then on server B ,... (2 Replies)
Discussion started by: malaika
2 Replies
LEARN ABOUT SUSE
slrnpull
slrnpull(1) User Manuals slrnpull(1)
NAME
slrnpull - Pull a small newsfeed for offline reading.
SYNOPSIS
slrnpull [-d spooldir] [-h server] [--debug file] [--expire] [--fetch-score n] [--help] [--kill-log file] [--kill-score n] [--logfile file]
[--marked-bodies] [--new-groups] [--no-post] [--post] [--post-only] [--rebuild] [--version]
DESCRIPTION
slrnpull pulls a small newsfeed from an NNTP server. It puts the articles into a spool directory from which slrn can later read them, even
if the server is unreachable at that time. Typically, this is useful if you do not have a permanent network connection.
OPTIONS
The following options can be used when calling slrnpull from the command line.
-d spooldir
Set slrnpull's root directory for this run to spooldir, overriding the $SLRNPULL_ROOT environment variable.
-h host[:port]
Connect to the NNTP server on host, overriding the $NNTPSERVER environment variable. If no port is given, the default NNTP port
(119) will be used.
--debug file
Write dialogue with the server and some additional debugging output to file.
--expire
Expire (remove) old messages from the spool, but do not fetch news.
--fetch-score n
Fetch article bodies with a score of at least n automatically (in true offline mode, the default is to fetch only bodies that were
explicitly marked by the user).
--help Show help for command line switches.
--kill-log file
Keep a log of all articles that were killed by the scorefile in file. By default, no such logfile is created.
--kill-score n
Kill all articles with a score below n. The default value for this is 0.
--logfile file
Log the messages and errors that slrnpull prints to the screen to file. By default, they get written to the file log in slrnpull's
root directory.
--marked-bodies
Only fetch bodies that were marked for download within slrn.
--new-groups
Check for new groups, appending them to the file new.groups in the data directory.
--no-post
Do not post any articles to the server.
--post Obsolete version of --post-only.
--post-only
Post outgoing articles, but do not fetch news.
--rebuild
Like --expire, but also rebuild the overview information. To be used when the overview information is damaged.
--version
Print the version number.
ENVIRONMENT
slrnpull reads the following environment variables. Note that they can be overridden by command line switches.
NNTPSERVER
You can use this variable to tell slrnpull which NNTP server to connect to. It can be overridden by the command line option -h.
SLRNPULL_ROOT
Defines the directory where slrnpull will look for its configuration files and spool the articles. An absolute filename is needed
here. This can be overriden by the option -d.
FILES
$SLRNPULL_ROOT/authinfo
If the server requires authentication, this file needs to contain the data (username in the first line, password in the second). Be
careful not to make this file world-readable!
$SLRNPULL_ROOT/log
The default file to log status and error messages to.
$SLRNPULL_ROOT/score
If you want slrnpull to apply scoring rules to decide which articles to download, put them into this file.
$SLRNPULL_ROOT/slrnpull.conf
The main configuration file. It tells slrnpull how many articles to get from which groups and when to expire them.
SEE ALSO
The documentation that comes with slrnpull, especially README and SETUP. The FAQ of slrn also answers some questions about slrnpull.
You might also want to look at slrn's official home page, http://slrn.sourceforge.net/ or post to news.software.readers if you have a ques-
tion not covered by existing documentation.
The latest version of slrnpull is part of the slrn package available from http://prdownloads.sourceforge.net/slrn/
AUTHOR
John E. Davis <davis@space.mit.edu>
Please send any bug reports to the current maintainer, Thomas Schultz <tststs@gmx.de>
Unix September 2004 slrnpull(1)