All Questions
6 questions
3
votes
2
answers
420
views
How might one except hidden '.' files and directories from a script that renames them?
I have a script that renames, getting rid off the whitespace, every directory and file. It does it recursively:
#!/bin/bash
find -name "* *" -print0 | sort -rz | \
while read -d $'\0' f; ...
0
votes
1
answer
2k
views
Flattening directory and renaming files incrementally (MacOS)
Looking to flatten the directory (with duplicate child file names) while renaming all files, keeping duplicates OR appending all file names with an incrementing number (incrementing # + name would be ...
2
votes
2
answers
2k
views
Sort and mv files based on filename (with spaces), recursively
I have made a mistake and dumped files together into the same directory. Luckily I can sort them based on the filename:
'''
2019-02-19 20.18.58.ndpi_2_2688_2240.jpg
'''
Where the # bit or 2 in this ...
1
vote
4
answers
2k
views
Renaming files recursively in sh
I use Synology as storage for films from CCTV cameras. After copying a file from the CCTV system to Synology, I convert it to the AVI format. So my files have names like this:
10.01.07-10.01.48[M][@0]...
3
votes
2
answers
2k
views
Moving large numbers of files and directories to a different directory
I'm trying to move the following move a large number of files that exist in the following structure to a /mnt/originals but I need to maintain the structure at the same time. I know cp would be a ...
4
votes
2
answers
2k
views
Merging folders with practically the same name but different casing
When digging around in the advanced settings in Dropbox I lost a folder. I only discovered this about a month later. I managed to get this folder back from Dropbox however the file structure of the ...