This commit is contained in:
Jonathan Cook
2019-10-23 15:01:44 +02:00
parent db85c8f275
commit 684ec0d2e3
20486 changed files with 1642483 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/bin/bash
my_var="Hola Mundo"
echo ${my_var}
my_filename="interesting-text-file.txt"
echo ${my_filename:0:21}
echo ${my_filename%.*}
complicated_filename="hello-world.tar.gz"
echo ${complicated_filename%%.*}
echo ${my_filename/.*/}
echo 'interesting-text-file.txt' | sed 's/.txt*//'
echo 'interesting-text-file.txt' | cut -f1 -d"."
echo ${complicated_filename} | cut -f1 -d"."