Questions tagged [recursive]
The recursive tag has no usage guidance.
15
questions
25
votes
4
answers
27k
views
zip: Argument list too long (80.000 files in overall)
I need to compress 80.000 files into multiple zip files. This is the command I use:
zip -s 200M photos_test/*
However I get the following error:
-bash: /usr/bin/zip: Argument list too long
What ...
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 ...
20
votes
4
answers
57k
views
Get bare file names recursively in command prompt
I ran into a little snag trying to get only the filenames (no extensions or file paths) recursively.This worked for me in the root folder:
dir /b
But when i added /s to scan recursively i also got ...
12
votes
3
answers
45k
views
Extract recursively using 7-Zip
I have several folders, and within each folder, there are ZIP files. I want to run a command line order to recursively go through every folder and extract in place every archived file that it finds, ...
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 ...
2
votes
1
answer
663
views
Recursively renaming .foo files based on name of accompanying .bar file in multiple folders in Windows 7?
I've just finished creating SHA1 hashes for each album in my MP3 collection using Corz Checksum. It left a .hash file in each folder, as desired. (Each folder is an album.)
However, the hash files ...
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 ...
22
votes
3
answers
17k
views
Recursive ls with conditions
Why can't I use a command like this to find all the pdf files in a directory and subdirectories? How do I do it? (I'm using bash in ubuntu)
ls -R *.pdf
EDIT
How would I then go about deleting all ...
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 ...
6
votes
4
answers
6k
views
Mass Checksumming tool for Windows?
I'm looking for a command line tool for windows that will go over a directory tree (recursively) and output a list of all the files in there, and a checksum for each file (can be CRC, MD5, whatever).
...
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 ...
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 ...
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 ...
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 ...
1
vote
2
answers
6k
views
recursively replace every instance of a word in a directory from linux command line
I have a directory with several subdirectories that all contain text files. In these text files, there is a certain word that occurs over and over again, and I want to replace every instance.
My ...