Comments on: 8 Mysterious Uses of (!) Operator in Linux Commands https://www.tecmint.com/logical-not-operator-linux-commands/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Thu, 13 Jul 2023 23:01:33 +0000 hourly 1 By: sedlav https://www.tecmint.com/logical-not-operator-linux-commands/comment-page-1/#comment-1490558 Fri, 14 May 2021 14:05:53 +0000 http://www.tecmint.com/?p=13425#comment-1490558 If you are using BASH in order to expose the use of !, then you must, at least, clarify that BASH is part of the GNU project not of Linux Kernel, please don’t spread misconception.

]]>
By: Amit Kumar Tripathi https://www.tecmint.com/logical-not-operator-linux-commands/comment-page-1/#comment-1004215 Tue, 12 Jun 2018 10:37:26 +0000 http://www.tecmint.com/?p=13425#comment-1004215 Simply Awesome

]]>
By: Avishek Kumar https://www.tecmint.com/logical-not-operator-linux-commands/comment-page-1/#comment-576509 Wed, 20 May 2015 05:57:20 +0000 http://www.tecmint.com/?p=13425#comment-576509 In reply to Stephen.

Dear Stephen,
Thanks for the wonderful piece of Information. Keep connected and keep us aware of such context.

]]>
By: Avishek Kumar https://www.tecmint.com/logical-not-operator-linux-commands/comment-page-1/#comment-576506 Wed, 20 May 2015 05:55:54 +0000 http://www.tecmint.com/?p=13425#comment-576506 In reply to Edgar Allen.

Dear Edgar,
Your Suggestion is taken into account.
Thanks for your feedback.

]]>
By: Edgar Allen https://www.tecmint.com/logical-not-operator-linux-commands/comment-page-1/#comment-576147 Tue, 19 May 2015 17:00:06 +0000 http://www.tecmint.com/?p=13425#comment-576147 You might also mention !?

It finds the last command with its’ string argument. For example, if…
1013 grep tornado /usr/share/dict/words
1014 grep hurricane /usr/share/dict/words
1015 wc -l /usr/share/dict/words

are all in the history then !?torn will grep for tornado again where !torn would search in vain for a command starting with torn.

And `wc !?torn?:2` works to select argument two from the command containing tornado and run `wc` on it.

]]>