Heck's structured cross-platform bash setup
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
362 B

1 year ago
  1. #!/bin/bash
  2. rmclassesrecursively() {
  3. rm -vf $(find . | grep -E '\.class$')
  4. }
  5. rmdotoanddotdrecursively() {
  6. rm -v $(find . | grep -E '\.o$|\.d$')
  7. }
  8. function realpath() {
  9. python3 -c 'import sys, os; print(os.path.realpath(sys.argv[1]))' $1
  10. }
  11. # Print filenames matching grep $1
  12. function fmatch() {
  13. grep -ri $1 * | perl -pe 's/\:.*?\n/\n/g' | sort -u
  14. }