Questions tagged [recursion]
22 questions
15
votes
4 answers
Resume recursive scp transfer (with rsync?)
I was transferring several thousand files each ~1MB via scp and my connection was broken after the first 2k files or so. I wanted to know if there was a way to resume the recursive transfer w/o starting over. Something like
$ scp -r…
physicsmichael
- 1,068
15
votes
5 answers
When running `rm -rf`, is it possible to exclude certain subdirectories?
I routinely use bind mounts to aid in making space available in multiple locations without having to have multiple logical volumes / physical partitions / LUNs, etc.
For example, I may have a 200G LV mounted at /space. From there, I will make…
warren
- 10,322
8
votes
5 answers
How to get rid of folder containing just three dots [...] (pointing to its parent folder)
On a (German) Server 2008 we found a folder with the name G:\Daten\Büro_GL\...
When entering the folder ... in windows explorer it just points back to its parent folder (G:\Daten\Büro_GL).
The folder can't be deleted, because it would delete also…
marsh-wiggle
- 3,134
7
votes
3 answers
How to Recursively Remove .svn Directories?
How do I recursively delete all .svn directories, starting with the directory I am in?
FinalForm
6
votes
4 answers
How can I remove files containing whitespace recursively?
I'm having some trouble with this command under bash in Ubuntu:
rm $(find . -name "*.exe")
My aim is to remove, recursively, all files ending in .exe. But some files have white spaces and this breaks the command.
Any suggestions on how to approach…
DrBeco
- 2,125
4
votes
1 answer
How to do recursive calculations in Excel?
I have a large spreadsheet document and I want to have a master worksheet that calculates fields from all of the worksheets. I know that I can just select a cell from a worksheet by explicitly naming the worksheet and then the row I'm interested in.…
4
votes
1 answer
Recursive DNS server answers with CNAME but does not return the A record
I have a recursive DNS server that forwards to my primary DNS servers in order to get a resolution.
Take the example
I have the below CNAME:
server1.example1.com. 300 IN CNAME server1.example2.com
And the relevant…
ryans11
- 49
- 1
- 2
3
votes
3 answers
ncftp - recursive deletion
I would like to recursively delete a folder and his subfolders.
I use ncftp.
This application provides rm and rmdir.
I already looked up the manpage, but it doesn't help.
Peter
- 1,095
2
votes
1 answer
powershell select-string with recursion to specific file
I'm pretty sure Powershell's select-string will work for me with a bit of Get-ChildItem recursion.
I have many directories like this:
abc_123
abc_345
abc_567
abc_890
abc_111
abc_569
In each directory, there's a specific file with the same path to…
2
votes
1 answer
Merging Scripts...Wrong Type of File-Object (Maybe)?
I have a script that I used very frequently to get a list of files and then process them with ffmpeg, the beginning of which read:
$files = Get-ChildItem -Path "Season *\*" -Include *.mp4, *.mkv, *.m4v, *.avi, *.wmv, *.mpg -recurse
ForEach ($file in…
J M
- 123
2
votes
2 answers
Recursively md5 files compared to stored .md5 file
What is the best way to MD5 3200 files in 167 directories using md5sum where all hashes are compared to a .md5 file that is already created in each directory holding the files to be check summed. I would also need to create a log of which files fail…
user419541
- 135
1
vote
3 answers
A program to tell me what filetypes are in this directory
I need a program which will recursively scan a directory and tell me all of the distinct filetypes that are inside the folder
somejkuser
- 339
1
vote
2 answers
How to recursively create a hash file (sha512sum) inside each folder of a tree?
For a given tree, say /var/ftpd, how do I create a hash file in each folder of that tree with the contents of that folder within a given tree? sha1sum and sha512sum does not have recursion options.
Chris
- 101
1
vote
1 answer
Linux recursive rename files only
I am trying to recursively rename all files within a directory and subdirectories to lower-case but leaving the directory names unchanged.
All examples I have found rename both files and directories to lower-case eg:
find ./ -depth -exec rename -n…
Don Smythe
- 111
1
vote
2 answers
Recursively touching directories' last modified datetime as the same datetime of the last modified file inside
Previously I have ran dos2unix on every *.php file on my server recursively with this command:
find . -name '*.php' -type f -exec dos2unix --keepdate {} +
All files processed by dos2unix had its last modified datetime intact, but the parent…
Phil
- 135
- 8