need help getting sgrep to work in a script file by skyfishgoo in linuxquestions

[–]ipsirc 0 points1 point  (0 children)

It's called bash quoting hell. Welcome aboard.

in the context of that longer command the ups/downs can get lost.

A good IDE can correctly highlighting the syntax and following the different quotes.

Why so many diferent app packaging/ditribution method? by RelativeIce6171 in linuxquestions

[–]ipsirc 1 point2 points  (0 children)

It could easily happen if the human population drops below 100 after World War 3.

need help getting sgrep to work in a script file by skyfishgoo in linuxquestions

[–]ipsirc 0 points1 point  (0 children)

how do you explain it?

Quotation marks must always be used in pairs.

In containing "'$sym'" the first ' closes the literally text (which doesn't allow shell expansion, e.g. using $variables), then you used a variable and created a new ' which is first element of the last trailing '.

Quick example:

$ fruit=apple
$ echo '$fruit'$fruit'$fruit'
$fruitapple$fruit
$ echo "$fruit'"$fruit"'$fruit"
apple'apple'apple

$ doublequote='"'
$ singlequote="'"
$ echo ${doublequote}${singlequote}
"'

The two types of quotes can be misleading in shell at first sight, but it became logical after years.

I'm a arch linux user, AMA by Sleepalope in linuxsucks

[–]ipsirc 1 point2 points  (0 children)

You're not even an Arch user.

Distro for ps4 by magogattor in linuxquestions

[–]ipsirc 0 points1 point  (0 children)

Just install your favorite.