Skip to main content

Questions tagged [recursive]

The tag has no usage guidance.

1 vote
1 answer
589 views

Wget having trouble just saving the files I want - exclude directories doesn't seem to work

I want to download all government spending over £500 by the Department of Energy and Climate change. These are .xls and .xlsx files, generated once per month. They are stored at locations like this: ...
baronmax's user avatar
4 votes
3 answers
8k views

bash: find and zip all subfolders of a folder

how would one find all subfolders of a folder and zip them separately ? folder structure ./folder -subfolder_1 -subfolder_2 -subfolder_3 expected result: ./folder -...
m1k3y02's user avatar
  • 285
4 votes
1 answer
5k views

git submodule foreach git pull origin master vs. git pull --recursive-submodules

I manage a repository with several submodules. For a while now I've been using $ git submodule foreach git pull origin master to pull in the latest changes for all of these guys. However, recently I ...
Ncat's user avatar
  • 191
0 votes
2 answers
2k views

Why does `rm -rf`` silently fail?

[EDIT] Please don't waste your time reading my question below. It turns out my colleague is an idiot.. :) On my server I'm trying to remove a folder and all its subfolders with the usual rm -rf ...
kramer65's user avatar
  • 1,424
0 votes
0 answers
415 views

Batch file - List Files by extension

I am looking to get a total number of files by extension in a folder that contains many subfolders. Example Output: .doc: 6 files .xls: 10 files etc I want to either output the results into a ...
disasm's user avatar
  • 11
2 votes
1 answer
11k views

Recursively process zip archives to extract files while discarding specific format of files

UPDATE: I noticed that many people are viewing this thread, which makes me believe that this situation is not so rare after all. Anyway, I had asked a similar/related question on SO here, which has ...
Fr0zenFyr's user avatar
  • 131
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, ...
Abel's user avatar
  • 1,483
0 votes
1 answer
78 views

How to group "Only in" lines in diff at the beginning of the output

I did: diff -r directory1/ directory2/ Some files are different, and some files were only in one tree or the other, creating several Only in ... lines. How do I group these lines at the beginning ...
durron597's user avatar
  • 539
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" ...
Josh Henry's user avatar
0 votes
2 answers
5k views

How to recursively zip every file in each folder?

I am trying to write a batch script that when run into a folder, it takes all the files in this folder and zip them into one, then takes the remaining folders and looks into them and do the same, ...
untore's user avatar
  • 161
2 votes
1 answer
5k views

PowerShell touch all files newer than

I have found the following question on ServerFault: Windows recursive touch command Which partially answers my question with this answer: Windows recursive touch command However, I would like to ...
atwright147's user avatar
4 votes
1 answer
2k views

How do you remove nested empty directories using a Bash script on Linux?

I want to be able to run a script that will remove all my empty directories. The problem is some of them are nested, i.e. directories that only have empty directories in them, so the script needs to ...
dave's user avatar
  • 41
2 votes
1 answer
1k views

rm -r only files?

Is there an way to remove all the files from the current dir (recursively), keeping the directory structure?
Dmitry Isaev's user avatar
7 votes
10 answers
15k views

List all files and dirs without recursion with junctions

Is there a native|portable tool that can give me a unicode or a system local-compatible list of all files and directories under a path recursively, without recursing into junction points or links, in ...
n611x007's user avatar
  • 6,426
3 votes
3 answers
912 views

Why doesn't this for loop work?

This is on Ubuntu 12.04 I'm trying to figure out how to get ffmpeg to do a batch conversion of FLACs to MP3, recursively. If I cd into a directory and use for f in *.flac; do ffmpeg -i "$f" -c:a ...
evilsoup's user avatar
  • 13.6k

15 30 50 per page
1 2 3
4
5
7