mirror of https://github.com/01-edu/public.git
docs(better-cat): ask directly to print the line numbers
This commit is contained in:
parent
883d73cd09
commit
77df8ac2a4
|
@ -4,7 +4,7 @@
|
|||
|
||||
Create a script `better-cat.sh` that will behave similarly to the `cat` command, but with additional functionality.
|
||||
|
||||
The script should accept any number of filenames as arguments, and it should print the content of each file to the standard output. If no arguments are provided, the script should print the content of all files in the current directory.
|
||||
The script should accept any number of filenames as arguments, and it should print the content of each file to the standard output. If no arguments are provided, the script should print the content of all files in the current directory. Before each line it should print the line number followed by a colon(`:`) and a space as in the usage examples.
|
||||
|
||||
The script should also support the following options:
|
||||
|
||||
|
|
Loading…
Reference in New Issue