add single arg

This commit is contained in:
MSilva95 2022-07-08 11:29:26 +01:00 committed by Dav Hojt
parent 5c11b6e9ec
commit 6574814741
1 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,8 @@ Write a program that rotates the arguments in the command line by 1 position.
```console ```console
$ go run . | cat -e $ go run . | cat -e
$ $
$ go run . "hello" | cat -e
$
$ go run . 1 2 3 4 5 6 7 8 9 | cat -e $ go run . 1 2 3 4 5 6 7 8 9 | cat -e
2 3 4 5 6 7 8 9 1$ 2 3 4 5 6 7 8 9 1$
$ go run "Hello" "World" | cat -e $ go run "Hello" "World" | cat -e