Load records or payloads from disk.
ndeftool load [OPTIONS] PATH ndeftool l [OPTIONS] PATH
The load command reads records or payloads from disk files or
standard input. The files for reading are determined by the pattern
specified by PATH, which in the simplest form is an existing file
name. Other forms may include
? and character ranges expressed
. A single
- may be used to read from standard input. Note
that patterns containg wildcards may need to be escaped to avoid shell
The default mode of operation is to load files containing NDEF
--pack mode the files are loaded into the payload of
NDEF records with record type (NDEF Record TNF and TYPE) set to the
mimetype discovered from the payload and record name (NDEF Record ID)
set to the filename.
- -p, --pack¶
Pack files as payload into mimetype records.
Show this message and exit.
Pack text from standard input and pack as record.
$ echo -n "Hello World" | ndeftool load --pack - print /bin/sh: 1: ndeftool: not found
Read text from file and pack as record.
$ echo -n "Hello World" > /tmp/hello && ndeftool load --pack /tmp/hello print /bin/sh: 1: ndeftool: not found
Read with path containing wildcard characters.
Read and pack multiple files.