Reputation
20,452
Top tag
Next privilege 25,000 Rep.
Access to site analytics
Badges
1 46 64
Newest
 Enlightened
Impact
~1.7m people reached

2d
comment How to get numbers of specified (range of) length from string with grep?
You are trying to use extended regex. You need the -E flag for grep.
2d
comment How to compare two tables and find the difference between in Linux using shell script?
Sounds like something that should be done in SQL, not shell scripting.
May
1
comment systemd service failing
Does the service log somewhere other than stdout?
Apr
29
awarded  Enlightened
Apr
29
awarded  Nice Answer
Apr
26
comment can anyone assist me in what this code does?
My version of more displays "******** /bin/ls: Not a text file ********" instead of junk.
Apr
26
comment can anyone assist me in what this code does?
It does nothing due to a syntax error. What it's trying to do can be simplified to just more *
Apr
23
comment Create HISTFILE in subshell
Yes, it seems that -c is the reason for that. Try: bash -i <<< "somecommand"
Apr
23
comment Create HISTFILE in subshell
The subshell is not an interactive shell.
Apr
23
comment Variables of integer type in Bash?
The former is locally scoped, the later is not.
Apr
23
comment Why is netstat deprecated?
I agree that ss feels a bit clunky compared to netstat, but ip has always seemed way better than ifconfig (just an opinion).
Apr
23
comment Removing entire line with sed not working?
This is your second post today regarding parsing xml with regex. See the following: stackoverflow.com/a/1732454/1032785
Apr
23
comment How to apply an awk script to multiple files in one folder using a loop
Are you using bash? That attempted loop syntax doesn't look very similar to bash, maybe csh?
Apr
23
comment Accessing array index variable from bash shell script loop?
Also note that you basically never want "${array[*]}" instead of "${array[@]}". Using * instead of @ more or less treats it as a string instead of an array.
Apr
23
answered Accessing array index variable from bash shell script loop?
Apr
18
awarded  Enlightened
Apr
18
awarded  Nice Answer
Apr
17
awarded  Nice Answer
Apr
17
comment Docker container with Samba exits without any message
What happens if you run a shell in the container and then execute that command manually?
Apr
17
comment Disable user shell for security reasons
@javier in that case you can use a restricted shell such as rssh.