Match with grep when pattern contains "-" – unix.stackexchange.com 14:08 Posted by Unknown No Comments I wrote the following command in order to match $a with $b, but when the value includes "-", then I get an error. How can I avoid that? # a="-Xmx5324m" # b="-Xmx5324m" # # # echo "$a" | grep -Fxc ... from Hot Questions - Stack Exchange OnStackOverflow via Blogspot Share this Google Facebook Twitter More Digg Linkedin Stumbleupon Delicious Tumblr BufferApp Pocket Evernote Unknown Artikel TerkaitHow to balance the Zealot in a setting without resurrection? – rpg.stackexchange.comBash brackets [] with && || – unix.stackexchange.comWhich manufacturer produced this fan blade? – aviation.stackexchange.comWhy does wc <<<"$string" show a one-byte-longer length than printf "$string" | wc? – unix.stackexchange.comWhat is the largest eigenvalue of the following matrix. – math.stackexchange.comWhen does excessive collaboration become plagiarism? – cseducators.stackexchange.com
0 Comment to "Match with grep when pattern contains "-" – unix.stackexchange.com"
Post a Comment