Reputation
7,279
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
13 22
Newest
 Nice Answer
Impact
~255k people reached

1d
awarded  Nice Answer
1d
comment bash: -eq vs. == and `bc` output type
If the number is always integer, why don't you just abs=${val#-}?
1d
comment Set the TCP window scaling option to 4 & the TCP window size to 65535
superuser.com/q/902799/105002
1d
comment Is there an alternative to sed that supports unicode?
@chaos: It works under en_US.UTF-8, but doesn't under C.
1d
comment Is there an alternative to sed that supports unicode?
@chaos: I'm not getting the character back. Maybe the behaviour depends on locale?
1d
answered Is there an alternative to sed that supports unicode?
2d
answered How do I extract parts of a string to variables?
Apr
14
comment Using the grep filter
What happens when you enclose the expresion in quotes? grep -i 'h[ae]llo' hello.txt
Apr
14
comment Using fixed strings in regular expressions?
Use Perl instead of bash: quotemeta.
Apr
11
comment Counting program fails in arithmetic test
Works for me. Have you really posted the code you're running? Seems like $counter is empty in your real code (use "$counter").
Apr
8
comment Bash regular expression comparison fail for hex byte \x01
Can you run the code through cat -v? It apparently uses the literal character ^A which disappears on StackOverflow. When I replaced the empty places with ^A, I got 0's everywhere (4.3.33(1)).
Apr
8
comment Remove special characters in a text file
@AomineDaiki: Check the update.
Apr
8
revised Remove special characters in a text file
added 133 characters in body
Apr
8
comment Remove special characters in a text file
@Archemar: fixed, thanks
Apr
8
revised Remove special characters in a text file
deleted 1 character in body
Apr
8
answered Remove special characters in a text file
Apr
7
answered How can I filter ping results by time?
Apr
7
answered Using sed for brackets
Apr
5
answered create an array
Apr
2
answered Variable not expanding inside another variable bash