Reputation
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
6 43 93
Newest
 Custodian
Impact
~864k people reached

6h
comment Why is there a file called [ in my /usr/bin directory?
@Sepahrad Salour - I wouldn't call it another form of if - [ ... ] is a condition tester (generates true/false), whereas if determines which action to perform depending on a true/false value given to it.
6h
comment Why is there a file called [ in my /usr/bin directory?
@TRIG - (a) "It" refers to type [ as being the shell builtin - (b) type -a [ is the file; they are two different executables
6h
comment Adding a character to the end of a word
You really aren't givinig us enough information. This sed command will add a character to each word of a file, but I doubt it is what you want: sed -r 's/\>/x/g' file - If it is not what you want, then you need to give more detail
9h
revised sort | uniq not working on different files
a better regex pattern
11h
revised sort | uniq not working on different files
sed pattern adjustment
11h
revised sort | uniq not working on different files
added a code variant to handle another request by OP
13h
revised sort | uniq not working on different files
added a `sort` only solution
14h
answered sort | uniq not working on different files
Apr
23
comment Find the row and append to the bottom of the file
Note that this will add a blank line to the bottom of the file, if no PATTERN line is found.
Apr
23
answered Find the row and append to the bottom of the file
Apr
23
comment Find the row and append to the bottom of the file
This deletes the 9999999999 line if it is already the last line of the file.
Apr
23
comment how to strip the last slash of the directory path?
Here is a good Q/A on Multiple Consecutive Path Separators
Apr
23
comment Expand variable in brace expansion
The eval way: eval echo \{1..$num\}
Apr
22
comment How to combine two files into one with columns for each file's data?
@JuanDavila: the hypen tells paste to take the "file" from stdin instead of from an actual "file"
Apr
22
comment How to combine two files into one with columns for each file's data?
Nice one. I didn't realize that delimiters can be changed for each successive file
Apr
22
answered How to combine two files into one with columns for each file's data?
Apr
22
comment ls pattern matching
link to Bash Extended Globbing
Apr
8
comment Bash regular expression comparison fail for hex byte \x01
@gogoud Thanks for the comparison of two versions of bash. It is sounding like a bug - time for a bash update, and time to start using $'\x02' instead of my old favourite temp char $'\x01'
Apr
8
revised Bash regular expression comparison fail for hex byte \x01
added 324 characters in body
Apr
8
asked Bash regular expression comparison fail for hex byte \x01