Skip to main content

Questions tagged [split]

Filter by
Sorted by
Tagged with
3 votes
3 answers
2k views

I have a PDF file with multiple pages, and I want to write a command which extracts some of these pages into a new, separate PDF file; and the pages of interest are not necessarily a contiguous range. ...
einpoklum's user avatar
  • 11.1k
0 votes
1 answer
89 views

I have got a PDF file with many tomes in it. Because it contains a lot (>5,000) of pages I want to split it. I have used pdftk like this: pdftk input.pdf cat 487-2987 output second_tome.pdf It ...
Felix.leg's user avatar
  • 103
-1 votes
2 answers
96 views

Update: Up to 2 "/" in the string. String structure is either: Character set name/LF Character set name/CRLF Character set name/CRLF/(unknown purpose, likely a number) Character set name ...
strider's user avatar
  • 113
0 votes
1 answer
131 views

I have large files which are generated on the fly to stdout, one every 24hours. I would like to archive these files progressively on tapes, ideally in a single archive which potentially spans multiple ...
lorenzo's user avatar
0 votes
1 answer
118 views

I have a really large archive consisting of really small files, concatenated into a single text file, with a "" dilimiter. For smaller archives, I would split the archive using "" ...
Alex's user avatar
  • 1,240
0 votes
3 answers
144 views

I am trying to read a file in Linux and as soon as a "&" character is encountered, I am writing the output to another file, sending that file to another folder and then continuing to ...
python6's user avatar
2 votes
1 answer
190 views

In my case, the big file is tar.gz, I have myBigFile.tar.gz with size 52GB, I splitted it with chunk size 2GB therefore I have 27 parts file. Here is the code I program from scratch: from time import ...
Muhammad Ikhwan Perwira's user avatar
11 votes
3 answers
8k views

Some background you can happily skip Twenty years ago or so, when navigating the web costed a lot, when I was a Windows-only user, and when CDs/DVDs were a large storage means, and when sharing video ...
Enlico's user avatar
  • 2,362
2 votes
1 answer
209 views

On Ubuntu 22.04, I found these 2 methods will get different sha256 of archive_tgz tar czf /a/archive_tgz . tar czf /dev/stdout . | split -d -b 200M - /a/archive. && cat /a/archive.* > /a/...
Azreal's user avatar
  • 43
1 vote
1 answer
1k views

I have backed up a file in zip format on Ubuntu whose size is 6.5GB. Trying to transfer it to a USB stick so needed to split since I got error “file size too large” while copying. (Ideally I want my ...
Gautam's user avatar
  • 121
1 vote
3 answers
781 views

I've got a program that will be generating 4 large binary files (400GB+ each) that I need to upload to AWS S3 as quickly as possible. I'd like to begin uploading before the files are completely ...
Alistair Swanson's user avatar
1 vote
2 answers
293 views

I guess that given a file of a certain size, not all of its bytes will be contiguous on disk (or will they? Just for existence of the phrase "defragmenting a disk" I assume they will not). ...
Enlico's user avatar
  • 2,362
0 votes
2 answers
380 views

I have a really big file that looks like this: >name1 ACGTACGTACGT ACGTACGTACGT ACGTACGTACGT ACGTACGTACGT >name2 ACGTACGTACGT ACGTACGTACGT ACGTACGTACGT >name ACGTACGTACGT ACGTACGTACGT ...
msening's user avatar
0 votes
1 answer
16k views

I have a folder of roughly 600MB of images in a folder output_test. I then create 100MB chunks of tar.gz files using the following command: tar -czf - output_test/ | split --bytes=100MB -d -a 3 - ...
Martin Müller's user avatar
1 vote
2 answers
236 views

I am currently working with a large fasta file (3.7GB) that has scaffolds in it. Each scaffold has a unique identifier that starts with > on the first line and on the consecutive line it has the ...
Nadia Tamayo's user avatar
0 votes
0 answers
89 views

I have a bash file that takes a large csv and splits the csv into smaller csv's based on this blog https://medium.com/swlh/automatic-s3-file-splitter-620d04b6e81c. It works well as it is fast never ...
vfrank66's user avatar
  • 101
0 votes
0 answers
89 views

I am using the split command in cshell to split a file into smaller files. Since the split command names the output files xaa,xab,xac.... i have to rename them. I want to store the split commands ...
coolguy123's user avatar
2 votes
0 answers
3k views

I need to scan files larger than 4GB, I tried the following solutions: 1- I tried to edit the clamd.conf and set the MaxScanSize 100000M MaxFileSize 100000M (Just any arbitrary size that's larger than ...
guest456782's user avatar
9 votes
2 answers
1k views

I have Afile made by the equivalent of cat a.gif b.7z > Afile. How may I split Afile into the original a.gif and b.7z files?
user536180's user avatar
0 votes
2 answers
2k views

The following files exist in the current directory GCF_000901975.1_ViralProj181986_genomic.fna.gz GCF_001885505.1_ViralProj344311_genomic.fna.gz GCF_000901995.1_ViralProj181990_genomic.fna.gz ...
loki's user avatar
  • 53
1 vote
0 answers
1k views

This question is related to this post here: Cloning/Splitting a serial port (COM) port in Ubuntu I followed the steps to make the virtual ports but the problem is that I need full-duplex ...
Jason O's user avatar
  • 111
0 votes
0 answers
140 views

I have a fold command as below to split a file with very long line into multiple lines. It works if the file is small. But if the length of the file is too long, it stops adding new line character ...
Ram's user avatar
  • 25
0 votes
1 answer
219 views

Currently using following model, but one needs double the amount of disk space to restore compressed archive given one has to pipe all parts to tar before one can delete them. $ COPYFILE_DISABLE=true ...
sunknudsen's user avatar
1 vote
0 answers
225 views

I have a single string that contains a shell command line. I need to remove a specific argument from this string (if present), and print the result, while keeping it a valid shell command. How can I ...
Konrad Rudolph's user avatar
16 votes
1 answer
3k views

So I'm trying to split a 64MB file FileCarve.001 into 512 byte segments (each block is 512 bytes long). I need to make sure the file has the same data when split into smaller files, so I cat all the ...
FlashDaggerX's user avatar
1 vote
1 answer
355 views

I have a server that is running out of disk space. I want to move some TB sized directories into a long term archive. This is a tape robot with preferred file size of 16GB. Therefore I want to split ...
AlexK's user avatar
  • 25
8 votes
1 answer
2k views

For my work, I try to split my new ultrawide monitor in 3 virtual screens on Ubuntu (I don't want to use tile tools as gTile). My first test using "xrandr" was OK when I selected "xorg&...
Philippe's user avatar
1 vote
1 answer
659 views

I want to take a huge file data.txt and: Split it by 256m Add the first 3 lines of data.txt to each split file gzip it data.txt looks like: aaa bbb ccc <data> <data> <data> ... <...
Nir's user avatar
  • 1,405
3 votes
3 answers
2k views

I've read up on a few answers here in reference to quoting variables on the shell. Basically, here's what I'm running: for f in "$(tmsu files)"; do echo "${f}"; done this has the ...
Harv's user avatar
  • 2,612
0 votes
2 answers
315 views

I have a large text file, containing up to 2300 sections. Each section begins, one line before, "PAGE 1" The page number is at very end of the line, Example: T5271-AX1 TITLE ...
C0ppert0p's user avatar
  • 137
1 vote
1 answer
159 views

I would like to split an input file on character count (ASCII is fine), combined with new lines as well. That is, every group of 10000 character should be seen as one record to be piped into the child ...
Frazier Thien's user avatar
-1 votes
1 answer
356 views

I have a file results.txt that contains the following: the word: word1 is a not detected And I have a txt file contain the list of words as following: word1 word2 word3 ... And I want to generate ...
Houssam Dev's user avatar
2 votes
2 answers
3k views

I have a large mp3 file; I want to split it into 480 mp3 files in different time points. I want to know if there is an easy way to do it other than splitting it one by one. Can I provide the different ...
YucefBerus's user avatar
0 votes
1 answer
2k views

I'm trying to split a long csv into files of 500 lines each. I want the output files in a specific directory, and I want to leave off the first line of the csv. I can use split and leave off the ...
Amadou Kone's user avatar
1 vote
1 answer
10k views

I am trying to use split() with awk. I am splitting the contents of $7 with split() into an array, but not sure how to print the contents starting from reverse order. The field $7 is of variable ...
Jason Aruni's user avatar
0 votes
1 answer
61 views

So, I want to monitor live logs as they come with less +F, but the logs have a LOT of noise before the actual message - fortunately the line is segmented by | character, with the timestamp being ...
Maciej's user avatar
  • 109
10 votes
1 answer
3k views

As an old VIM user, attracted to it in the first place especially because of its straightforward regex substitutions that allow to work really fast, I'm not really expecting VIM to have such a feature....
tomoyo255's user avatar
  • 203
1 vote
4 answers
2k views

Does a streaming version of split exist somewhere in Linux? I'm trying to back up a large amount of data via SSH, but SSH's single threaded encryption is limiting the transfer. This machine doesn't ...
JanKanis's user avatar
  • 1,649
0 votes
1 answer
486 views

I want to print output of below command to file, can you help me I tried 2>&1 even 2>> also dd if=/dev/random bs=1 count=1000 status=progress |split -b 10 -a 10 I have other dd command ...
Samurai's user avatar
  • 95
1 vote
1 answer
231 views

the following code extracts data from csv files contained in a folder, creates new folders (based on filename and date), creates and stores multiple csv files in the said folders. more info on this is ...
dante_t's user avatar
  • 151
4 votes
2 answers
2k views

I have a csv file with the format: Input.csv: TIMESTAMP,Data1,Data2,Data3,Data4 "2021-01-03 00:00:00",80953,3.243183,2.943338,358.0123 "2021-01-03 00:01:00",80954,2.173187,1.990327,...
dante_t's user avatar
  • 151
0 votes
0 answers
197 views

I have a process outputing an MJPEG video stream, which I pipe into ffmpeg to reduce framerate and then to a socket. raspivid -t 999999 -cd MJPEG -w 1920 -h 1080 -o - | ffmpeg -i - -f mjpeg -r 2 - | ...
Ivan Koshelev's user avatar
1 vote
0 answers
207 views

I am trying to archive a directory containing many subdirectories and files, most of which are JPEG files. I would like to run each file through JPEG XL before adding to the tar archive, to reduce ...
jl6's user avatar
  • 1,485
-1 votes
3 answers
460 views

I have similar output like below goes so long. I want to create columns with this output but with like groups/blocks. And process output after a pipe. id: c2b751c227111edfgdghfhfg19079a466e1916f6df4 ...
Yanik's user avatar
  • 1
2 votes
1 answer
2k views

I'm having trouble with a large text file (30GB) I would like to create smaller files from it (5GB lets say) But sadly I don't have no more storage (only ~10G is available). This line: split -b 5g &...
Andras Karpati's user avatar
3 votes
3 answers
2k views

I have a very large folder that I am trying to create a tar archive of. The issue is I don't have enough extra free space to store the entire archive so I want to create say 100-200GB chunks of the ...
Josh Harrison's user avatar
0 votes
0 answers
1k views

I'm splitting a large CSV file with small chunks using the split command. Each file should contain 1000 rows only. The command I used is, cat large.csv | split -a3 -l1000 --filter='gzip > $FILE.gz'...
TheDataGuy's user avatar
0 votes
1 answer
1k views

I have a script with a while loop that will print a text. I want to save it into files with custom name. Script: #!/bin/bash while true do echo "Press [CTRL+C] to stop.." done I can run ...
TheDataGuy's user avatar
4 votes
1 answer
995 views

i have a file that contains several lines(9074 line), i want to split the file into 10 files contain the same number of lines except the last file that contain the remainder number of lines split -l `...
user441167's user avatar
-1 votes
1 answer
2k views

we are using the following ISO file for rhel upgrade 4.2G RHEL-7.6.iso since we have problem to copy this ISO file between WIN to Linux machine and that because sometime network problem cause ISO ...
yael's user avatar
  • 14.1k

1
2 3 4 5 6