Home Explore Blog Models CI



nix

1st chunk of `src/nix/nar-cat.md`
c0973ee3bc058f5343a3159a0fe0c573833f82f84cff282c00000001000001bf
R""(

# Examples

* List a file in a [Nix Archive (NAR)][Nix Archive] and pipe it through `gunzip`:

  ```console
  # nix nar cat ./hello.nar /share/man/man1/hello.1.gz | gunzip
  .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.46.4.
  .TH HELLO "1" "November 2014" "hello 2.10" "User Commands"
  …
  ```

# Description

This command prints on standard output the contents of the regular
file *path* inside the NAR file *nar*.

)""

Title: Nix nar cat Command
Summary
The `nix nar cat` command is used to print the contents of a specified regular file located inside a Nix Archive (NAR) file to standard output. An example demonstrates piping the output of a gzipped file through `gunzip`.