|
|
@ -1,19 +1,15 @@ |
|
|
|
#!/bin/bash |
|
|
|
|
|
|
|
rmclassesrecursively() { |
|
|
|
rm -vf $(find . | grep -E '\.class$') |
|
|
|
} |
|
|
|
|
|
|
|
rmdotoanddotdrecursively() { |
|
|
|
function heck_rm_o_and_d_files_recurse() { |
|
|
|
rm -v $(find . | grep -E '\.o$|\.d$') |
|
|
|
} |
|
|
|
|
|
|
|
function realpath() { |
|
|
|
function heck_realpath() { |
|
|
|
python3 -c 'import sys, os; print(os.path.realpath(sys.argv[1]))' $1 |
|
|
|
} |
|
|
|
|
|
|
|
# Print filenames matching grep $1 |
|
|
|
function fmatch() { |
|
|
|
function heck_fmatch() { |
|
|
|
grep -ri $1 * | perl -pe 's/\:.*?\n/\n/g' | sort -u |
|
|
|
} |
|
|
|
|
|
|
|