Skip to content

Magenaut

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

quoting

Quoting / escaping / expansion issue in “command in a variable”

August 7, 2022 by Magenaut

I want to run a command such as this in a bash script:

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

Why does bash variable expansion retain quotes?

August 6, 2022 by Magenaut

> echo "hi" hi > VAR='echo "hi"' > $VAR "hi" Why is the output of the above commands different? A similar thing occurs with single quotes: > VAR="echo 'hi'" > $VAR > 'hi' Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the … Read more

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

How can I delete a file named “>”?

August 6, 2022 by Magenaut

I was running a Python script that malfunctioned and used sudo to create a file named >.

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

Delete all files starting with a question mark

August 6, 2022 by Magenaut

I have a folder in which I have around 4k files. Some of these files start with a a ? or ! character. I need to delete them but can’t find an expression that would do so:

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

How does ‘find -exec’ pass file names with spaces?

August 6, 2022 by Magenaut

If I have a directory containing some files whose names have spaces, e.g.

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

Why doesn’t GNU parallel work with “bash -c”?

August 6, 2022 by Magenaut

% echo -e '1n2' | parallel "bash -c 'echo :$1' '' {}" :1 :2 % echo -e '1n2' | parallel bash -c 'echo :$1' '' {} % I’d expect the second line to act the same. Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help … Read more

Categories Q&A, Unix & Linux Tags bash, gnu-parallel, quoting, shell Leave a comment
Newer posts
← Previous Page1 … Page3 Page4
  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