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.
 
 
 
 
 
 
xpetit 32eddefd09
Remove template variable [[ROOT]] from subjects and fix subjects
4 years ago
..
README.md Remove template variable [[ROOT]] from subjects and fix subjects 4 years ago

README.md

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.

A word is a sequence of alphanumerical characters.

Words will be separated by only one space in the output.

If the number of arguments is different from 1, the program displays a newline.

Usage

student@ubuntu:~/rostring$ go build
student@ubuntu:~/rostring$ ./rostring "abc   " | cat -e
abc$
student@ubuntu:~/rostring$ ./rostring "Let there     be light"
there be light Let
student@ubuntu:~/rostring$ ./rostring "     AkjhZ zLKIJz , 23y"
zLKIJz , 23y AkjhZ
student@ubuntu:~/rostring$ ./rostring | cat -e
$
student@ubuntu:~/rostring$