Linked Questions

0 votes
1 answer
1k views

Can't remove apostrophes from filenames in terminal [duplicate]

I don't understand why zsh and bash (ls) show me lots of filename inside apostrophes, but not all: 'joe rilla - mauern fallen.mp3' jokaz-alarmbereit.mp3 'yoshi blessed - everybody free.mp3' I tried ...
user avatar
  • 196
2 votes
1 answer
814 views

Why is my directory getting quotes around it when created? [duplicate]

I create a directory called bob@example.com/ I wanted to use this email address as the directory name - I know - not a good idea for many reasons - but lets assume this is a very temporary ...
user avatar
1 vote
0 answers
674 views

How to remove a single quote from a file name? [duplicate]

I have some podcasts on my radio server which contain a timestamp when they should be played. I noticed one of them is put into single quotes 'filename.mp3', and I'm unable to remove them. Check this: ...
user avatar
  • 2,158
1 vote
0 answers
45 views

Unexpected single-quotes in file name [duplicate]

Original post over here: https://stackoverflow.com/questions/35350216/unexpected-single-quote-in-file-name Basically, it seems that ever since I accidentally overloaded my filesystem (it's not ...
user avatar
0 votes
0 answers
27 views

Using bash wildcards with filenames that have single-quotes [duplicate]

I used wget within bash to download a bunch of files from a parameterized URL. My URL file looked something like this: http://www.example.com/Home/Sales?lrsn=48726 http://www.example.com/Home/Sales?...
user avatar
  • 101
27 votes
2 answers
5k views

Why is less being run unnecessarily by git?

When I run git branch (from bash or csh), it automagically pipes the output through less. However, with only a few branches in the repository this is beyond unnecessary, it is annoying, as the branch ...
user avatar
  • 645
4 votes
3 answers
5k views

Files names with an ' (apostrophe) inside of them

When I list files that have spaces in their names, most of the time I see them surrounded by apostrophes : 'famille, vacances, loisirs' I had to edit a file whose name had to be : Chapitre 2 : L'accès ...
user avatar
  • 729
5 votes
2 answers
4k views

bash: Replace single quote by two quotes in string

I have a variable, e.g. a'b, containing a single quote which I need to replace by two single quotes before writing it to a file: a''b. The following bash code used to get the job done for me ... ...
user avatar
  • 151
4 votes
3 answers
396 views

Rename all hidden directories created by GNU parallel

GNU Parallel is outputting hidden directories as follows using the --results parameter. What command do I use on Ubuntu to change the all to directories so that they are no longer hidden. The ...
user avatar
  • 305
0 votes
3 answers
1k views

How to use wildcard * with 'A long filename'?

I'm trying escape characters like \' but it doesn't work. $ cp 'A long filen* ./short_filename
user avatar
  • 3
3 votes
2 answers
2k views

Quoted filenames with spaces in ls output on OSX

The problem I don't want to see filenames quoted when they contain spaces. Example On OSX I see this when running ls: > ls -l total 0 drwxr-xr-x 2 mafro staff 68 Mar 16 09:02 'dir with spaces' ...
user avatar
  • 239
4 votes
1 answer
504 views

Why does `ls` add a leading whitespace to its output for certain directories?

If I use the ls command in my home directory each line of output has a leading whitespace: $ ls bin Documents ... It only seems to do this for my home directory. Why does it do this? Note: I ...
user avatar
0 votes
2 answers
176 views

Why `ls [0-9]` finds a file called `[0-9]`, and worse, not after `touch 1`?

$ mkdir temp && cd temp $ ls [0-9] ls: cannot access '[0-9]': No such file or directory $ touch \[0-9\] $ ls [0-9] '[0-9]' $ touch 1 $ ls 1 '[0-9]' $ ls [0-9] 1 I find this behavior very ...
user avatar
  • 127
2 votes
1 answer
205 views

"ls -b" does not work on macOS

ls -b should print the file names with non-printable characters, for example, ex ex.txt should be shown as ex\ ex.txt, but this does not work on macOS, it is still ex ex.txt. Does anyone know the ...
user avatar
  • 23
-1 votes
2 answers
153 views

echo redirect appends a spaces

could someone help me? I am trying to create a lot of files, but when I try to write to it with echo it adds a space and single quotes, for example: ' (here is the space) file.tmp' ' file1.tmp' ' ...
user avatar
  • 11

15 30 50 per page