bzgrep.1 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. \"Shamelessly copied from zmore.1 by Philippe Troin <phil@fifi.org>
  2. \"for Debian GNU/Linux
  3. .TH BZGREP 1
  4. .SH NAME
  5. bzgrep, bzfgrep, bzegrep \- search possibly bzip2 compressed files for a regular expression
  6. .SH SYNOPSIS
  7. .B bzgrep
  8. [ grep_options ]
  9. .BI [\ -e\ ] " pattern"
  10. .IR filename ".\|.\|."
  11. .br
  12. .B bzegrep
  13. [ egrep_options ]
  14. .BI [\ -e\ ] " pattern"
  15. .IR filename ".\|.\|."
  16. .br
  17. .B bzfgrep
  18. [ fgrep_options ]
  19. .BI [\ -e\ ] " pattern"
  20. .IR filename ".\|.\|."
  21. .SH DESCRIPTION
  22. .IR Bzgrep
  23. is used to invoke the
  24. .I grep
  25. on bzip2-compressed files. All options specified are passed directly to
  26. .I grep.
  27. If no file is specified, then the standard input is decompressed
  28. if necessary and fed to grep.
  29. Otherwise the given files are uncompressed if necessary and fed to
  30. .I grep.
  31. .PP
  32. If
  33. .I bzgrep
  34. is invoked as
  35. .I bzegrep
  36. or
  37. .I bzfgrep
  38. then
  39. .I egrep
  40. or
  41. .I fgrep
  42. is used instead of
  43. .I grep.
  44. If the GREP environment variable is set,
  45. .I bzgrep
  46. uses it as the
  47. .I grep
  48. program to be invoked. For example:
  49. for sh: GREP=fgrep bzgrep string files
  50. for csh: (setenv GREP fgrep; bzgrep string files)
  51. .SH AUTHOR
  52. Charles Levert (charles@comm.polymtl.ca). Adapted to bzip2 by Philippe
  53. Troin <phil@fifi.org> for Debian GNU/Linux.
  54. .SH "SEE ALSO"
  55. grep(1), egrep(1), fgrep(1), bzdiff(1), bzmore(1), bzless(1), bzip2(1)