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

Bash, Perl, Linux. Programming & teaching.


Mar
14
answered How do I make the shell to recognize the file names returned by a `ls -A` command, and these names contain spaces?
Feb
21
awarded  Constituent
Feb
10
awarded  Caucus
Jan
4
comment Shell script while statement
Also, you should use "$FILE" in double quotes in case the file name contained special characters like spaces, or if the user just pressed Enter without giving any file name.
Dec
10
comment Concatenation in Shell Scripting Bash
@Mina: ++$i increments the variable $i and returns its new value. Insert it as the second parameter to each print join.
Dec
10
answered Concatenation in Shell Scripting Bash
Nov
11
answered Why does this bash script not work?
Nov
10
revised bash script to auto mkdir on usb
code formatting
Nov
10
answered bash script to auto mkdir on usb
Nov
10
suggested suggested edit on bash script to auto mkdir on usb
Nov
6
comment Emacs editor copy and deletion
emacswiki.org/emacs/CopyAndPaste
Oct
9
answered Bash, what is command, utility, builtin, how do I distinguish
Sep
26
comment Running a .sh file without root
chmod is usually not restricted to privileged users. If your university does not allow you to execute arbitrary files, you probably should not run the game.
Aug
24
awarded  Enlightened
Aug
24
awarded  Nice Answer
Aug
21
comment Which one is better: using ; or && to execute multiple commands in one line?
Also note that running your script with set -e will stop the script on failure as if all the commands were connected with &&.
Aug
21
comment Which one is better: using ; or && to execute multiple commands in one line?
@Private: You should use ; if the second command does not need the previous one to succeed.
Aug
20
answered Which one is better: using ; or && to execute multiple commands in one line?
Aug
13
comment Setting default path when opening a terminal session
What terminal do you use?
Aug
7
awarded  Good Answer