Skip to main content

Questions tagged [recursive]

The tag has no usage guidance.

670 votes
18 answers
764k views

How to copy with cp to include hidden files and hidden directories and their contents?

How can I make cp -r copy absolutely all of the files and directories in a directory Requirements: Include hidden files and hidden directories. Be one single command with an flag to include the ...
1 vote
1 answer
3k views

Recursive filesystem notifications (inotify) for Ubuntu Karmic Koala

I need a program which generates events when a file is moved, removed or its extended attributes are changed. I'm running Ubuntu Karmic Koala 32-bit desktop. inotify is the standard solution for such ...
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 ...
-2 votes
2 answers
144 views

find if files in one directory recursively exists in another directory recursively in linux bash and print exists or not exists

find if files in one directory recursively exists in another directory recursively in linux bash and print exists or not exists lets say you have pth1/dirA/file1 pth1/dirA/DirB/file2 and pth2/dirA/...
1 vote
2 answers
1k views

How to copy files changed in last 20 days to a different location recusively

I found a code here (on this site) which allows copying of files changed in last 20 days. My issue is that I have a folder with many subfolders and some subfolders could be 8 or more levels deeps. I ...
7 votes
3 answers
9k views

mogrify - how do you recurse through subfolders in Windows

I thought there was a simple switch in mogrify command options that tells it go through subfolders as well. I didn't find any. On Linux, the "find" command seems to do the trick, how do you do this on ...
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, ...
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 ...
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 ...
1 vote
1 answer
45 views

Recursive rename with negate filter not working

I want my script to recursively rename all .mov files to _Proxy.mov, BUT I also want it to SKIP any files already named _Proxy.mov. The below command is still renaming all .mov files, and is ignoring ...
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
2 answers
935 views

Calling a Recursive Function in a Batch File

I am currently trying to write a batch file for a project that will mimic the structure of the following pseudocode: void h ( int n ) if ( n ≥ 4 ) h ( n / 2 ) end if print ...
5 votes
2 answers
14k views

wget - only getting .listing file in every sub-dir

if I use the command wget --no-remove-listing -P ...../debugdir/gnu/<dir>/ ftp:<ftp-site>/gnu/<dir>/ I will get the .listing file of that directory. But I have to step through ...
1 vote
0 answers
104 views

How to display recursive geometric image in browser with infinite zooming? [closed]

Context Suppose one has a pentagonal tiling where each plane is also made up of a pentagonal tiling (if that is not possible, assume cubic). Suppose each parent is x times larger than its child. Then ...
0 votes
0 answers
2k views

recursively delete a specific directory for each user in C:\Users

Would like to use powershell to loop through all C:\Users\* and delete all contents of a subdirectory... Some users, but not all, use an app that creates cache files at: C:\Users\UserName\AppData\...

15 30 50 per page
1
2 3 4 5
7