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
1answer
26 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
2answers
147 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
0answers
40 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....
1
vote
0answers
16 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 [...
3
votes
2answers
59 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 ...
0
votes
2answers
85 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 ...
1
vote
1answer
61 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 ...
1
vote
1answer
44 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 (...
0
votes
1answer
59 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:...
0
votes
1answer
171 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 #...
0
votes
0answers
36 views

How to change the newline position [duplicate]

I have a file that contains string in each line. I used this file as an input in a program that reads them automatically. The program seem to not be able to read the strings correctly. I tried to ...
2
votes
0answers
77 views

How to write romanian special characters with groff?

I've got myself into experimenting with groff and from the start I found out the romanian special characters I type in vim are all fine (I ran setxkbmap ro), but get messed up in the pdf export. ...
2
votes
1answer
50 views

Why can't I open these device nodes?

[root@archlinux xtricman]# ls -l /dev/pts total 0 crw--w---- 1 xtricman tty 136, 0 Feb 24 19:24 0 c--------- 1 root root 5, 2 Feb 24 19:10 ptmx [root@archlinux xtricman]# ls -l /mnt total 12 ...
4
votes
1answer
612 views

How to grep '$$$$$'? [duplicate]

I want to check the absence of the following sequence of characters $$$$$ (i.e., 5 dollar signs) in a json file using grep as it has been used instead of comma to separate fields and I need to make ...
0
votes
1answer
395 views

ssh sqlplus command has $ symbol and it gets substituted

I'm Running some SQLPLUS code over ssh. ssh -q node1 'export ORACLE_SID=DB11D_1;ORAENV_ASK=NO;. oraenv >/dev/null 2>&1;sqlplus -s / as sysdba << ENDSQL whenever sqlerror exit 1 alter ...
10
votes
2answers
4k views

Is the “tick” or “acute accent” character ´ (not `) used for anything in Linux shell?

We know that the backtick character is used for command substitution: chown `id -u` /mydir Which made me wonder: is the tick character ´ used for anything in the Linux shell? Note: incidentally, ...
5
votes
2answers
1k views

Grep words with special symbols

How do I grep this? (Including the special characters) "Limit reached."[\n]" I tried back-slashing the special symbols but end up not working, like this: grep '\"Limit reached\.\"\[\\n\]\" ' I ...
0
votes
1answer
222 views

Error with grep and find

When I try to execute : $ man find | grep "-mtime" I get this message back : grep: invalid max count I wonder how to search with the -
2
votes
3answers
799 views

How to escape a character in a heredoc bash script

I have a bash script which read an input file and using a heredoc to ssh to a server using expect, but am having issue escaping some special character in the input file. Here is what I have.. I have ...
0
votes
3answers
1k views

How to remove control Z characters from a file?

File has control Z( ^Z) characters in them. I tried sed 's/^Z//g' file_name but not working. Even tried perl script but not removing them. Please let me know if there is way to remove this character.
0
votes
1answer
474 views

How do I remove a special character in a file?

I had to use OCR to get the text of a very large script I did not want to type by hand. I have multiple lines like this echo "<91>ps <97>eF|grep... It should read; echo "`ps -eF|grep......
2
votes
1answer
411 views

How to print filled shapes in the terminal?

How to print a filled circle or shapes in the terminal like:
0
votes
1answer
3k views

curl with Umlaut causes “JSON parse error: Invalid UTF-8 middle byte 0x22” [duplicate]

I'm running below curl command from the command line (Git Bash on Windows) or as part of a Bash Script. curl -s -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d "{\"...
0
votes
2answers
81 views

Printing variable doesn't print \ | / -

I am capturing Kafka startup script output into variable and while starting Kafka prints \ | / - to simulate spinning line. So when I do: res=`./confluent start kafka` echo $res The result is: ...
4
votes
1answer
3k views

Problems with umlauts (can't type in terminal + can't open files)

On my laptop I have Linux Mint 18.3 installed and right now I am experiencing the following problem: As a German I happen to have some files (or directories) that contain umlauts in their names (which ...
1
vote
1answer
1k views

How do I use wget or CURL in php to grab a snapshot of a web page with an asterick * in its URL? (Wayback Machine archive.org question)

The following web page on the Wayback Machine (archive.org) has an asterick * in its URL: https://web.archive.org/web/*/https://www.nasa.gov/ Neither CURL nor wget will allow me to grab the page. I ...
1
vote
1answer
669 views

How to printf literal characters from/to file in bash?

I want to filter a file by character (for the purpose of removing invalid xml characters which I cannot control the generation of) but I cannot seem to even be able to copy individual characters from ...
0
votes
2answers
1k views

How do I remove special characters from a file?

I have a file that contains : <class> these are special @ $ characters / < > & " ' </class> I want to remove all the special characters only, between <class> </class&...
1
vote
1answer
273 views

Different behavior using tab completion from executing `ls`

I noticed this question on ServerFault: FreeBSD: Directory called ^C (really!) - how to remove? I knew about the ^V part long ago. What interests me in that post is that the OP can see the ^C ...
7
votes
3answers
6k views

How to print a variable that contains unprintable characters?

I want to display the value of the $IFS variable, which could contain unprintable characters (for example: newline). I used the following command to do so: echo -n "$IFS" | hexdump -C Which worked ...
4
votes
1answer
10k views

Remove all type of special characters in unix .csv file

I am processing a huge stream of CSV data coming from a source which includes special characters, such as the following: `÷ Þ Ÿ ³ Ù ÷` Here is an example row from a data set which includes these ...
2
votes
1answer
371 views

Weird output on multiline command in Kitty?

I'm running non-GUI ArchLinux on VMWare 14.0. I installed a ssh server on it (by openssh) and connected to my virtual machine by using Kitty 0.70 on Windows 10 [Version 10.0.15063]. My problem is: ...
2
votes
1answer
260 views

Unix - Delete folder with strange characters using inode or similar [duplicate]

I want to remove this folder : Name Name 1x05 name Formación I have tried all I have seen on internet : find -maxdepth 1 -inum INODE_NUMBER -exec rm -i {} \; rmdir: wrong deleting './Name Name ...
0
votes
1answer
44 views

“script” command saves unnecessary letters

When using script to save all of the terminal output, I see strange characters in the saved files, such as [K, [0m, [KM, [C to name a few. While I cat or more the file I don't seem to see this, it's ...
1
vote
2answers
82 views

Problem removing/replacing special character °

I can't seem to eliminate this ° symbol. I have tried: sed 's/°//g' file.txt and sed 's/\°//g' file.txt but both did not work. I'm running ubuntu 16. The symbol does not seem to be detected ...
0
votes
1answer
2k views

Match only ASCII letters in regular expression, ignoring umlauts

I use a regex in my bash script like REGEX="^[a-zA-Z0-9\-]+$" I want to filter out all non standard words, especially words containing german special characters äöüÄÖÜß but according to this manual ...
3
votes
1answer
58 views

Is there any offline manuals for special characters used in terminal?

We can find help regarding most commands like echo ,cp, mv, wget using man . But can I find manuals for special characters used for operations like piping(| symbol)? If there's none, is there any ...
0
votes
2answers
84 views

I accidentally exited vim with :x!~ and now my ~ shows up in a different path

When exiting a file as root, I typed :x!~ and hit enter. Now I have the following: root@host:/etc/shinken/services$ ll total 64K -rw-r--r-- 1 0 0 515 Sep 1 18:24 ~ drwxr-xr-x 2 10003 ...
0
votes
3answers
1k views

Replace forward slash “/” in a file

I'm using vi editor, I have a data like this in a file. 05/08/2017,U,01,116326001 05/08/2017,U,01,116226001 05/08/2017,U,01,116726323 05/08/2017,U,01,116236001 I want to replace the date(1st ...
5
votes
3answers
897 views

How do I properly escape weird characters in a bash script?

I am no professional in scripting or find commands what so ever (Just a warning). I am trying to create a script that can move all my mp3 podcasts to a folder that I can then move to my phone. So ...
11
votes
2answers
4k views

Match with grep when pattern contains hyphen “-”

I wrote the following command in order to match $a with $b, but when the value includes "-", then I get an error. How can I avoid that? # a="-Xmx5324m" # b="-Xmx5324m" # # # echo "$a" | grep -Fxc "$...
5
votes
3answers
5k views

How to match a string containing the character “$” with grep?

How to match strings that contain $ character? Example - by the following grep doesn't return the match. param="ambari_parameter$" echo "ambari_parameter$" | grep $param echo "ambari_parameter$...
3
votes
1answer
43 views

Using ! bash history retrieval for commands starting with a digit?

Is it possible to use ! to re-run a bash command line that starts with a digit? I know that, normally, !<digit> selects a command by position, and !<text> selects a command by text. I am ...
1
vote
2answers
682 views

How to remove failed file with backspace in its name? [duplicate]

Sorry if I am not using the right terms for naming these "backspace chars". I would like to clean up a directory that contains two files which looks like they contain backspace in their name. If I ...
0
votes
1answer
93 views

Extract lines from character to character in a loop

I have this line here and it works great to extract lines from a character to a second character (excluding the last line): sed -n -e '/>AB123|x2/,/>/ p' filename | sed -e '$d' > output ...
4
votes
4answers
1k views

Unable to remove the $ sign named files using linux? [duplicate]

Here is my ls command, which shows the list of files in my current directory: rper: ls -l $commandoutput[0] file.txt I tried to remove $commandoutput[0] line by using rm -rf $commandoutput[0], ...
1
vote
0answers
86 views

Question regarding hacked machine and special characters in filename

I'm doing a little bit of forensics on a machine that has apparently been hacked. (Thanks, systemd and your resolv buffer overflow thing. That was awesome. :/ ) Anyhow, I have a pair of 0-length ...
3
votes
3answers
486 views

Control character in awk output

I have the following bash/awk script, which does what I want, except that it adds a control symbol that I do not know what it means. #!/usr/bin/env bash # Merge two cross section files from ...
19
votes
2answers
1k views

Grep: unexpected results when searching for words in heading from man page

I'm running into weird behavior when trying to grep a man page on macOS. For example, the Bash man page clearly has an occurrence of the string NAME: $ man bash | head -5 | tail -1 NAME And if I ...
4
votes
1answer
4k views

AltGr doesn't work in Linux console

When I am in a console (not terminal emulator) (after using Ctrl+Alt+F_, AltGr+key combinations are not working. I am using a Czech keyboard layout which (as many layouts do) maps various special ...