Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- dpkg -c "$(pwd)/*midori*.deb" | awk \
- '{if ($6 == "./") { print "/."; } \
- else if (substr($6, length($6), 1) == "/") \
- {print substr($6, 2, length($6) - 2); } \
- else { print substr($6, 2, length($6) - 1);}}' \
- > /var/lib/dpkg/info/midori.list
Advertisement
Add Comment
Please, Sign In to add comment