Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

quoting

How are parentheses interpreted at the command line?

August 10, 2022 by Magenaut

While reading up on how to set up grub, I came across an article claiming that I need to use one of the following two syntaxes,

Categories Q&A, Unix & Linux Tags bash, quoting, shell Leave a comment

What characters are required to be escaped in command line arguments?

August 10, 2022 by Magenaut

In Bash, when specifying command line arguments to a command, what characters are required to be escaped?

Categories Q&A, Unix & Linux Tags bash, quoting, shell Leave a comment

Do I need to quote command substitutions when assigning their output to a variable?

August 10, 2022 by Magenaut

DIRNAME=”$(dirname $FILE)” will not do what you want if $FILE contains whitespace or globbing characters [?*.

Categories Q&A, Unix & Linux Tags command-substitution, quoting, shell Leave a comment

Using a reference to a bash string variable in sed

August 10, 2022 by Magenaut

I’m a relative Linux novice. Suppose that I have a text file a.txt that contains the following text:

Categories Q&A, Unix & Linux Tags quoting, sed, shell-script Leave a comment

Man page quotation characters

August 9, 2022 by Magenaut

I’ve just been looking through a few man pages for a few different commands including grep and ifconfig. I’ve noticed over a few pages, the content uses a strange syntax to notate what i think are quotations (back-tick followed by a single or double quote): `text' Why can’t they use ‘ or ” to open … Read more

Categories Q&A, Unix & Linux Tags locale, man, osx, quoting, roff Leave a comment

Trouble in script with spaces in filename

August 9, 2022 by Magenaut

I’ve got a script that scp’s a file from remote host back to local. Sometimes the file names contain spaces. scp does not like spaces in its file names. For some reason my attempts at handling the spaces have not resulted in the correct scp path.

Categories Q&A, Unix & Linux Tags bash, escape-characters, quoting, scripting, shell Leave a comment

How do I join an array of strings where each string has spaces?

August 9, 2022 by Magenaut

My bash script:

Categories Q&A, Unix & Linux Tags array, bash, quoting, shell-script Leave a comment

What characters need to be escaped in files without quotes?

August 9, 2022 by Magenaut

I have browser-based shell/terminal that executes bash commands and I’m escaping spaces but it turns out that parenthesis also need to be escaped. What other characters need to be escaped for file names that are not in quotes?

Categories Q&A, Unix & Linux Tags bash, filenames, quoting, shell Leave a comment

How to add newlines into variables in bash script

August 9, 2022 by Magenaut

When I do

Categories Q&A, Unix & Linux Tags bash, quoting Leave a comment

grep and escaping a dollar sign

August 9, 2022 by Magenaut

I want to know which files have the string $Id$.

Categories Q&A, Unix & Linux Tags grep, quoting, regular-expression, shell Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 Page4 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress