Welcome To Snipplr
Everyone's Recent Bash Snippets Tagged directory
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
« Prev 1 Next »
Recursively find and list the last modified files in a directory
0
1073
posted 7 years ago by rm1984
Modified a little bit to make it easier to change the location of the recycle bin.
0
763
posted 12 years ago by mkornatz
currently formatted for use on mediatemple server. replace file path with absolute path of resources.
0
601
posted 13 years ago by dan_hoerr
-print0 and -0 are used to allow for spaces and other wacky chars in directory names
0
468
posted 13 years ago by jfine
Expects all files to be in the current directory; does not recurse into subdirectories. Replace "TEXTTOREMOVE" with the text you wish to remove from the filename. Replace *.csv with a search term appropriate for your situation.
0
842
posted 13 years ago by powerthru
Execute on the command line. Assumes all files are in the current directory; does not recurse into subdirectories. Replace "*.html" with correct search term for your situation; replace "FS-" with the leading text you wish to remove. This example remo...
0
687
posted 13 years ago by powerthru
Bash
Bash (Command Line): Loop through directories in specified location, replacing directories in current directory (with backup)
This command line aims at moving directories from a target location to the present working directory (pwd), backing the pwd directories up as it encounters them.
The script works by:
1. Iterating through the contents of the target directory (us...
0
726
posted 13 years ago by karlhorky
here's a script, mod_files.sh, in ext/session for creating directory
tree with depth X for sessions. As it stands, it's pretty poorly
documented and very basic. I * got exceptionally bored and rewrote most
of it, the patch is attached. It runs...
0
870
posted 14 years ago by nkm
When using `ln` to create a link in a different directory, the semantics of creating hard and symbolic links differ. That is because a hard link contains a direct reference to its target's data, while a symbolic link is just a string containing a (p...
1
633
posted 14 years ago by deepsoul
Flash has a weird cache mechanism, this makes sure that the browser isn't caching any data.
0
829
posted 14 years ago by iloveitaly
This command will list every file under /my/directory larger than 250kB and sort it largest to smallest.
13
723
posted 17 years ago by SunnyJim
« Prev 1 Next »