I have below string:
"-owner -date 2017-10-10 -priority 20 -value xyz -outputLocation "
I want to ignore -priority 20 and -outputLocation options while parsing this parameters in bash script. any trick to do this using sed/awk/grep ?
note1: parameters don't have specific order. note2: -priority can be a number between 0-100 note3: -outputLocation . dir_name changes always with each run