Welcome To Snipplr
Everyone's Recent Bash Snippets Tagged file
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
997
posted 6 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
709
posted 7 years ago by SoroushBlaster
Generate a random file with random contents but with a fixed size
0
847
posted 7 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
743
posted 10 years ago by nkm
iconv -l to show all available encodes, replace xxx with you file ext
0
670
posted 11 years ago by rabc
Modified a little bit to make it easier to change the location of the recycle bin.
0
804
posted 12 years ago by mkornatz
Command to transfer files between servers using the command line.
0
697
posted 13 years ago by frigga
currently formatted for use on mediatemple server. replace file path with absolute path of resources.
0
637
posted 13 years ago by dan_hoerr
-print0 and -0 are used to allow for spaces and other wacky chars in file names
0
571
posted 13 years ago by jfine
get the list of dirs
process that list to cmd expressions
run the file with cmd exprssns
0
474
posted 15 years ago by rowntreerob
Writes 20 blocks of 1024 bytes to "filename" (equals a filesize of 20KB)
0
566
posted 15 years ago by dertimbo
count .htm or .html files in the directory.
use ls and grep command.
1
593
posted 16 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
905
posted 16 years ago by engel