Skip to content

Magenaut

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

quoting

How to escape a single quote?

August 8, 2022 by Magenaut

end the single-quoted string, add escaped (either by backslash or double quotes) single quote, and immediately start the following part of your string:

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

Deleting files with spaces in their names

August 8, 2022 by Magenaut

I am trying to delete all the files with a space in their names. I am using following command. But it is giving me an error

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

Remote for-loop over SSH

August 8, 2022 by Magenaut

I have the following in a script

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

Test -n gives unexpected result

August 8, 2022 by Magenaut

I understand test -n <expression> to return false if the expression evaluates to a string length of greater than 0. Why then does the following happen?

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

How to use variables inside single quotes

August 8, 2022 by Magenaut

I have an application which takes as an input attributes in double quotes embedded in single quotes. Take for example this right command:

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

Variable in sed

August 8, 2022 by Magenaut

I have a file that contains filenames with absolute path.

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

How do I write a command for the Exec key in a .desktop file containing a reserved character correctly?

August 8, 2022 by Magenaut

I’m trying to make a .desktop file for Minecraft. Nothing appears to happen upon executing the file. I’ve tried assigning the Exec key as follows:

Categories Q&A, Unix & Linux Tags assignment, desktop, freedesktop, quoting Leave a comment

bashrc lazy substitution

August 8, 2022 by Magenaut

How does one get ~/.bashrc aliases to evaluate $() substitutions at run time, instead of at the time that ~/.bashrc is executed (when opening a terminal)?

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

Bash: History expansion inside single quotes after a double quote inside the same line

August 8, 2022 by Magenaut

I took a closer look on this phenomenon after I stumbled over it in two other questions today. I’ve tried all of this with the default set -H (history expansion on).

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

How can I echo dollar signs?

August 7, 2022 by Magenaut

For example, $PATH and $HOME

Categories Q&A, Unix & Linux Tags quoting, 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