Reputation
13,612
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
20 39
Newest
 Enlightened
Impact
~578k people reached

Mar
14
comment How to check if a bash shell attribute has been set up?
@Tim: My version says much more.
Mar
14
comment How to check if a bash shell attribute has been set up?
@Tim: updated, simplified.
Mar
14
revised How to check if a bash shell attribute has been set up?
added 2 characters in body
Mar
14
answered How to check if a bash shell attribute has been set up?
Mar
14
comment Remove files with match only from some subdirectories
What do you mean by "I cannot do"? --exclude-dir={dir1,dir2} works fine for me in bash, just remove the space after the comma.
Mar
14
comment How to do following formatting using sed or awk or bash script on linux
What have you tried? How did it fail?
Mar
8
comment trap errors in bash scripts
@Barmar: Because [[ -d mydir2 ]] was the last executed command.
Mar
8
answered trap errors in bash scripts
Mar
7
comment Meaning of this perl command
-e just indicates the code itself follows. Instead of a "thank you", you can upvote/accept the answer.
Mar
7
comment Is Perl obsolete?
Also, see Moose for a better OOP in Perl.
Mar
7
answered Meaning of this perl command
Mar
6
comment How to use two operands on the left side of a comparision operator in Bash
@Gilles: Are you sure? Both variables should be greater than or equal to 255, but 256 | 256 is 256, both are greater, but the result isn't <= 255.
Mar
6
awarded  Talkative
Mar
6
comment How to use two operands on the left side of a comparision operator in Bash
@user3146086: You can use bitwise or: (( v1 | v2 >= 255 )). Wait, both? This work for at least one.
Mar
6
comment How to use two operands on the left side of a comparision operator in Bash
Note the word "exactly".
Mar
6
comment How to use two operands on the left side of a comparision operator in Bash
@user3146086: No, but there might be other tricks. What exactly do you want to shorten?
Mar
6
revised How to use two operands on the left side of a comparision operator in Bash
added 73 characters in body
Mar
6
answered How to use two operands on the left side of a comparision operator in Bash
Mar
5
comment copy a directory into multiple directories
@Raja: Without knowing the pattern, it's hard to tell you more. Maybe just dir_c/*?
Mar
5
answered copy a directory into multiple directories