Questions tagged [recursion]
The recursion tag has no usage guidance.
22
questions
0
votes
0
answers
210
views
Assign registry key last write/modified time recursively using PowerShell
One can view Windows Registry key's LastWriteTime by exporting key as TXT using Registry Editor:
Key Name: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Audio
Class Name: ...
0
votes
1
answer
2k
views
How to use the value of a cell to write a formula in the same cell?
I have a spreadsheet here. On Cell J2, I need to write a formula, but the problem is that I can't overwrite the cell as it contains the value which are to be needed for the formula. I can't add a new ...
-2
votes
1
answer
72
views
Will this program terminate for every Integer? [closed]
In a Part Test for GATE Preparation there was a question :
f(n):
if n is even: f(n) = n/2
else f(n) = f(f(n-1))
I answered "It will terminate for all integers", because even for negative ...
3
votes
1
answer
6k
views
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 ...
2
votes
1
answer
6k
views
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 ...
2
votes
1
answer
105
views
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, *....
2
votes
2
answers
1k
views
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 ...
8
votes
5
answers
3k
views
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 ...
1
vote
2
answers
3k
views
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.
1
vote
1
answer
2k
views
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 ...
0
votes
1
answer
346
views
Recursively compare file identities in Windows environment using only standard Windows commandline tools
I want to ensure that deep directories of files are identical after copying.
I've read this answer: https://superuser.com/a/414216/214579
However, neither fc or comp offer recursion. How would one ...
1
vote
2
answers
2k
views
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 ...
4
votes
1
answer
28k
views
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 ...
3
votes
2
answers
7k
views
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.
1
vote
1
answer
846
views
How to rename files and subdirectories in bash command line?
In Rails sometimes I need to rename several directories and files, e.g.:
app/models/person.rb
app/views/persons/_person.haml
app/controllers/persons_controller.rb
----
app/models/user.rb
app/views/...
0
votes
3
answers
689
views
Recursive Batch File
I have a file that looks this:
head1,head2,head3,head4,head5,head6
a11,a12,keyA,a14,a15,a16
a21,a22,keyB,a24,a25
a31,a32,keyC,a34
a41,a42,keyB,a44,a44
a51,a52,keyA,a54,a55,a56
a61,a62,keyA,a64,a65,...
0
votes
1
answer
183
views
Does Send mail can turn on external recursion in BIND DNS Server?
I've a Ubuntu 10.04 package from Godaddy, It includes BIND and Sendmail pre-installed.
Normally recursion enabled for Internal DNS queries and recursion is disabled for External DNS queries. (Please ...
6
votes
4
answers
8k
views
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 ...
7
votes
3
answers
4k
views
How to Recursively Remove .svn Directories?
How do I recursively delete all .svn directories, starting with the directory I am in?
13
votes
5
answers
35k
views
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 ...
15
votes
4
answers
9k
views
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 ...
1
vote
3
answers
90
views
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