Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1.38 KB

README.md

File metadata and controls

45 lines (34 loc) · 1.38 KB

RANDOM KICKASS SCRIPTS

This is just gonna be a bunch of useful UNIX scripts.

Expect a lot of text processing, flat file smashing, log cruising, dragon slaying, killer scripts and one-liners. I'll also do some educational stuff.

Script Description
Word Refactor Simple refactoring script that replaces word strings, while cognizant of word endings
Qry git-ls-files / find / grep wrapper (surprisingly useful)
EOF fixes newline eof to match an original version, or set manually

Word Refactor

» echo  "its itsraining() [its] raining() rainginginging raining" | ./word_refactor.pl -m its=es -m raining=regnet
es itsraining() [es] regnet() rainginginging regnet

Qry

» qry -name ‘*.java’ -- -i ‘beanname’
  • rename to gfg
  • actually make it a git wrapper
  • optional use of any three
  • fix stupid xargs bug

EOF

All operations occur on the file in place

» eof append $file 
» eof chomp $file
» eof gir-revert @{upstream} $file