Talk:Cat (Unix)
From Wikipedia, the free encyclopedia
[edit] copy commands
- Unix/*nix programs (Also sometimes used in Windows versions)
- cp -- copy files; can concatenate files
- cpio -- copy an entire directory structure from one place to another
- cat -- concatenate and display files
- dd -- copy streams, files, or devices in whole or part
- head -- display/copy the first part of a file
- tail -- display/copy the last part of a file
- DOS/Windows programs (Seldom used in *nix versions)
- COPY -- copy files or sets of files, binary or text mode, can concatenate files
- XCOPY -- eXtended version of COPY, for copying file structures
- XXCOPY -- further extended commercial program
- ROBOCOPY -- further extended version, included in Vista
Other specialized programs are used to split large files into pieces and then put the pieces back together.
There are no good standard programs to extract an arbitrary piece of a file into another file. dd can be used, but requires setting blocksize to 1, which is very inefficient. In Windows, the obscure program CPART can be used.
grep and awk are powerful *nix programs for looking for patterns in a file. -69.87.200.198 00:30, 17 October 2007 (UTC)