2,059 reputation
1014
bio website e-choroba.blogspot.cz
location Czech Republic
age 38
visits member for 2 years, 1 month
seen 2 days ago

Bash, Perl, Linux. Programming & teaching.


Sep
8
answered Shell Script Problem
Sep
4
answered How to arrange this file properly?
Aug
31
awarded  Guru
Aug
27
comment Sorting two columns with sort and uniq
w works for whole words (so User1 doesn't select User11), and f- tells grep to read the patterns from the file -, which is stdin.
Aug
27
answered Sorting two columns with sort and uniq
Aug
26
comment Simple bash script not working
The . is what makes it work.
Aug
26
answered Simple bash script not working
Aug
12
revised Trouble using cd command with “~” or “$HOME” in bash scripting
quotes not needed
Aug
12
comment Trouble using cd command with “~” or “$HOME” in bash scripting
Just don't try entering ; rm -rf / as the path.
Aug
12
comment Trouble using cd command with “~” or “$HOME” in bash scripting
@Pandya: Fixed a typo.
Aug
12
revised Trouble using cd command with “~” or “$HOME” in bash scripting
edited body
Aug
12
answered Trouble using cd command with “~” or “$HOME” in bash scripting
Aug
2
awarded  Yearling
Aug
1
answered bash variable array names and getting values
Jul
28
comment bash script to back up file
Check Revision control. Check SVN, Git, and so on.
Jul
28
comment bash script to back up file
What about using a version control system instead?
Jun
29
comment Store the return string to a variable from zenity
stackoverflow.com/q/24474286/1030675
Jun
27
answered BASH: write the output of a command to a file
Jun
24
comment Echo script arguments from function
Is the function defiend inside the script? If so, you can store the argumants to a global array.
Jun
14
comment Change directory structure from /YEAR/MONTH/DAY/ to /YEAR-MONTH-DAY
Do you mean you already have a structure and you want to flatten it? Do you want to create one directory per day? Should the path change, but the filenames stay?