Skip to content

Commit 65ddfc0

Browse files
committed
Updated data, information, formatting.
1 parent 5c8f8b1 commit 65ddfc0

14 files changed

+575
-436
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ presentation/*.ind
2626
presentation/*.ist
2727
# minitoc
2828
presentation/*.maf
29-
presentation/*.mtc
30-
presentation/*.mtc0
29+
presentation/*.mtc*
3130
# minted
3231
presentation/*minted*
3332
presentation/*.pyg

presentation/linux_bash_metacentrum_course.tex

Lines changed: 412 additions & 359 deletions
Large diffs are not rendered by default.

presentation/sandwich.png

11.6 KB
Loading

scripts_data/arabidopsis.vcf.gz

450 KB
Binary file not shown.

scripts_data/diff_test_file_1.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ And let there always be being,
99
The two are the same,
1010
But after they are produced,
1111
they have different names.
12-

scripts_data/diff_test_file_2.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@ But after they are produced,
1111
They both may be called deep and profound.
1212
Deeper and more profound,
1313
The door of all subtleties!
14-

scripts_data/interactive1.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,21 @@
22

33
# Arguments are read from command line as parameters of the script
44
# Order has to be kept (well, not in this case, but generally yes)
5+
# Usage is e.g. ./interactive1.sh 8 5
56

67
echo "Sum of two numbers $1 and $2 is `expr $1 + $2`."
78

89
# "$#" is available every time and contains number of parameters (variables) given to the script
910

10-
echo "Number of parameters is $#."
11+
echo "Number of parameters is: $#"
1112

1213
# "$*" is available every time and contains all supplied parameters
1314

14-
echo "Those parameters were supplied: $*."
15+
echo "Those parameters were supplied: $*"
1516

1617
# "$0" is available every time and contains script path
1718

18-
echo "Path to the scrip is: \"$0\"."
19+
echo "Path to the scrip is: \"$0\""
1920

2021
echo
2122

scripts_data/interactive2.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
# Arguments are read from user input (script asks for them)
44

5-
echo "Please, input first value to sum and press Enter"
5+
echo "Please, input first value to sum and press 'Enter'"
66

77
read V1
88

9-
echo "Please, input second value to sum and press Enter"
9+
echo "Please, input second value to sum and press 'Enter'"
1010

1111
read V2
1212

scripts_data/interactive2functions.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
# Regular expression to check if the provided input is a number
66
NUMBER='^[0-9]+$'
7+
# From the beginning of the line (^) there is number ([0-9]) at least one time (+) up to the end of the line ($)
78

89
# Function to read and check user input
910
function checkinput {
@@ -12,22 +13,22 @@ function checkinput {
1213
read INPUT # Here the input from keyboard is received
1314
if [[ $INPUT =~ $NUMBER ]]; then # Test if $INPUT is a number
1415
echo "OK, input value is $INPUT."
15-
break # We have correct value, we can break the cyclus and continue
16-
else # What to do if the user did not provided correct value
16+
break # We have correct value, we can break the cycle and continue
17+
else # What to do if the user did not provide correct value
1718
echo "Error! You provided wrong value!" # Tell the user
1819
echo "Try again (the number):" # Ask user for new input value
1920
fi # End of the conditional evaluation
2021
done # End of the while cycles
2122
} # Read variable is in $INPUT
2223

23-
echo "Please, input first value to sum and press Enter"
24+
echo "Please, input first value to sum and press 'Enter'"
2425
# Use the function to read the input
2526
checkinput
2627
V1=$INPUT
2728

2829
# Start of while cycles - run until correct input is provided
2930

30-
echo "Please, input second value to sum and press Enter"
31+
echo "Please, input second value to sum and press 'Enter'"
3132
# Use the function to read the input
3233
checkinput
3334
V2=$INPUT

scripts_data/interactive2whiles.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
# Regular expression to check if the provided input is a number
66
NUMBER='^[0-9]+$'
7+
# From the beginning of the line (^) there is number ([0-9]) at least one time (+) up to the end of the line ($)
78

89
echo "Please, input first value to sum and press Enter"
910

@@ -13,8 +14,8 @@ while :
1314
read V1 # Here the input from keyboard is received
1415
if [[ $V1 =~ $NUMBER ]]; then # Test if V1 is a number
1516
echo "OK, input value is $V1."
16-
break # We have correct value, we can break the cyclus and continue
17-
else # What to do if the user did not provided correct value
17+
break # We have correct value, we can break the cycle and continue
18+
else # What to do if the user did not provide correct value
1819
echo "Error! You provided wrong value!" # Tell the user
1920
echo "Try again (the number):" # Ask user for new input value
2021
fi # End of the conditional evaluation
@@ -28,8 +29,8 @@ while :
2829
read V2 # Here the input from keyboard is received
2930
if [[ $V2 =~ $NUMBER ]]; then # Test if V2 is a number
3031
echo "OK, input value is $V2."
31-
break # We have correct value, we can break the cyclus and continue
32-
else # What to do if the user did not provided correct value
32+
break # We have correct value, we can break the cycle and continue
33+
else # What to do if the user did not provide correct value
3334
echo "Error! You provided wrong value!" # Tell the user
3435
echo "Try again (the number):" # Ask user for new input value
3536
fi # End of the conditional evaluation

0 commit comments

Comments
 (0)