a.1.scd 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. A(1)
  2. # NAME
  3. a - manage all kind of archives with one interface
  4. # SYNOPSIS
  5. *a* [_OPTIONS_] -- <_subcmd_> <_args..._>
  6. # OPTIONS
  7. *-v*
  8. verbose
  9. *-V*
  10. print version
  11. *-h*
  12. show this help
  13. *-n*
  14. dry run (see *MISC INFO* section)
  15. *-e* <_ext:str_>
  16. set custom extension
  17. *-o* <_dir:path_>
  18. set output directory (default: _._)
  19. *-T* <_threads:int_>
  20. set number of threads (for {de,}compressors that supports it)
  21. *-M* <_limit:str_>
  22. set memory limit (for {de,}compressors that supports it)
  23. # SUBCOMMANDS
  24. *c* <_archive_> <_file..._>
  25. create <_archive_> with files <_file..._>
  26. *x* <_archive_>
  27. extract files from <_archive_>
  28. *l* <_archive_>
  29. list contents of <_archive_>
  30. *?*
  31. list of supported archive types
  32. # EXAMPLE
  33. ```
  34. # create zip archive with file1 file2 file3
  35. a c archive.zip file1 file2 file3
  36. # list content of archive
  37. a l archive.tar.gz
  38. # extract files from archive.zip as if it were 7z archive to /tmp directory
  39. # and be verbose about extracting files
  40. a -e 7z -v -o /tmp x archive.zip
  41. ```
  42. # MISC INFO
  43. dry run (-n) output should be interpretable for posix compliant shell,
  44. so you can do something like that
  45. ```
  46. a -no /tmp x archive.tar.xz | sh
  47. ```
  48. # AUTHORS
  49. dm9pZCAq.