Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.3 KiB

  1. CAT(1)
  2. CAT - concatenate and print
  3. SYNOPSIS
  4. cat [-aenotuvV] [filename ...]
  5. Options:
  6. -a same as -u if input begins with BOM
  7. -e add '$' at the end of line
  8. -n add line number
  9. -o suppress buffering for output
  10. -t show tab character as '^I'
  11. -u unicode text processing
  12. -v show control characters as '^' + alphabet, except tab and newline.
  13. -V show version
  14. -- declare end of options
  15. DESCRIPTION
  16. cat reads each file in sequence and writes it on the standard output. Thus:
  17. C:> cat file
  18. prints file on your terminal, and:
  19. C:> cat file1 file2 >file3
  20. concatenates file1 and file2, and writes the results in file3.
  21. If no input file is given, cat reads from the standard input file
  22. NOTES
  23. Wildcard expansion:
  24. Wildcard for the directories can be used.
  25. Suppose you have those files.
  26. a\abc-de.c
  27. b\def-df.c
  28. c\def-e.c
  29. If you run cat like
  30. cat */*-d*c
  31. Cat will concatenate abc\abc-de.c and acc\def-df.c. Not abc\def-e.c. Cat searches the perfect match. Like UNIX shell does.
  32. Currently, '*' and '?' are supported as the wildcard.
  33. SEE ALSO
  34. cp(1), dog(s), more(1), less(6), tail(1)