List (or move) only files with a certain number of lines?
Dealing with a whole bunch of two-line config files, I’d like a way to exclude any files that have a different number of lines.
Dealing with a whole bunch of two-line config files, I’d like a way to exclude any files that have a different number of lines.
I want to find files that a particular user will not be able to read.
I want to be able to search for files over 14 days and over 10k and than rsync those found files to a destination.
I am on Linux (Ubuntu) and I am would like to exclude certain directories (like .hg) when I am doing a
Directory “$d” contains a few thousand e-mail files with the .txt extension. To open them in my e-mail client, I need to rename them to .eml
I have a directory with ~1M files and need to search for particular patterns. I know how to do it for all the files:
I have a directory with 1000+ files. In a text file, I have about 50 filenames, one per line. I’d like to delete all the files in the directory whose filenames don’t correspond with an entry on the list. What’s the best way to do this? I started a shell script, but couldn’t determine the proper command to determine in the filename is on the list. Thanks.
I’m wondering if anybody knows how to find a pattern and then move it to a different location.
I want to delete all the files in the current directory tree, except those in save. I ran this command:
I need to create thumbnails from multiple .png files and would like to do this using ImageMagicks convert utility. To recursively find all files that are not thumbnails themselves, I am using the following call (split into two lines to make it readable):