dmesg -tW -l notice | gawk '{ if ($4 == "Attached") { system("echo New device attached | espeak")} } dmesg -t: no timestamp -W: follow new messages -l: log-level notice gawk if the fourth word is "Attached" echo a sentence through espeak -1 By: BigZ 2020-09-06 08:18:26 dmesggawkaudioespeakarch linux 3Submit alternativeReport as maliciousReport as a duplicateSubmit An Alternative https://russiansbrides.com/ ArdellaPolinski · 1 day ago If you are looking for the best academic site for your help?

commandlinefu.com is the place to record those command-line gems that you return to again and again.

For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

Subscribe to the feed for: commandlinefu.com © 2018 Dan's Tools | FAQs | API | Widget | Privacy

Related Articles