The Quark
  • Member for 6 years, 4 months
  • Last seen this week
Why isn't Linux embraced as the official GNU kernel?
3 votes

Another explanation found on the FAQ of gnu.org: Making the GNU Hurd work well enough to compete with Linux would be a big job, and it's not clearly necessary. The only thing ethically wrong ...

View answer
"bash: syntax error near unexpected token `('" error with process substitution
1 votes

I happened to have the variable POSIXLY_CORRECT set as I had earlier run set -o posix. It was in my list of variables as POSIXLY_CORRECT=y but it did not occur to me at first sight that this could be ...

View answer
Difference between `${parameter#word}` and `${parameter##word}`?
1 votes

I just found this example: $ INT=00011 $ echo "${INT#*0}" 0011 $ echo "${INT##*0}" 11 Here, we first assign the string "00011" to the variable 'INT', then we output the ...

View answer
How can I remove characters before and after a text in a chain of characters with Grep, knowing that text is produced through a variable?
0 votes

You can try this: $ grep 'name=>' log.txt | cut -d'"' -f2 | pipes the output of grep to the input of cut. cut -d'"' -f2 cuts each line of input in fields separated by the character "...

View answer
Does a program run by bash runs in a new job?
0 votes

It depends on what you mean by "program". First, the excerpt from the video is misleading when it says "That session starts with one job, containing the shell process." As ...

View answer
What is the definition of a primary in bash?
0 votes

From man bash: in the Compound Commands section: Expressions are composed of the primaries described below under CONDITIONAL EXPRESSIONS. (1) Conditional operators such as -f must be unquoted to be ...

View answer
the slash (/) after a directory name on shell commands
0 votes

The following are solutions to obtain an overall more consistent behaviors (at least with the mv and cp commands). For the move (mv) command One can get a slightly more consistent behavior by using ...

View answer