All Questions
Tagged with recursive command-line
20
questions
1
vote
0
answers
25
views
How do I delete all folders with a similar name that do not contain large files on linux commandline?
On my linux server for my media library I used a function to change show season names to have a leading zero when needed, so "Season 1" would be Season 01" and so on. The problem is ...
1
vote
1
answer
2k
views
Batch Script to delete certain files inside subfolders of a main subfolder
My problem is this
I have an extensive collection of pictures spanning several sub-folders (I'm talking of several hundred of folders, not a few), under a main folder, as example:
Birthdays
Mom
...
0
votes
1
answer
197
views
Copy files from folders which contain less than a number of files
Coming from Bash: Find folders with less than x files
find . -type d -exec sh -c 'set -- "$0"/*.flac; ! [ -e "$1" ]' {} \; -print
How do I extend the line to now recurse through the resulting list ...
1
vote
1
answer
3k
views
recursively wget in specific folder
I'm trying to get files from HTTP using wget command.
I need every file in:
http://9.9.9.9/a/b/c/d/
which is not a directory.
I was trying it by:
-A log,html,tgz,zip,txt,css,js
In addition, ...
3
votes
1
answer
10k
views
PowerShell command for ffmpeg to process items in a folder recursively
I'm trying to figure out what PowerShell command [or script if necessary] might allow ffmpeg to recursively traverse a directory, pull stills via the -vf flag, and put all the stills into a folder ...
1
vote
1
answer
2k
views
What command can delete duplicates in a directory tree?
When I migrated a user from Google Drive to OneDrive using Multcloud, there were created duplicates of a lot of directories and files. Not all, but a big lot. We're talking thousands of directories, ...
1
vote
1
answer
822
views
diff won't work recursively
I'm trying to recursively diff two directories using the command line diff util. I have two folders, diff1 and diff2, with contents like this:
diff2 is empty. But when I do diff -r diff1 diff2 I only ...
-1
votes
1
answer
1k
views
How to remove folders with same name recursively?
I have folder, that contains a lot of subfolders. Each subfolder contains folder with name __pycache__.
How to remove folders with name __pycache__ in each subfolder from command line in Windows?
...
6
votes
2
answers
14k
views
How to recursively copy and rename files in the same directory using Windows command line
I'd like to avoid using a batch file, if possible.
Based on this answer to a question about recursive renaming or moving, I've came up with the following command (for copying all files named web.foo....
0
votes
1
answer
672
views
How to retrieve a complete directory from a URL [duplicate]
Is there a method on Windows or Linux for downloading all files* within an online directory, specifically:
http://download.opensuse.org/tumbleweed/
so I have a local repository I can work on? Any ...
0
votes
0
answers
680
views
How can I list all files recursively that have the compressed attribute set?
I started a decompress operation using compact /U /S /I /Q > compact-report.txt on a large dir (120GB+, ~950M+ files) and it has been going on for about 24 hours now. Most files seem decompressed, ...
1
vote
2
answers
2k
views
Tail and grep recursively?
Trying to tail though a list of domains to search for a hacker code. All the files that I'm looking for are the same so I was trying something like this:
grep -rnl * -e "Ai9LbaFz7lC13SwzDxAYT72vwA"
...
2
votes
2
answers
6k
views
Windows CMD command to run a command inside every subdirectory?
I have a batch script I wrote called "joiner.bat." It needs to run inside each of 730 sub-directories of a folder. The joiner.bat file has already been copied into each of the sub-folders, it just ...
5
votes
1
answer
1k
views
How to chown large group of files based on previous owner id?
I created a new account in OS X and disposed of my old one.
I have a bunch of files that now have owner 501 that need to have ownership changed to me
[/usr/local]$ ll
total 24
drwxrwxr-x 18 root ...
10
votes
1
answer
10k
views
How to find files that don't belong to a given user
How do I recursively search for all files or directories that do not belong to given user?