The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
9 views

Bash: move all files in all recursive folders to the root of the volume?

I have a disk with files and folders, a few levels deep. Eventually, there are mp3 files. What I would like to do is move *.mp3 from every level to the root of the disk, and then delete all the ...
0
votes
1answer
21 views

Relocate jpg files from nested/buried structure to relative known directories

I'm trying to batch move/organize a large number of files (.jpg) from nested subdirectories to a relative directory. The structure is pre-planned. Just not 100% sure what the most efficient and safest ...
0
votes
0answers
33 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 ...
2
votes
1answer
39 views

Linux: Deleting old log files recursively

I have a directory /home/projects/ with several nested sub-directories. How to recursively delete all files older than 1 week inside any logs directory starting from /home/projects/ ? A schedulable ...
1
vote
1answer
55 views

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

On my Windows 7 machine, I have a directory full of downloaded dumps in ZIP archives. Each archive contains few text files, PDFs and rarely XML files. I want to extract all the contents of each ZIP ...
0
votes
0answers
16 views

How can I use zgrep to take a file with IPs and recursively search another path, then take matching lines and correlate them into a single txt file?

How can I use zgrep to take a file with IPs and recursively search another path, then take matching lines and correlate them into a single text file? The command I have been using to find a single IP ...
0
votes
0answers
43 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, ...
0
votes
1answer
15 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 ...
1
vote
2answers
74 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" ...
0
votes
0answers
53 views

rsync with diff between unrelated files

I need a Linux program similar to an rsync -a foodir targethost:foodir2 copy, but for each file in foodir it should find similar files in foodir2, and transfer only the difference. rsync can't do ...
1
vote
3answers
1k views

How can one delete recursive directories in Windows?

I'm using Windows 7 Professional 64-bit, and I somehow managed to create a system of recursive directories. For example, I have directories A, B, and C, which are nested like so: A/B/C. However, when ...
0
votes
2answers
425 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, ...
1
vote
1answer
691 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 ...
2
votes
1answer
290 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
1answer
226 views

rm -r only files?

Is there an way to remove all the files from the current dir (recursively), keeping the directory structure?
0
votes
2answers
501 views

Using rsync to recursively copy a directory while excluding a sub-directory but including a file in a sub-directory of the excluded sub-directory

I have a file tree that looks as such: in ├── file1 ├── dir1 └── dir2 ├── dir3 │   ├──── file2 │ └──── junk1 ├── junk2 └── junk3 I want to create a sibling of in which looks ...
1
vote
1answer
879 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
2answers
663 views

List all files and dirs without recursion with junctions

Is there a native|portable tool that can give me an unicode (or at least system local-compatible) list of all files and directories under a path recursively, without recursing into junction points or ...
3
votes
3answers
325 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
1answer
56 views

Copy permissions from owner

How can I copy the all file permissions of a folder from owner to users? Imagine that I have: -rw-r----- 1 124982 5000 201 2012-06-24 06:45 documentation.html I want to change to: -rw-r--r-- ...
0
votes
1answer
120 views

Does “chmod -R 700 directory_1” update directories pointed by softlinks?

Does "chmod -R 700 directory_1" update directories under softlinks? Forexample, there is a softlink under directory_1 folder: "my_softlink". And my_softlink points to a directory_2. Will permissions ...
8
votes
1answer
590 views

Cannot delete folder - Content seems to be nested recursively

I cannot delete a folder located on my hard disk by any means. I don't quite know how it was created, all I know is, that it is a pretty deep structure of folders (too deep to delete it at once, ...
3
votes
1answer
94 views

Windows program / tool needed for recursively searching through files referenced from within a file

Following scenario: I browse for unsafeMethodCall() in all my web pages. This method is only unsafe in case that there is a reference of doSomeCrazyAjaxStuff() My web pages are using strong ...
1
vote
2answers
731 views

How do I recursively list the contents of all files in a repository (extension-agnostic) into a single text file?

I know that using "ls -R ." in bash you can recursively list the filenames. Can I use some similar command to list the contents of each file just the way their names are displayed using the ls ...
5
votes
2answers
5k views

How can I do a recursive chmod only on directories?

I want to change permissions on a tree on Centos 4 to add execute permissions for all directories recursively from a directory. If I use normal chmod, files other than directories are also modified: ...
0
votes
1answer
445 views

How to Unzip files recursively in Linux / DOS

I have a zipped folder which contains thousands of zipped folders contained in itself and that goes down the hierarchy, I have to unzip each and every file and place it in a single folder. This task ...
0
votes
2answers
690 views

Copy every file with a certain extension (recursive)

I need a script (may it be bash, ksh, or whatever) which copies, for backup purposes, all the sub-directories and files of a directory: .znc - but .log files. The structure is like this: ...
1
vote
1answer
587 views

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

if I use the command "wget --no-remove-listing -P ...../debugdir/gnu// ftp:/gnu//" I will get the .listing file of that directory. But I have to step through each subsequent sub-directories to get the ...
2
votes
2answers
833 views

How can I recursively extract zip files on Windows including deletion?

How can I recursively extract zip files on Windows? Each zip file should be unzipped in a new subdirectory, and the zip file should be deleted afterwards. Each existing or created directory should be ...
1
vote
1answer
844 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 ...
0
votes
2answers
2k views

How to recursively extract all .tar and .tgz file zipped in a .tgz file using 7zip command line version

I'm using 7zip cmd line version in my app (written in Python on Win 7 box) to extract .tgz files. Although I'm using the -r switch, the .tar and .tgz subdirectories are not extracted. Can someone tell ...
0
votes
1answer
846 views

Looking for software that will batch convert a folder tree containing CHM files in different folders to EPUB

I have a folder tree with varying folder levels and within each folder are a number of CHM files (Compiled HTML files). I would like a tool to batch convert all of these to EPUB (book) by just ...
4
votes
1answer
605 views

How to chown large group of files based on previous owner id?

I created a new account in OS X and disposed of my old one. I have a bunch of files that now have owner 501 that need to have ownership changed to me [/usr/local]$ ll total 24 drwxrwxr-x 18 root ...
3
votes
1answer
486 views

How to find files that don't belong to a given user

How do I recursively search for all files or directories that do not belong to given user?
2
votes
1answer
2k views

Recursively add directory to $PATH variable

Is it possible to recursively add a directory to my $PATH variable? Let's say I have a directory structure like the following: /usr/local/bin - /nodejs-x.x - /redis-x.x - /mongodb-x-x ...
0
votes
1answer
69 views

Should programs follow symlinks?

A program that recursively traverses a directory tree, needs to figure out what to do about symlinks (and/or junction points on Windows), to avoid going into an infinite loop when a symlink points to ...
1
vote
2answers
6k views

How do you search for specific text in specific file types? [duplicate]

Possible Duplicate: How can I grep in source files for some text? What's the command to search for specific text in specific file types, recursively, under the current directory?
5
votes
2answers
6k 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 ...
2
votes
3answers
3k views

Recursive download of subfolder with wget - --no-parent apparently not working

I need some documentation about XUL but I do not have Internet access most of the time. So, I've tried to download the Mozilla Tutorial with the following command: wget --no-parent -r -l 2 -p -k ...
3
votes
1answer
96 views

Specific ls output

Right now I'm calling the the following command ls -R and am receiving an output like this: .: file.txt script.php ./dir: file.txt other.java Is it possible to get the output to look like this: ...
2
votes
1answer
416 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 ...
3
votes
2answers
1k 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 ...
2
votes
1answer
2k views

wget recursively with -np option still ascends to parent directory

tl;dr: will `wget --no-parrent -r ' download from a directory above the given url's directory? when using wget to download, say images, recursively from example.com/a/b with the -r and -np options, ...
2
votes
3answers
3k views

Batch convert .doc files to .txt (plain ascii text) and/or .html recursively in folders and subfolders, Windows and Mac?

Is there a tool to do this. I've seen some Python/Java tools to automate OpenOffice but has anyone reliably scripted this to do more than one file, and recurse through a folder/directory tree with ...
6
votes
2answers
5k views

7 zip extract recursively

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, ...
6
votes
3answers
5k 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 ...
0
votes
1answer
661 views

How to resize a bunch of images of different formats stored in different folders [duplicate]

Possible Duplicate: Bulk convert photos to smaller size? Hi Guys, I need to resize a bunch of images that are stored in a detailed folder structure. I want the resizing to replace the ...
4
votes
4answers
5k views

Recursive search for files that hold some specific text

How do I recursively generate a text file which has a list of all files on my server which contain a specific string anywhere in the files? I know the following command can be used to replace a ...
2
votes
4answers
2k views

Windows 7 Delete Recursive Folder [duplicate]

D:\>rmdir /S default default, Are you sure (Y/N)? y ...
0
votes
2answers
2k 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 ...