Welcome To Snipplr
Everyone's Recent Snippets Tagged Bash
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Usage: setowner james
Will set all files in current directory and all subdirectories to owner james:james
0
429
posted 13 years ago by renekreijveld
Taken from http://ubuntuforums.org/showthread.php?t=255556
0
718
posted 13 years ago by sergeygerasimov
Handy, especially when you have large logs and you want to see what just happened
0
759
posted 13 years ago by bionic
Found on the Ubuntu forum: http://ubuntuforums.org/showthread.php?t=1355021
Renames files to 0001.jpg, 0002,jpg etc
You can insert a prefix here: "prefix-$j.jpg"
0
726
posted 13 years ago by Carolyne
Simple bash script that sorts a series of numeric parameters using a temporary file and sort command.
0
653
posted 13 years ago by Hexx
Dos formas de usar la función 'sleep' de Python.
Two ways to use the 'sleep' function in Python.
0
594
posted 13 years ago by eliluminado
Script will extract all flv's or other videos specified to mp3.
You can change *.flv to prob. any other extension.
Tested on *.mp4 and *.flv
0
602
posted 13 years ago by dogrizz
From:
http://stackoverflow.com/questions/1169927/using-sed-and-grep-to-search-and-replace
0
772
posted 14 years ago by edeustace
This crude script will export individual icons from an SVG file when using a single canvas workflow, especially for Tango Desktop style icons.
0
528
posted 14 years ago by Dracos
This snippets leaves out all other files like .png, .jpg, and everything else that appears in a normal music library (artwork, images, etc. ...) and only calculates the size of music (.mp3) files
0
718
posted 14 years ago by limepix
1. Create a proxy on 8080 to foreword traffic to your server
2. Install Foxyproxy and use options 127.0.0.1:8080 and SOCKS5 enabled
3. Profit
1
748
posted 14 years ago by benpjohnson
Eu ouço podcasts no mp3 do carro.
Problema: Se quero adiantar 10 minutos, preciso ficar 3 minutos com o dedo pressionando o >> :(
Solução: Dividir podcasts com mais de 40Mb em trechos de 5 minutos.
A linha abaixo acha esses arquivos no cartÃ...
0
538
posted 14 years ago by gpupo
I use this bash oneliner all the time to recursively search for a string in large codebases. I use it when searching for mentions of tables, databases, function definitions, function calls etcetera.\r\n\r\nIt searches through a number of file types (...
1
887
posted 14 years ago by niels_bom