open for filesystem

Load a file into a cell, converting to table if possible (avoid by appending '--raw').


> open (filename) --raw


  • filename: the filename to use
  • optional additional files to open
  • --raw (-r): open file as raw binary


Open a file, with structure (based on file extension or SQLite database header)

> open myfile.json

Open a file, as raw bytes

> open myfile.json --raw

Open a file, using the input to get filename

> 'myfile.txt' | open

Open a file, and decode it by the specified encoding

> open myfile.txt --raw | decode utf-8