VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » IT, programs, coding
Got Text Files Too Big To Work With? Split 'Em Up! DistroTube

Got Text Files Too Big To Work With? Split 'Em Up! DistroTube

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
Got Text Files Too Big To Work With? Split 'Em Up! DistroTube Two incredibly useful command line utilities that allow you to split up large, unwieldy text files are 'split' and 'csplit'. Part of the GNU coreutils, 'split' and 'csplit' allow you to split a file based on line count, byte size or based on pattern matching. - https://man7.org/linux/man-pages/man1/split.1.html - https://man7.org/linux/man-pages/man1/csplit.1.html
Date: 2022-03-30

Comments and reviews: 10


Thank you so much for these videos. Wish I knew about these commands earlier. Handling /etc/network/interfaces file would be so much simpler. On modern Debians it's constructed from collection of files in /etc/network/interfaces.d directory, but it was not always the case.
Perhaps worth mentioning for anybody using these commands - the cat command can be used to con-cat-anate the files back into one.

reply

Back in the 1980s when I first started using Unix which much of Gnu/Linux is based on it was well known what a pack of tools these utilities represented. I used to work strictly in the command line originally on a printing terminal so had learn the basics. Great tutorial.
reply

Just a quick note: When creating temporary files (or spitting files just for fun) its a good habit to do this in /tmp/. The reason is that /tmp is usually backed up by RAM rather then disc. So you are avoiding unnecessary write operations to an SSD for instance.
reply

I love these kinds of videos. A lot of these commands, like awk, are super old and it's fascinating to see how they work and how usefull they really are as they were created to solve a particular problem the people back then had, or to simplyfy their work.
reply

Really helpful, i still see my colleagues sometimes using split in a shell script, keep up the good work. It's a wonderful tool when you want to work with huge files
Wondering how you would join those files back as one

reply

you also learn about split when all you had was floppy disks and you couldn't afford cds or when you have to use fat32 partitions and large files, that shit can't hold files larger than 4gb
reply

I have used split to break up tar archives and backups into smaller chunks for easier upload. It is straightforward to cat them back together in a pipe when extracting.
reply

Thanks. But you forgot to mention how to join split file back to its original state using the cat command. Or it will be covered in the next video? ;)
reply

Thanks DT. Once again I'm discovering solutions for some unforseen problems . Who knew they were right under my nose all along...I guess you did :)
reply

To be honest, In my opinion, without offending anyone or being condescending, and without triggering anyone, I just wanna say I got nothing to say.
reply
Add a review, comment






Other channel videos