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
3 answers
563 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 ...
Shoopi's user avatar
  • 31
0 votes
0 answers
149 views

Strange/Buggy Characters in the Terminal

I use Debian SID and the Terminator is my terminal emulator. After updating the system the last time (yesterday 2023/11/22) and rebooting, some characters in my terminal in certain commands are ...
rhuanpk's user avatar
  • 415
2 votes
1 answer
173 views

Escape special characters from variables [duplicate]

I have #!/usr/bin/bash search="ldo_vrf18 {" replace="$search"' compatible = "regulator-fixed"; regulator-name = "vrf18&...
Bret Joseph's user avatar
1 vote
2 answers
162 views

Recursive pattern search - output formating: for each match file print out the specific file name "\n", line number, sentence matched "\n" in colors

I want a file content search command, under Linux so that: it will search on specified files, e.g: md, txt, htm. recursively from the folder and its subfolders, e.g: . the content search can be ...
user2718593's user avatar
0 votes
1 answer
263 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 ...
DBO PHX's user avatar
0 votes
2 answers
433 views

Entering special characters the same way on Windows and Linux

ctrlshiftu followed by the hex value of a Unicode character enters that character. For example, ctrlshiftu41 enters 'A', whose value is 0x41 in hex and 65 in decimal. There's also the compose key, ...
glibg10b's user avatar
  • 341
1 vote
0 answers
49 views

How do I type in special characters in Cinnamon with various apps?

I'm using Devuan GNU/Linux Daedalus, with Cinnamon 5.6.7 (Xorg server 21.1.7). I want to type in some characters not available on my keyboard, nor (to my knowledge) in my keyboard layout (English - ...
einpoklum's user avatar
  • 9,462
0 votes
2 answers
286 views

Regular Expression Bracket Expression with bash

I want to write a regular expression that only allows a user to enter an input which contains alphanumeric characters, underscores, periods, dashes, and plus signs. In a bash script, I have: VALID=&...
user3731622's user avatar
0 votes
1 answer
71 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 ...
akaliza's user avatar
  • 101
0 votes
1 answer
155 views

Understanding bind mapping to switch 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 ...
Enlico's user avatar
  • 1,525
3 votes
2 answers
507 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 ...
Q Z's user avatar
  • 133
1 vote
3 answers
292 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 ...
Norber's user avatar
  • 41
0 votes
3 answers
251 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 ...
Mohammed Mehdi TBER's user avatar
0 votes
1 answer
413 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 ...
Bruno Kim's user avatar
  • 229
8 votes
1 answer
4k 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.
jesse_b's user avatar
  • 36.8k
2 votes
2 answers
2k 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....
Punko Brewster's user avatar
-2 votes
1 answer
303 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, ...
Vips's user avatar
  • 1
2 votes
1 answer
893 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.)
Norbert S's user avatar
  • 123
-6 votes
1 answer
70 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 ...
Lahor's user avatar
  • 123
0 votes
1 answer
80 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 ...
S. N.'s user avatar
  • 177
39 votes
2 answers
5k 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 ...
Aram Becker's user avatar
0 votes
2 answers
615 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 ...
Johnny Rollerfeet's user avatar
0 votes
2 answers
173 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 \\\\.
Karishma's user avatar
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: $ ...
bomben's user avatar
  • 479
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 ...
crashintoty's user avatar
0 votes
1 answer
1k 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 ...
Abhay_K's user avatar
3 votes
1 answer
2k 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 ...
Le Nain Jaune's user avatar
0 votes
2 answers
1k 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....
light's user avatar
  • 11
2 votes
1 answer
550 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 é. ...
Guuk's user avatar
  • 895
9 votes
3 answers
1k 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 ...
M.E.'s user avatar
  • 589
2 votes
1 answer
2k 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 ...
Ned64's user avatar
  • 8,696
4 votes
2 answers
1k 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 ...
unnamedrider1337's user avatar
0 votes
1 answer
133 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 ...
Raywando's user avatar
  • 487
5 votes
3 answers
7k 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. ...
variableexpander's user avatar
-1 votes
1 answer
772 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!
tuantm's user avatar
  • 144
0 votes
1 answer
44 views

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

For example replace keystore=". with keystore="./
patelpkd's user avatar
1 vote
0 answers
1k 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 ...
p.luck's user avatar
  • 119
0 votes
1 answer
388 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 "...
igidrau's user avatar
1 vote
1 answer
355 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/...
Jeff T's user avatar
  • 121
1 vote
1 answer
3k 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 ...
Kenneth Ulrich's user avatar
2 votes
1 answer
336 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 ...
psprint's user avatar
  • 241
2 votes
1 answer
275 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 ...
exkrloe's user avatar
  • 21
0 votes
1 answer
69 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 ...
Luis A. Florit's user avatar
1 vote
2 answers
5k 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 ...
m4110c's user avatar
  • 193
0 votes
1 answer
183 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 ...
Erdinc Ay's user avatar
  • 1,020
1 vote
1 answer
1k 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....
Machine Yadav's user avatar
7 votes
2 answers
2k 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 ...
RatzzFatzz's user avatar
2 votes
2 answers
162 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 ...
nibbles's user avatar
  • 143
-2 votes
1 answer
5k 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 ...
Brent Fisher's user avatar
0 votes
1 answer
741 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 ...
Henry's user avatar
  • 1

1
2 3 4 5