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
-2 votes
1 answer
33 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, ...
user avatar
  • 1
1 vote
1 answer
42 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.)
user avatar
-6 votes
1 answer
63 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 ...
user avatar
  • 115
0 votes
1 answer
23 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 ...
user avatar
  • 61
0 votes
1 answer
89 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 ...
user avatar
0 votes
2 answers
79 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 ...
user avatar
0 votes
2 answers
69 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 \\\\.
user avatar
6 votes
2 answers
955 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: $ ...
user avatar
  • 295
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 ...
user avatar
0 votes
1 answer
167 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 ...
user avatar
2 votes
1 answer
284 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 ...
user avatar
0 votes
2 answers
247 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....
user avatar
  • 11
2 votes
1 answer
193 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 é. ...
user avatar
  • 795
9 votes
3 answers
688 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 ...
user avatar
  • 569
1 vote
1 answer
287 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 ...
user avatar
  • 7,477
4 votes
2 answers
298 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 ...
user avatar
0 votes
1 answer
66 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 ...
user avatar
  • 147
5 votes
3 answers
2k 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. ...
user avatar
-1 votes
1 answer
116 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!
user avatar
  • 144
0 votes
1 answer
34 views

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

For example replace keystore=". with keystore="./
user avatar
1 vote
0 answers
262 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 ...
user avatar
  • 119
0 votes
1 answer
213 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 "...
user avatar
1 vote
1 answer
78 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/...
user avatar
  • 121
1 vote
1 answer
819 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 ...
user avatar
2 votes
1 answer
119 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 ...
user avatar
  • 211
1 vote
1 answer
134 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 ...
user avatar
  • 11
0 votes
1 answer
45 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 ...
user avatar
1 vote
2 answers
2k 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 ...
user avatar
  • 143
0 votes
1 answer
84 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 ...
user avatar
  • 988
0 votes
1 answer
417 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....
user avatar
3 votes
1 answer
438 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 ...
user avatar
2 votes
2 answers
42 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 ...
user avatar
  • 143
-2 votes
1 answer
1k 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 ...
user avatar
0 votes
2 answers
359 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 ...
user avatar
  • 1
0 votes
1 answer
24 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 ...
user avatar
1 vote
2 answers
482 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 ...
user avatar
  • 11
8 votes
2 answers
2k 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 "\'\\\"\?\!"...
user avatar
  • 81
0 votes
1 answer
184 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 ...
user avatar
  • 10.7k
2 votes
2 answers
643 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 ...
user avatar
  • 57
2 votes
1 answer
38 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? (...
user avatar
4 votes
2 answers
2k 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
user avatar
3 votes
0 answers
103 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....
user avatar
  • 2,145
1 vote
0 answers
27 views

How to avoid and recover shell command history from an unwanted incursion of non-printable characters?

$ history ... 242 yum whatprovides */bin/xdotool 243 yum provides */bin/xdotool 244 yum provides xdotool 245 yum whatprovides xdotool 246 yum whatprovides xdotool At the prompt: up [...
user avatar
  • 2,145
3 votes
2 answers
847 views

less: search, but ignoring special characters

I'm trying to view large log files. I have a complex shell script that will take a log file and run it through a tangle of text-mangling commands to insert formatting and colouring, and pipe the ...
user avatar
0 votes
2 answers
97 views

is it possible to remove a `:~` directory

I can see a directory got created :~ on my server How to delete it as I can't even do cd :~ and I tried deleting it sudo rm -R :~ but I can see a lot of things are inside that folder? What to do to ...
user avatar
  • 103
1 vote
1 answer
181 views

Weird spam of characters 61R;61R;

Not really sure what happened cause I just left it while it was already done downloading and was in the middle of installing phase. So I would like to ask if anyone else has experienced this for me ...
user avatar
  • 21
1 vote
1 answer
318 views

screen logging - How to ommit interactive shell control characters and prompt?

One of my first questions. Please comment if further explanation or information is required or if the question is not like it's supposed to be here I'm using screen to automatically start servers (...
user avatar
1 vote
1 answer
146 views

Can I make characters uncopyable in a terminal emulator?

I run fish (in gnome-terminal) with a custom style that gives me information about the current Git repository: That's all very fine, but when I want to copy-paste some command with its output like so:...
user avatar
  • 1,905
0 votes
1 answer
1k views

echo strings but extra question mark was added to the output

Strange "?" got added to the filename output. SCRIPTS="/path_to_script/" SUMMER=`cat /path_to_file/summer.txt` for i in ${SUMMER}; do cat <<- EOF > $SCRIPTS/20190430_$(echo ${i})_step4.r #...
user avatar
  • 61
5 votes
0 answers
985 views

Include special characters when sorting files

I'm trying to make Linux include special characters when sorting filenames. The sort order I'm trying to achieve is: first all special characters, then numbers, then letters (case insensitive). The ...
user avatar
  • 51

1
2 3 4 5