Guest User

Untitled

a guest
May 28th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. !#!/bin/bash
  2.  
  3. grep -lir --include \*.java -e 'implements java.io.Serializable' -e 'implements Serializable' . | xargs grep -Lir -e 'serialVersionUID' | while read -r line ; do awk '/implements (java.io.)?Serializable/{print;print "\n\t\nprivate static final long serialVersionUID = 1L;";next}1' $line > temp.java && mv temp.java $line ; done
Add Comment
Please, Sign In to add comment