Take all properties from a pojo and enclose them inside a tag
$ grep private myPojo.java | cut -d' ' -f7 | sed -e 's$\(.*\);$<value>\1</value>$g'
Kill all processors which mactch a perticular user
$ ps ef | grep user123 | cut -d' ' -f2- | sed 's/^\s*//g' | cut -d' ' -f1 | grep "[0-9]" | xargs -n1 kill -9
- ps ef - report all processors (e-Write information for all the processors , f-Generate Full listing)
- grep user123 - print lines only have text 'user123'
- cut -d' ' -f2 - split line with ' ' (space) and take all after 2nd
- sed 's/^\s//g'* - replace all leading multiple spaces
- cut -d' ' -f1 - split line with ' ' (space) and take first column
- grep "[0-9]" - find lines with integer
- xargs -n1 kill -9 - for each line execute the command Kill -9