Advertising
- Nick P
- Wednesday, February 6th, 2008 at 7:18:07pm UTC
- #!/bin/sh
- #
- # This is a wrapper around the -identify functionality.
- # It is supposed to escape the output properly, so it can be easily
- # used in shellscripts by 'eval'ing the output of this script.
- #
- # Written by Tobias Diedrich <[email protected]>
- # Licensed under GNU GPL.
- if [ -z "$1" ]; then
- echo "Usage: midentify <file> [<file> ...]"
- exit 1
- fi
- sed -ne '/^ID_/ {
- s/[]()|&;<>`'"'"'\\!$" []/\\&/g;p
- }'
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.