From 15849da6f9a7605c71e5e58a247025d572aca621 Mon Sep 17 00:00:00 2001 From: Christopher Fremond Date: Wed, 30 Oct 2019 01:07:59 +0000 Subject: [PATCH] removal of extra file --- subjects/cleanstr.md | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 subjects/cleanstr.md diff --git a/subjects/cleanstr.md b/subjects/cleanstr.md deleted file mode 100644 index 0a332e583..000000000 --- a/subjects/cleanstr.md +++ /dev/null @@ -1,27 +0,0 @@ -# cleanstr -## Instructions - -Write a program that takes a string, and displays this string with exactly one -space between words, with no spaces or tabs either at the beginning or the end, -followed by a \n. - -A "word" is defined as a part of a string delimited either by spaces/tabs, or -by the start/end of the string. - -If the number of arguments is not 1, or if there are no words to display, the -program displays \n. - -And its output : - -```console -student@ubuntu:~/student/cleanstr$ go build -student@ubuntu:~/student/cleanstr$ ./cleanstr "you see it's easy to display the same thing" | cat -e -you see it's easy to display the same thing$ -student@ubuntu:~/student/cleanstr$ ./cleanstr " only it's harder " -only it's harder$ -student@ubuntu:~/student/cleanstr$ ./cleanstr " how funny" "Did you hear Mathilde ?" -$ -student@ubuntu:~/student/cleanstr$ ./cleanstr "" | cat -e -$ -student@ubuntu:~/student/cleanstr$ -```