Command of the day (25 Oct) - csplit

codlinuxcsplit

csplit - Split file by pattern

    csplit file /pattern/: Split files at /pattern/

    csplit file '/^2026-/' '{*}':

    csplit mailbox '/^From /' '{*}':

    objdump -j .text -d bin | csplit -f func_ '/^[0-9af]\+ <.*>.$/':

 

Get your free ebook

Learn GNU/Linux one command a day

Return to Home Page