You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
820 B

## rostring
### Instructions
Write a program that takes a string and displays this string after rotating it
one word to the left.
Thus, the first word becomes the last, and others stay in the same order.
6 years ago
A word is a sequence of **alphanumerical** characters.
Words will be separated by only one space in the output.
6 years ago
If the number of arguments is not one, the program displays a newline.
6 years ago
Examples of outputs :
```console
student@ubuntu:~/piscine/rostring$ go build
student@ubuntu:~/piscine/rostring$ ./rostring "abc " | cat -e
abc$
6 years ago
student@ubuntu:~/piscine/rostring$ ./rostring "Let there be light"
there be light There
student@ubuntu:~/piscine/rostring$ ./rostring " AkjhZ zLKIJz , 23y"
zLKIJz , 23y AkjhZ
student@ubuntu:~/piscine/rostring$ ./rostring | cat -e
$
student@ubuntu:~/piscine/rostring$
```