Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #/bin/bash
- out=$(cat cache.manifest | egrep -i --color 'VERSION:' | awk '{ print $2}')
- pat=$(cat cache.manifest | egrep -i --color 'VERSION:')
- newv=$(expr $out + 1)
- repl='#VERSION: '$newv''
- echo $pat
- echo $repl
- sed -i "s/$pat/$repl/g" cache.manifest
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement