I\'ve to apply the Unix command sed on a string (can contain #, !, /, ?, &, @ and all other characters) which can contains all types of
With the help of Jim Lewis, I finally did a test before using sed :
if [ `echo $1 | grep '|'` ]; then grep ".*$1.*:" $DB_FILE | sed "s@^.*$1*.*\(:\)@@ " else grep ".*$1.*:" $DB_FILE | sed "s|^.*$1*.*\(:\)|| " fi
Thanks for help