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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
53 views

unterminated s command with seed on special characters with sed [duplicate]

i have special characters in the content of $VALUE which I would to add in file ($FILE). When I run this cammand : sed -i "s|T_VALUE|$VALUE|" "$FILE" i have an error unterminated ...
  • 99
0 votes
0 answers
23 views

Understanding bind mapping to swtich between emacs and vi modes

tl;dr If I execute the following in bash, Ctrl+z seems to have no effect bind -m vi-command '"\C-z": emacs-editing-mode' bind -m vi-insert '"\C-z": emacs-editing-mode' bind -m ...
  • 1,175
3 votes
2 answers
217 views

Bash Parameter Expansion - Get Variables with a Prefix while Escaping Hyphen

EDIT: I realized I was mistaken about a central assumption in this post: The ${!prefix@} syntax isn't able to get function names, but only variables. Therefore, there is no way to get ${!prefix@} to ...
  • 133
1 vote
2 answers
58 views

Unable to enter first login password that has any accented vowel

After upgrading ubuntu to 22.04 I wasn't able to login because my password has any accented vowel, as for example "ú". This happens ONLY the FIRST login. In my case the new ubuntu 22.04 does ...
  • 31
0 votes
3 answers
161 views

How to rename files recursively with a specific extension to remove unwanted characters in audio files

I want to rename files with a .m4a extension recursively in child directories to remove unwanted characters in audio files such as [ ' ]. That's because that this below happened to this file 04 Tears ...
0 votes
1 answer
226 views

Bash, grep - why is a command with a caret not working in a subshell?

I'm trying to determine if a git add action has created any expected modifications, and the following works in an interactive shell $ BASE_DIR=foo/bar/baz $ git add "${BASE_DIR}" $ git ...
  • 229
8 votes
1 answer
2k views

What are curly quotes and can I use them in my code?

Somehow curly quotes got into my code and I'm getting unexpected behavior #!/bin/sh if [ foo = ‘foo’ ]; then echo yes else echo no fi I would expect this to echo yes but instead it echoes no.
  • 35.1k
2 votes
2 answers
1k views

Need assistance with writing a bash script that uses regex to validate that password input meets length and special character requirements

I have been working on this for a while, visiting dozens of sites and trying all kinds of combinations; however, I cannot get the script to run as intended. Even when they work in https://regex101....
-2 votes
1 answer
122 views

How to handle "&" in Echo command [duplicate]

I required to Echo following information but I am getting error. echo Mumbai & Banglore But I am getting error as follows, 'Banglore' is not recognized as an internal or external command, ...
  • 1
1 vote
1 answer
425 views

Delete file whose filename contains a dollar sign

I have a file named ''$'\t' in my directory. How do I delete it? (I suspect the outermost pair of quotes is not part of the filename.)
  • 113
-6 votes
1 answer
66 views

Is there an example for a shell or computing accessibility culture aspiring a shell with more special characters and if so what is it? [closed]

I was always a bit frustrated from the lack of characters in modern computer systems such as, from what I know: A global template literal character for which the closest character today is a backtick ...
  • 113
0 votes
1 answer
42 views

Convenient way to have selected files shown in the beginning of file lists in file managers?

In Windows if one wishes certain file (or directory) to be shown in the beginning of file lists in a file manager (no matter which one, really), one may choose to put the underscore character in the ...
  • 81
13 votes
1 answer
1k views

"Ctrl + ." displays "e" character and captures the keyboard shortcut

For a few days now I can no longer use Ctrl+. anywhere (which makes working with Vs Code pretty frustrating). Instead of executing the shortcut an e appears. I can then write normally, and when ...
0 votes
2 answers
319 views

How can I grep for '^M$'? [duplicate]

I'm trying to extract lines from a subtitle (.srt) file. When I grep for a specific line number, I get the answer I expect: % grep -e "^817" ponyo.srt ...
0 votes
2 answers
110 views

I want to replace \ with \\\\ using sed

I have tried using sed to read \. Unable to read \ and replace it with \\\\. I want to replace single \ with 4 \\\\.
7 votes
2 answers
2k views

How to copy a file by using its inode number?

This problem is related to Samba and inodes are not necessary. I have a problem handling a certain file that has some special characters in it. If I search it by its inode it will list the file: $ ...
  • 407
0 votes
0 answers
17 views

rsync won't sync with at symbol (@) in path [duplicate]

I'm trying to rsync a folder on a remote server (Synology) to my server (TrueNAS), but the path has the at/email symbol (@) in it and I think rsync is throwing an error (below) because it's confused ...
0 votes
1 answer
683 views

Some Emojis not appearing on browser and some applications in Endeavour OS

I just shifted to arch from ubuntu budgie. and I am getting some issues loading/displaying emojis on some websites and applications. I have provided some screenshots of the issue. The Os I am using is ...
2 votes
1 answer
965 views

Deal with nbsp character in shell

When I use an "alt-gr" character followed by a 'space' character often I miss my input in typing in place of it the "non breaking space character" aka nbsp. Example with piped ...
0 votes
2 answers
791 views

sshpass splitting the password as two strings seperated by the character "&" in password

I have a password variable PASS whose value is abc123&zxcv456 When I try to do SSH in jenkins using the password variable like below sshpass -p ${PASS} ssh -o StrictHostKeyChecking=no admin@100....
  • 11
2 votes
1 answer
345 views

Special characters in root password in emergency mode

My debian is not starting well and go to emergency mode (with no possibility to avoid it :-(). In order to login, I need to be able to type my root password which contains special characters like é. ...
  • 835
9 votes
3 answers
909 views

Are ∈ and ℝ symbols available in eqn/roff?

A set of commonly used symbols to represent that a variable belongs to a given real coordinate space are ∈ ("ELEMENT OF", Unicode U+2208) and ℝ ("DOUBLE-STRUCK CAPITAL R", Unicode ...
  • 579
1 vote
1 answer
1k views

How to replace Unicode code numbers by UTF-8 characters in a number of files?

I have 500 files that contain escaped Unicode characters like so: Albert Vel\u00e1zquez V\u00e9ronique Ekin etc. The data was queried from a server by a script through XMLHttpRequests and I assume ...
  • 8,218
4 votes
2 answers
613 views

Difference between wc -c and ${#}?

I've created script, where I encoded string 28 times with base64. Then I wanted to echo count of chars in outputted string. First I used ${#var} which gave me 34070. Then I tried on the same string ...
0 votes
1 answer
109 views

How to make bash ignore andsign in xargs command?

My code goes something like this: echo "$result" | xargs -P50 -I@ bash -c '{ printf "@ $(curl --write-out "%{http_code}" -L -s --output /dev/null @)\n"; }' Where result ...
  • 377
5 votes
3 answers
4k views

What is the difference between a byte and a character (at least *nixwise)?

I understand that any character is comprised of one or more byte/s. If I am not mistaken, at least in *nix operating systems, a character will generally (or totally?) be comprised of only one byte. ...
-1 votes
1 answer
455 views

Shortest one-line shell script to print all special characters [duplicate]

I'm looking for a shortest one line shell script to print all special characters in ASCII table (from chr(32) --> chr(127)) Thanks for all your help & support!
  • 144
0 votes
1 answer
38 views

How can I replace a string with a string that contains a special character, using sed [duplicate]

For example replace keystore=". with keystore="./
1 vote
0 answers
694 views

Ubuntu: Display SOH character in Terminal

When using the terminal with Ubuntu 20.04.1 LTS, the SOH character is not being displayed when outputted from a program. The same program also successfully prints the output to a file which correctly ...
  • 119
0 votes
1 answer
326 views

Matching a string that contains regex tags

I have a bunch of video files with associated subtitles. I am trying to program a bash script that merges the subtitles and videos into matroshka containers. The input video files are named "...
1 vote
1 answer
203 views

What would cause deleting a character in busybox vi to have garbled text appear on the screen?

I can't seem to figure out why this happens or even what to search for. Two videos demonstrating the issue: https://www.loom.com/share/7497428d757e45399faa5ebcf391e1be https://www.loom.com/share/...
  • 121
1 vote
1 answer
2k views

Special Characters in Username for SSH not passing to remote device

I've been trying to beat my head around this. Bing, Google, and Yahoo don't seem to get my question, hence here I am. I have a user D5P$3r that I need to pass from my Linux Server to my router. I've ...
2 votes
1 answer
203 views

What can the C1 control codes be used for?

Today I discovered that there is a significantly large group of additional control codes, called C1 control codes, spanning from U+0080—U+009F (32 characters). I think that it's an interesting fact ...
  • 241
1 vote
1 answer
229 views

Handle umlauts in file names when using xarg

I've seen some similar questions here where people have problems with xargs handling spaces in file names. Surprisingly, I don't run into this issue, but a similar one. I'm copying a fixed amount of ...
  • 11
0 votes
1 answer
59 views

Why does GTK change the c-cedil? Is it GTK?

I have a very old silly problem when working with browsers in KDE in Fedora, and I was never able to fix it, no mater how hard I googled for the solution. I use two keyboard Layouts, one is us ...
1 vote
2 answers
4k views

Best practice to read password, containing special characters like $!@`', into Bash script

I am trying to read a password from stdin into a variable in a Bash script. This variable should then be expanded into an ssh-command and transmitted to the server. There, the password should arrive ...
  • 183
0 votes
1 answer
138 views

How to fix malformatted special characters in Pop OS, that occoured after an system crash?

This afternoon my computer (operating Pop OS!) was not reacting to keyboard or mouse interactions, I tried everything but couldn't find out why this happened. So I did a cold start, I assume the ...
  • 1,000
0 votes
1 answer
634 views

How to strip off certain hexadecimal characters in Bash?

I have gathered a wordlist for person to follow on twitter. However, there is a problem. When i cat and do xxd a extra hidden characters are found. i.e 1b5b 6d1b 5b4b . I need to strip those character....
4 votes
1 answer
1k views

German Umlauts on US keybaord

I am using an US keyboard layout, because it's more convenient for programming, but since I am german I need the german umlauts for texting. (Umlauts like ÄäÖöÜü) I am running Manjaro with KDE. I ...
2 votes
2 answers
62 views

Automatically render special characters used for displaying progress bars etc. in program output saved in a file

I have run a program in the shell and redirected the output to a file. The program involved is displaying lots of moving progress bars and the like. So the output file contains special characters ...
  • 143
-2 votes
1 answer
3k views

How can I use passwords with bash special characters on the command line? [duplicate]

I have a command line that takes a password . The password starts with characters '!1'. E.g. '!1x9y377s' . If I execute a command with that password, then history expansion occurs and the first two ...
0 votes
1 answer
580 views

Diacritic characters (ō, ó, á, ä, ö, ü etc) support in Debian shell

I run a server on Debian as a file storage. Some files and directories contain those symbols in their name, and all those symbols get replaced with ? (or ? is what shell output shows me) when they get ...
  • 1
0 votes
1 answer
110 views

Using tr to place the words of a file in order so that each line contains 1 word in order of appearence and without spaces

I want to remove the special characters of a text files for that I found the following command tr -d '[:punct:]' < file.txt But, I also want to change the format of the file so that each line ...
1 vote
2 answers
703 views

sed command is not working to remove the special character ( Copyright and trademark symbols )

I am trying to use sed command to delete the copyright characters.But it is not working. Below is the command which am using. sed 's/; © E/; (c)/g' input.txt > output.txt but when am using vi ...
  • 21
8 votes
2 answers
3k views

Why doesn't the command tr "\'\\\"\?\!" "01234" work?

In terminal, if I define some variable char as follows: export char=\'\\\"\?\! In effect, char is the string '\"?! And then I use the tr command to replace '\"?! with numbers 01234 tr "\'\\\"\?\!"...
  • 81
0 votes
1 answer
280 views

How to find special characters (say like the musical symbol which denotes when a song is being played

Sometimes I edit subtitle files (.srt) and at times I get a place where the music symbol should be used. I am nonplussed as to how to get the music symbol to come up in the editor. I use editors such ...
  • 11.7k
2 votes
2 answers
827 views

sort special characters like + and -

I have a file consisting of several lines and columns. The columns are delimited by \t. Now I would like to sort the file based on the second column, which can be done with, e.g. sort -f -t$'\t' -k2 ...
  • 67
2 votes
1 answer
52 views

Híndi text and font display problems

I'm starting a híndi course and all non-english (e.g. Namastē in Híndi Alphabet) characters don't appear correctly on my OS and programs. Is there any way to solve it? even just in my browsers? (...
4 votes
2 answers
4k views

delete specific character "[" from a file

I want to remove a character "[" from a file. I tried sed -i 's/[//g' 'filename' however I get the following error sed: -e expression #1, char 6: unterminated `s' command
3 votes
0 answers
170 views

How to avoid bash from accepting non-printable characters at the prompt?

I recently ran a command at my shell: # yum whatprovides xdotool Error: No Matches found However, my package manager actually has this package: # yum whatprovides xdotool xdotool-1:3.20150503.1-7....
  • 2,345

1
2 3 4 5