split - How to spilt a txt file into many smaller files by titles in linux -
i have large txt file contains hundreds of news articles, want spilt in several smaller txt files titles.
can let me know how please?
use split command split.
$ split --help usage: split [option]... [input [prefix]] output fixed-size pieces of input prefixaa, prefixab, ...; default size 1000 lines, , default prefix `x'. no input, or when input -, read standard input. mandatory arguments long options mandatory short options too. -a, --suffix-length=n use suffixes of length n (default 2) -b, --bytes=size put size bytes per output file -c, --line-bytes=size put @ size bytes of lines per output file -d, --numeric-suffixes use numeric suffixes instead of alphabetic -l, --lines=number put number lines per output file --verbose print diagnostic before each output file opened --help display , exit --version output version information , exit size may (or may integer optionally followed by) 1 of following: kb 1000, k 1024, mb 1000*1000, m 1024*1024, , on g, t, p, e, z, y.
Comments
Post a Comment