copy the contents of a file in unix in parts

March 2, 2011 at 16:28:29
Specs: linex
i hav a file with which must be divided based on users entery division should be divided and must be saved in different files

See More: copy the contents of a file in unix in parts

Report •

#1
March 2, 2011 at 20:00:30
Depends on what wrote the file.

Report •

#2
March 2, 2011 at 20:06:33
there are a number of ways to split files in *nix. The split command can split a file into pieces based on the number of lines, bytes, etc.

The csplit command splits a file by context or regular expression. Here are links:

http://www.computing.net/answers/un...

http://www.computing.net/answers/pr...

If you need more help, post more information - like sample data.


Report •
Related Solutions


Ask Question