mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-24 03:53:31 +00:00
690a1d6948
Add cat command to print file content to standard out Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Roger Knecht <rknecht@pm.me>
49 lines
723 B
ReStructuredText
49 lines
723 B
ReStructuredText
.. SPDX-License-Identifier: GPL-2.0+:
|
|
|
|
cat command
|
|
===============
|
|
|
|
Synopsis
|
|
--------
|
|
|
|
::
|
|
|
|
cat <interface> <dev[:part]> <file>
|
|
|
|
Description
|
|
-----------
|
|
|
|
The cat command prints the file content to standard out.
|
|
|
|
interface
|
|
interface for accessing the block device (mmc, sata, scsi, usb, ....)
|
|
|
|
dev
|
|
device number
|
|
|
|
part
|
|
partition number, defaults to 1
|
|
|
|
file
|
|
path to file
|
|
|
|
Example
|
|
-------
|
|
|
|
Here is the output for a example text file:
|
|
|
|
::
|
|
|
|
=> cat mmc 0:1 hello
|
|
hello world
|
|
=>
|
|
|
|
Configuration
|
|
-------------
|
|
|
|
The cat command is only available if CONFIG_CMD_CAT=y.
|
|
|
|
Return value
|
|
------------
|
|
|
|
The return value $? is set to 0 (true) if the file is readable, otherwise it returns a non-zero error code.
|