0
votes
3answers
396 views

How to organize files in accordingly named directories from command line under Linux

I have a directory filled with various files, differently named (i.e. not named with a specific pattern) and with different extensions, and I want to put each file in a newly created subdirectory ...
2
votes
1answer
3k views

How do I delete all files smaller than a certain size in all subfolders?

I have a folder with many sub-folders containing small tif files (less than 160kb) which have been merged together in bigger pdf files, together with some big multi-page tif files. I want to delete ...
3
votes
2answers
528 views

How to create files named after lines in a text file under Linux

I have a text file which contains a list of items (one for each line) and I need to create, in a given directory, a file for every entry in the said list; each one of these files should be named with ...
1
vote
1answer
197 views

Write a dummy file into every subdirectory?

I want to copy a dummy text file into every subdirectory of a given directory on a network drive (Windows). Because we're looking at hundreds or thousands of subdirectories, I can't do this manually, ...
1
vote
1answer
73 views

Delete duplicate filenames from filesystem [duplicate]

How would I write a simple script to remove files with the same name and/or md5 checksum from a target filesystem? I'm sure in a Unix like system this is simple but I'm actually trying to get one ...
0
votes
2answers
4k views

Continuously copy all file changes from one folder to another on change (Windows)

I'm working on a massive Java web application which is kept under centralized version control, but the source files are used to build and run the actual server, which then copies all the files I work ...
5
votes
2answers
2k views

Windows 7 File Associations .mov

I created a new windows 7 SP1 base image. Everything is all fine and dandy with that. So i am now installing standard applications I would like Quicktime to manage .mov files. The only problem is ...
1
vote
2answers
2k views

Move a file to archive folder in cmd using wildcards

I'm using this command: move C:\folder\*.txt C:\folder\archive\*.txt I'm trying to move multiple files to an archive folder using the *.txt but I get an error that states it cannot find the file ...
2
votes
1answer
101 views

Naming a file so it appears at the top when listing files

What I want to do is make it so a particular file is listed at the top when using ls or browsing via file manager like Nautilus. I want this to work without any system configuration as the files will ...
3
votes
4answers
6k views

Move all files of type to a new folder in windows 7

Can anyone help on this. I have mp3 files all over the shop and therefore a lot of duplicates. What i need is a command line function that will move all files of type mp3 to a new folder. I'm not ...
0
votes
1answer
113 views

what is the most common/efficient way of managing collections of batch files?

Problem: There are generally many examples of using batch (and bash) scripts in DOS shell to automate various programs. But I have found few resources that suggest ways to manage all the batch files ...
4
votes
1answer
306 views

Is there a stable file copy utility built into windows 7?

I am trying to copy some files from a shared network drive to my desktop when I use xcopy /C sooner or later I get an error The handle is invalid. Is there perhaps another way to copy the files so ...
0
votes
1answer
263 views

'Push' files from one linux machine to another via SSH

I have 2 linux machines, one (1st) containing about 8 GB of small files (images, flv etc) I need to upload/push those files to the other machine (2nd). I would use rsync to pull them down to the 2nd ...
1
vote
2answers
3k views

Rsync statistics number of files

I'm using rsync with -vrlHh --delete --stats --force options to mirror two directories. The first directory is the source and it's my external hd, the destination directory is empty because I've just ...
10
votes
2answers
2k views

Show/hide extension of a file through OS X command line

I'm looking for a way, via terminal, to change whether or not a specific file's extension is shown in the Finder, something along the lines of: $ hideextension ~/music/somesong.mp3 Without having ...
2
votes
2answers
693 views

How to remove files based on their extension using ssh

I need to removed files in my folders that ends in .txt using ssh. This is what I have tried so far: find /models/ -name *.txt" -type d -exec rm -rf {} \; Inside these main folder model I have ...
1
vote
3answers
708 views

How can I move files from 2-level folders to 1-level folder

I have a bunch of files stored in a file directory as such root_folder -- folder1 --folder1_2 --bunch of files here -- folder2 --folder2_2 --bunch of files here -- ...
2
votes
3answers
146 views

Is there a way to use * in the destination of cp, mv, etc?

In the Windows Command Prompt you can do this kind of thing: ren *.doc *.txt copy my-precious-document.doc *-backup.doc Is there a way to do this is the Linux (including OS X) world? It's a very ...
0
votes
2answers
96 views

Tool/Utility for copying one file inside another

I'm looking for Tool/Utility with which I could copy one file inside another, but with option to specify target location in second file. And it must overwrite overlapping content not insert. for ...
3
votes
5answers
4k views

Concatenating files from multiple subdirectories

Say I have a directory structure that looks like this: file1.txt folder1/ file2.txt folder2/ file3.txt How can I concatenate file1.txt, file2.txt, and file3.txt into a single file? Edit: ...
1
vote
6answers
2k views

Finding files based on date, without using `find`

I know find can do what I am looking for, but I am wondering if there is an alternative way to find files on the filesystem either created before/after a certain point, or at a certain time. ...
0
votes
1answer
845 views

Stripping out illegal characters such as question marks “????” from names of my files on Windows 7

I need a simple free software program that can strip out illegal characters such as question marks ???? from names of my files on Windows 7, 64 bit and can strip them in batch/bulk
2
votes
3answers
1k views

XP, CMD, Move file to folder with the files DATE

I want to use a files date to move sort the file. Say I have file test.txt created on 5/10/2011, I want to be able to move the the file to C:\2011\05\10\test.txt. You ca do something like I guess ...
8
votes
4answers
5k views

Using underscore in file names?

I use the command line frequently to navigate my files so I try not to have spaces in file names. Typically I have used an underscore to connect words but it was recently suggested that I should use ...
2
votes
2answers
297 views

Messy Filesytem : Duplicate File Removal from the command line

In debian/ubuntu I want to: a) create a list of all the files in one directory tree b) do the same for a second directory tree c) compare the two lists such that, only the file NAMES are compared ...
8
votes
3answers
17k views

Recursively rename files (change extension) in Linux

How do I rename all files in a directory, recursively, changing one file extension to another, for thousands of files in thousands of subfolders? I see a lot of commands that do almost what I want, ...
3
votes
2answers
1k views

How can I move folders that contain a file with a specific extension to a destination folder?

Many years ago, I converted a portion of my files to an arbitrary format with a specific extension. i no longer desire to have them in this format and i would like begin the process of replacing them ...
4
votes
6answers
11k views

Move files from multiple folders all into parent directory with command prompt

I have multiple .rar files in multiple folders like this: C:\Docs\Folder1\rarfile1-1.rar C:\Docs\Folder1\rarfile1-2.rar C:\Docs\Folder1\rarfile1-3.rar C:\Docs\Folder2\rarfile2-1.rar ...
1
vote
1answer
152 views

Removing files with strange names [duplicate]

Possible Duplicate: Unix: Files starting with a dash, - Somehow I ended up with a file named "-r". How do I remove it? rm -r doesn't work. I tried 'rm -i `ls -a`' to step through the ...
0
votes
4answers
818 views

Linux: Can I link multiple destinations via softlinks?

Attempting to end up with something similar to this: $ ls -l lrwxrwxrwx 1 user group 4 Jun 28 2010 foo -> /home/bar lrwxrwxrwx 1 user group 4 Jun 29 2010 foo -> /etc/bar The ...
1
vote
1answer
894 views

Copy images using a single dos command

I'm wondering if it's possible to copy only images files from a directory. For example, if source directory has: a.jpg b.gif c.png d.txt I want to copy only the images using one command, to get ...
2
votes
2answers
14k views

cp: reading `filename': Input/output error WHY?

I wish to know what could be the possible cases for this error: cp: reading `filename': Input/output error I am getting this message when I am trying to copy a big file of around 50MB.
2
votes
1answer
254 views

Overwriting the middle of a file from a block device *without* truncating file?

I have a Linux (Kubuntu) system with a large (~20Gb) file which I would like to mess with. Specifically, I want to copy the entire contents of another large file (~12Gb) to the middle of this file, ...
42
votes
20answers
78k views

How can I mass rename files from the command line or using a 3rd party tool?

I've got a bunch of files named with a the pattern 99 - DescriptiveName.txt and I'd like to remove the number from the front so I just have DescriptiveName.txt. How can I do this? Can I do it from ...