The split tag has no wiki summary.
3
votes
3answers
69 views
Split file into multiple small files, separate by the newline symbol
Is there a utility that split file by newline symbol? e.g if a file contains the following lines,
aa
bbb
cccc
If I want to split it to 3 files, the desired output would be:
aa, bbb And cccc (in 3 ...
3
votes
3answers
125 views
Split PDF into documents with several pages each
There are several resources on the web explaining how one can split a PDF into many files with on page per file.
But how can you split them into chunks of, say, five pages each? I have looked into ...
4
votes
4answers
157 views
How can I split a large text file into chunks of 500 words or so?
I know there's the command split which can split a file into several chunks based on file size, and then there's the command wc which can count words. I just don't know how to use the two together.
3
votes
4answers
155 views
Using GNU Parallel With Split
I'm loading a pretty gigantic file to a postgresql database. To do this I first use split in the file to get smaller files (30Gb each) and then I load each smaller file to the database using GNU ...
0
votes
2answers
129 views
Why screen is not splitting my GNOME terminal?
I am working in a remote Linux box using VNC.I have a single terminal with lots of tabs opened in my system. How can I split them using the screen utility? Does the screen utility work with already ...
4
votes
2answers
343 views
What's a safe and portable way to split a string in shell programming?
When writing a shell script, I often want to split a string. Here's a very simple example:
for dir in $(echo $PATH | tr : " "); do
[[ -x "$dir"/"$1" ]] && echo $dir
done
This will ...
4
votes
3answers
108 views
Tar piped to split piped to scp
So I'm trying to transfer a bunch of files via SCP. Some of these are too large to be stored on the recipient (Android phone, 4GB file size limit).
The sender is almost out of space, so I can't ...
1
vote
1answer
329 views
Reading the contents of the file and splitting using ksh
We're using a ksh script for installing one product.
I've another config file, I'd need to read this configuration file from my main script
Content of the Configuration file:
...
2
votes
1answer
264 views
How to split a ddrescue disk image and how to use it again?
I have a 500GB external HDD that I need to rescue the contents of. Unfortunately I only have two 400GB partitions to save the contents to. Can I split the disk image as:
~$ cd /mnt/part1/Recovery/
...
3
votes
0answers
29 views
gnu screen: automatic session on split
Inactive region appears after 'split' command in gnu screen now. You must go to the new region and type :screen. Only after that shell session appears in this region.
Is it possible to make new ...
0
votes
1answer
134 views
Split large txt file into certain small file
I have a txt file which is formatted as 250,000 * 3600 (3600 rows and 250,000 column) I am going to split it into 3600 small txt which each file is 250,000 * 1.
I understand the split can basically ...
1
vote
4answers
3k views
Splitting string by the first occurrence of a delimiter
I have a string in the next format
id;some text here with possible ; inside
and want to split it to 2 strings by first occurrence of the ;. So, it should be: id and some text here with possible ; ...
7
votes
4answers
306 views
Creating a single output stream out of three other streams produced in parallel
I have three kinds of data that are in different formats; for each data type, there is a Python script that transforms it into a single unified format.
This Python script is slow and CPU-bound (to a ...
6
votes
4answers
360 views
Spreading stdin to parallel processes
I have a task that processes a list of files on stdin. The start-up time of the program is substantial, and the amount of time each file takes varies widely. I want to spawn a substantial number of ...
2
votes
2answers
330 views
splitting the array and send the values to hashset in awk
I am getting var as argument from shell script to awk
awk -v var = "blah1|blah2|blah3" -f awk_script.awk
I need to put each blah's into a hashset, currently, I am doing it like this. I am getting ...