Questions tagged [special-characters]
If it has a meaning beyond its literal meaning, a meta-meaning, then we refer to it as a special character.
255 questions
4 votes
1 answer
753 views
How can I remove special non-characters that are not part of national alphabets like faces from filenames, keeping any national alphabets intact?
How can I remove special non-characters e.g. faces, avatars, emojis, symbols that are not part of national alphabets from filenames while keeping any national alphabets intact? e.g. ...
0 votes
1 answer
195 views
username with "/" gets truncated
I am trying to SSH to Linux box with username containing /. For example: tes/t But the characters after / get truncated and user is seen as tes during SSH. SSH then fails with this user since its ...
0 votes
2 answers
116 views
What does '-' as a file parameter mean? [duplicate]
I'm having trouble finding a name for the - character in the context of a piped bash command. What is the - character called? Can I replace it with something more readable for a script? Example ...
-1 votes
2 answers
101 views
How to replace (***) with \(***\) with sed
so I wanted to write a script to replace special characters with their escaped equivalent so I can pass it to mkdir command. As a friend used a similar line I can use this to replace parantheses with ...
2 votes
1 answer
2k views
Why is a filename surrounded by double quotes with single quotes around a character when displayed in terminal?
Why would a file show up surrounded by double quotes with a character surrounded by single quotes within it? "insight_automation.log'.'2024-03-13" I am using Ubuntu Server 22.04.3 LTS. A ...
3 votes
3 answers
1k views
Use of special characters in filename
I need to create a file named *'test'* If I write touch \'test\' ls shows 'test' But if I write touch \*\'test\'\* ls now shows *'\''test'\''* What's the trick ? Can someone explain me what I did ...
2 votes
1 answer
452 views
Escape special characters from variables [duplicate]
I have #!/usr/bin/bash search="ldo_vrf18 {" replace="$search"' compatible = "regulator-fixed"; regulator-name = "vrf18&...
0 votes
1 answer
625 views
Using the SED command with special characters
Is there a way to use the sed command this to search for a special character at the beginning of line, replace it with another special character, and append a special character to that line only? I ...