The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
44 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 ...
0
votes
0answers
30 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
31 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
36 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
94 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
107 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
22 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
57 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
16 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
87 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" ...
1
vote
3answers
2k 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
452 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
754 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
322 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
243 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
558 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
992 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
3answers
784 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
332 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
57 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
129 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 ...
3
votes
1answer
95 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 ...
0
votes
1answer
466 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 ...
1
vote
1answer
717 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
1answer
922 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
911 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
623 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
522 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 ...
1
vote
2answers
7k 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
7k 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
426 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
2k 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
6k 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
6k 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
701 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
6k 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 ...
0
votes
4answers
2k views

How does one FTP a directory with multiple sub-directories?

I need to ftp a directory over to another system and I don't want to have to recreate all the folders on the other system by hand. How would I do this? EDIT: I can't install anything so rsync etc are ...
2
votes
2answers
1k views

How to rename everything matching a certain string in a folder

I am running Linux and I have some basic console knowledge but my current problem is quite difficult and I dont know how to achieve this. I want/need to rename everything within a folder that matches ...
4
votes
2answers
319 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). ...
0
votes
1answer
271 views

wget: Turn Off Forced .html Retreival

When performing a recursive download, I specify a pattern via the -R parameter for wget to reject, but if this file is a HTML file, wget downloads the file regardless of whether or not it matches the ...
41
votes
2answers
16k views

Ignore .svn when doing `diff -r`

diff has an option --recursive (-r) to do a comparison between two directories (the files inside them). Is there a way to make diff ignore certain sub-directories (eg: .svn)? $ diff -r src1/ src2/
0
votes
2answers
2k views

Recursive filesystem notifications (inotify) for Ubuntu Karmic Koala

I need a program which generates events when a file is moved, removed or its extended attributes are changed. I'm running Ubuntu Karmic Koala 32-bit desktop. inotify is the standard solution for such ...