Welcome To Snipplr


Everyone's Recent Bash Snippets Tagged file



« Prev 1 2
This example shows you how to restrict to a specific file or multiple files. Add the following code block and edit the file name/s according to yuor needs.
0 3767 posted 8 years ago by apphp-snippets
This is a simple script which downloads the latest "LoRa Server" files from the repository of the user brocaar in GitHub. Just make the file executable with a "chmod +x script_installer.sh" and run it, the program will give you the latest releases o...
0 3228 posted 9 years ago by SoroushBlaster
Create a compressed TAR archive preserving permissions
0 3475 posted 9 years ago by rm1984
Replace a string with another one in many files
0 3864 posted 9 years ago by rm1984
Generate a random file with random contents but with a fixed size
0 3756 posted 9 years ago by rm1984
Problem You want to recursively change all of the file permissions only on folders & subfolders in a directory, but not the files (or vice-versa: you want to change the permissions on files only, not folders).
0 2426 posted 12 years ago by nkm
iconv -l to show all available encodes, replace xxx with you file ext
0 1369 posted 13 years ago by rabc
Restore a deleted file within the git repo
1 1421 posted 14 years ago by Glycerine
mirrors a tree without files on local file system
0 936 posted 14 years ago by sq1labs
Modified a little bit to make it easier to change the location of the recycle bin.
0 1622 posted 14 years ago by mkornatz
0 1228 posted 14 years ago by mkornatz
Command to transfer files between servers using the command line.
0 1573 posted 14 years ago by frigga
0 1127 posted 14 years ago by manuelstofer
currently formatted for use on mediatemple server. replace file path with absolute path of resources.
0 1375 posted 14 years ago by dan_hoerr
0 1356 posted 14 years ago by dnkysp
-print0 and -0 are used to allow for spaces and other wacky chars in file names
0 1232 posted 15 years ago by jfine
Lowercase .JPG extension
0 1256 posted 15 years ago by vigoncas
Used to transfer files with low overhead.
0 931 posted 16 years ago by mushookies
get the list of dirs process that list to cmd expressions run the file with cmd exprssns
0 1021 posted 16 years ago by rowntreerob
Allows you to send out a email listing all files over 10MB.
0 1189 posted 16 years ago by bhubbard
Reads a linux file, line by line
2 1534 posted 16 years ago by sanjivarunsahayamhotmailcom
count .htm or .html files in the directory. use ls and grep command.
1 1343 posted 17 years ago by kyokutyo
Running this command will append a line with given values to a file you specify. Replace words between < and > with the values you desire.
1 1887 posted 18 years ago by engel
A one-liner to remove any temporary files modified over one day ago. Removes files from /tmp/ Run without the '-exec rm {} \;' part to check that it is matching the right set of files - this can be dangerous if run by root! If you want to remove fi...
1 1574 posted 18 years ago by wolfie
« Prev 1 2