We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ddacb33 commit f27713dCopy full SHA for f27713d
text/cut.sh text/modify.sh
@@ -10,4 +10,11 @@ cut -f1-3 -d ',' <<<$str
10
echo "Give me a sentence and I will write first 3 words"
11
read str
12
# TAB is the default delimiter, but to specify it $"\t"
13
-cut -f1-3 -d" " <<<$str
+cut -f1-3 -d" " <<<$str
14
+
15
16
+# tr is a translator
17
+# delete all digits
18
+tr -d [0-9]
19
+# supress multiple spaces
20
+tr -s " "
0 commit comments