Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anze3db/linux-tools
A bunch of useful scripts
https://github.com/anze3db/linux-tools
Last synced: 7 days ago
JSON representation
A bunch of useful scripts
- Host: GitHub
- URL: https://github.com/anze3db/linux-tools
- Owner: anze3db
- Created: 2013-01-19T01:35:07.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-03-12T09:08:22.000Z (almost 12 years ago)
- Last Synced: 2024-11-01T04:42:40.237Z (about 2 months ago)
- Language: Python
- Size: 118 KB
- Stars: 1
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Useful little linux tools
=========================grepr
-----export GREP_OPTIONS='--color=auto'
grep -rnC ${2:-3} "$1" *It's a simple `grep` wrapper that forces the grep utility to become recursive by default. The first parameter to grepr is the phrase you're searching for, while the optional second parameter specifies the number of lines above and below the search term to be shown.
rmr
---find . -name $1 | xargs rm
`rmr` is similar to grepr. It makes the rm utility recursive. It's useful when you have a bunch of files that end up with .orig in multiple subfolders. You would just write rmr *.orig to delete them all.sedre
-----
sed "s/$1/$2/g" $3
Sedre replaces all of the occurances of the first paramtere with the second parameter in the file specified by the third parameter.seddl
----sed "$1d" $2
Seddl removes a line from a file. You would write `sed 4 myfile` to remove the fourth line from myfile.screenshots
----------while true; do scrot "%Y-%m-%d_%H-%M_$2.png" & sleep $1; done
Takes a screenshot every few seconds and saves them in a file specified by the second parameter.