New answers tagged filenames
0
votes
Need help with ls and escape characters
As pointed out in the comments, quote your parameters expansions and do not loop through ls output. Unquoted file names could split if they contain any of the characters in the IFS shell variable.
The ...
0
votes
Synchronizing with rsync outputs error "Invalid argument (22)" for directories with dots and other symbols in their name
Late answer, but this will help, I had a similar issue to the one here(rsync: [sender] readlink_stat was returning failed: Invalid argument (22)). The folder also wasn't showing in Dolphin. I ...
0
votes
Sorting ls output by date in filename, in reverse order
With the standard -t option, ls will sort files (given as arguments or found in the contents of directories passed argument) by modification time from newest to oldest.
With the -R option, ls enters a ...
1
vote
Sorting ls output by date in filename, in reverse order
This will list all files recursively with ls output and reverse sorted by modified time (mtime):
find -print0 -type f directory_path | xargs -0 ls -ltr
Peform the search more quickly with fd
fd -0 -t ...
1
vote
Is space not allowed in a filename?
Reading the answers in this question, with a note that this question is ask on a forum about Unix & Linux, it seems to me that the advice against filename with spaces doesn't really come from the ...
0
votes
How to find out which (not installed) Debian package a file belongs to?
apt-file can produce many results. With its perl regex, it is almost able to perform the task... if only the file was verified to be installed somewhere in $PATH...
apt-file find --regexp "/$...
0
votes
How to open a file starting with dash via xdg-open
Note that xdg-open is a shell script, so you can fix it yourself. Put a fixed version of it in a file of the same name in a personal directory in your PATH. A fix might be to simply not test for -* ...
1
vote
Accepted
How to open a file starting with dash via xdg-open
You can open the file by adding ./:
xdg-open ./-headlinesAfter.epub
Top 50 recent answers are included
Related Tags
filenames × 1188bash × 231
shell × 172
rename × 155
shell-script × 144
files × 124
linux × 118
find × 111
directory × 86
command-line × 65
wildcards × 64
filesystems × 48
quoting × 46
ls × 38
rm × 37
text-processing × 35
grep × 35
sed × 33
sort × 32
awk × 30
regular-expression × 29
scripting × 28
symlink × 26
string × 24
cp × 23