Read choice from user instantaneously

read -N1
Usage exaple cmd echo 'Sure to continue ??'; read -n1 choi; if [ "$choi" = 'y' ] || [ "$choi" = 'Y' ]; then echo -e '\nExecuting..'; else echo 'Aborted'; fi
Sample Output
echo 'Sure to continue ??';  read -n1 choi;  if [ "$choi" = 'y' ] || [ "$choi" = 'Y' ]; then echo -e '\nExecuting..'; else  echo 'Aborted';  fi

~:$ echo 'Sure to continue ??';  read -n1 choi;  if [ "$choi" = 'y' ] || [ "$choi" = 'Y' ]; then echo -e '\nExecuting..'; else  echo 'Aborted';  fi
Sure to continue ??
y
Executing..
~:$         

6
By: totti
2013-10-10 10:09:43

1 Alternatives + Submit Alt

What Others Think

Sometimes it's useful to add a timeout, too: Give the user five seconds to change their mind. read -t 5 -N1 -p "Abort? [y/N] " choice
flatcap · 528 weeks and 5 days ago
Amazing! This blog looks just like my old one! It's on a completely different subject but it has pretty much the same layout and design. Wonderful choice of colors! Pug Puppies for Sale Near Me PUG PUPPY FOR SALE NEAR ME PUG PUPPIES FOR SALE pug puppies for sale in kentucky Pug Puppies for Sale Under $500 Near Me pug puppies for sale in texas
rahimhh21 · 65 weeks and 6 days ago
Pug Puppies for Sale Near Me pugs puppies for sale teacup pugs for sale pug puppies for sale by owner pug puppies ohio PUG PUPPY FOR SALE NEAR ME PUG PUPPIES FOR SALE pug puppies for sale in kentucky Pug Puppies for Sale Under $500 Near Me pug puppies for sale in texas pug puppies for sale $200 pugs for sale near me under $500 pugs for sale under $400 near me pugs for sale near me puppies for sale near me under $500 pug puppies for sale under $1,000 near me pug for sale pug puppies for sale under $300 Brindle Pug Pitbull Pug Mix Pugs for sale cheap Cheap pug affordable pug puppies for sale near me black pugs for sale near me White Pugs for sale pug dog for sale free pug puppies pug puppies for sale in my area mn pug breeders pug puppies indiana pugs for sale michigan PUG PUPPY ADOPTION Pug puppies for sale Pug puppies for sale near me Pug puppies near me Pug Puppies for Sale Under $500 Near Me Cute Pug Puppies Black pug puppies Black pug puppies for sale pug puppies for adoption black pug puppies for sale near me chihuahua pug mix puppies how much is a pug puppy teacup pug puppies baby pug puppies baby pug puppies for sale pictures of pug puppies pug puppies for sale in Ohio pug puppies price pug mix puppies teacup pug puppies for sale best food for pug puppy newborn pug puppies pug puppies craigslist pug puppies for sale craigslist adorable pug puppies how much does a pug puppy cost Pitbull pug mix puppies pug pit mix puppy pug puppies for sale $200 pug puppies for sale in NJ Pug puppies for sale in Wisconsin pug puppy cost pug puppy food royal canin pug puppy royal canin pug puppy food fawn pug puppy pug puppies for sale florida pug puppies for sale in Indiana pug puppies for sale in KY pug puppies for sale in NC pug dog puppy AKC Registered Pug Puppies For sale cheap pug puppies for sale near me cheap pug puppies for sale in California cheap pug puppies for sale in nj Black Pug Puppies for sale pugs puppies for sale
Perfecthomepugs · 56 weeks and 5 days ago
SENSA838 selaku situs agen slot online terbaik no 1 di Indonesia akan selalu menyediakan layanan yang terbaik dan bisa memuaskan para member setia kami. Diantara nya seperti memberikan informasi mengenai daftar provider slot gacor dan terpopuler saat ini. SENSA838 Bukan hanya sekedar memberikan statement sebagai situs tergacor 2022 saat ini, kami membuktikan dengan memberikan jaminan garansi gacor 100% atau biasa di sebut garansi kekalahan 100%. Yang di mana apabila member baru deposit dan mengalami kekalahan pertamanya maka member berhak mengklaim garansi kekalahan 100% sesuai dengan syarat dan ketentuan yang berlaku. Menarik kan ? Main slot kalah dan bisa klaim kembali saldo nya. Promo ini hanya berlaku untuk member yang baru melakukan deposit untuk pertama kali nya. Cara klaim nya juga sangat mudah sekali. Member hanya perlu melapor ke CS Livechat SENSA838 yang bertugas 24 jam dimana fitur klaim garansi nya terdapat di bagian pojok kanan bawah di halaman situs kami.
loanabilly · 42 weeks ago
We are overjoyed to announce that our healthy litter of the prettiest Pug puppies has arrived. These delightfully funky packages need five-star homes. Puppies who are reared at home and have great socialisation are used to hearing youngsters playing and other people's voices. Puppies get regular deworming, vaccines, veterinary exams, and microchipping. Puppies are now ready to move on to their new homes for all time. Learn More here: PUG PUPPY ADOPTION Pug puppies for sale PUG PUPPIES FOR SALE NEAR ME PUG PUPPIES NEAR ME PUG PUPPIES FOR SALE UNDER 500 NEAR ME CUTE PUG PUPPIES BLACK PUG PUPPIES BLACK PUG PUPPIES FOR SALE PUG PUPPIES FOR ADOPTION BLACK PUG PUPPIES FOR SALE NEAR ME CHIHUAHUA PUG MIX PUPPIES TEACUP PUG PUPPIES HOW MUCH IS A PUG PUPPY BABY PUG PUPPIES PICTURES OF PUG PUPPIES PUG PUPPIES FOR SALE IN OHIO PUG PUPPIES FOR SALE IN PA PUG PUPPIES PRICE PUG MIX PUPPIES TEACUP PUG PUPPIES FOR SALE BABY PUG PUPPIES FOR SALE BEST FOOD FOR PUG PUPPY NEWBORN PUG PUPPIES PUG PUPPIES CRAIGSLIST PUG PUPPIES FOR SALE CRAIGSLIST WHITE PUG PUPPIES PUG PUPPIES FOR SALE IN MICHIGAN PUG PUPPIES FOR SALE UNDER 500 ADORABLE PUG PUPPIES BRINDLE PUG PUPPY HOW MUCH DOES A PUG PUPPY COST PITBULL PUG MIX PUPPIES PUGS FOR SALE NEAR ME PUG PUPPIES FOR SALE 200 PUG PUPPIES FOR SALE IN NJ PUG PUPPIES FOR SALE IN WISCONSIN PUG PUPPIES MICHIGAN PUG PUPPY COST MERLE PUG PUPPY FOR ADOPTION BEST PUG PUPPY FOOD ROYAL CANIN PUG PUPPY FOOD FAWN PUG PUPPY PUG PUPPIES FOR SALE FLORIDA PUG PUPPIES FOR SALE IN INDIANA PUG PUPPIES FOR SALE IN KY PUG PUPPIES FOR SALE IN NC PUG PUPPIES FOR SALE IN TEXAS PUG PUPPIES FOR SALE MN PUG DOG PUPPY AKC REGISTERED PUG PUPPIES FOR SALE PUG ALL BLACK CHEAP PUG PUPPIES FOR SALE NEAR ME PUGS PUPPIES FOR SALE CHEAP PUG PUPPIES FOR SALE IN CALIFORNIA MINIATURE PUG PUPPIES FOR SALE NEAR ME MINIATURE PUG PUPPIES FOR SALE CHEAP PUG PUPPIES FOR SALE IN NJ KNOWN FACTS ABOUT PUG PUPPIES ADOPT PUG PUPPIS RECUE A PUG PUPPY PERFECT HOUSE OF PUGS PUG PUPPIES INSTAGRAM PINTEREST QUORA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA
pugpuppies95 · 18 weeks and 5 days ago
Iboga for sale Best Place To Buy Weed Online legit online dispensary shipping worldwide buy research chemicals online usa where to buy acetyl fentanyl electric golf carts for sale Dispensaries that ship nationwide Dispensary that ship all states online dispensary shipping worldwide MINI GOLDENDOODLES UNDER $1000 yeezy moonrock strain Iboga for sale Best Place To Buy Weed Online legit online dispensary shipping worldwide muha-meds agent orange MINI GOLDENDOODLES UNDER $1000 yeezy moonrock strain Iboga for sale legit online dispensary shipping worldwide Best Place To Buy Weed Online muha-meds agent orange aronia berry Best Place To Buy Weed Online kanha gummies aronia berry Dispensaries that ship nationwide Dispensary that ship all states online dispensary shipping worldwide cloud 9 k2 spice spray wonda weed wonda chocolates jack Herer wonka weed dames mushroom gummies legit online dispensary shipping worldwide green crack strain diablo k2 spray on paper Best Place To Buy Weed Online diablo k2 spray on paper fruity pebbles moon rocks distillate delta 8 Iboga for sale iboga root bark for sale ibogaine hcl iboga ta extract ayahuasca powder buy ibogaine capsules iboga for sale australia ayahuasca buy india K2 for sale/a> cbd bath salts/a> herbal incense for sale/a> ibogaine hcl iboga ta extract ayahuasca powder cavapoos Germany cavapoos for sale ohio cavapoo puppies georgia sable puppies rudy dog black cavapoo puppies cavapoo puppies for sale ny ruby cavapoo sable cavapoo apricot puppies maltipoo puppies for sale in nc/ Aussiedoodle puppies for sale in California mini goldendoodles under 1000/ golden retriever puppies for sale los angeles/ teacup pomsky puppies for sale/ cavapoo puppies nc/ MINI GOLDENDOODLES UNDER $1000 maltipoo puppies for sale maryland Cream Maltipoo aussiedoodle puppies for sale in california Apricot Maltipoo F1B goldendoodle teacup pomsky puppies near me teacup pomsky for sale australia https://liquidk2spray.com/product/flakka-for-sale-online/ teacup-pomsky for sale in utah aussiedoodles for sale in michigan aussiedoodles for sale kentucky pomsky puppies for sale Teacup pomsky puppies for sale standard F1B GOLDENDOODLE goldendoodle puppies for sale Nebraska Thanks for sharing this information. I really like your blog post very much. Best Place To Buy Weed Online kush liquid incense-5ml cavapoos for sale ohio magic truffles valhalla for sale aronia berryhttps://liquidk2spray.com/product/magic-truffles-valhalla-for-sale/ golden teacher mushrooms dried south african transkei valley of the sun medical dispensary magic truffles usa amazonian magic mushroom allegany medical dispensary fruity pebbles moonrock ice capz weed fruity pebbles moonrock ice capz weed peyote cookies strain sunnyside dispensary double vision truffles cavapoos for sale ohio magic truffles valhalla for sale crown royale strain strawberry strain yeezy moonrock strain Iboga for sale kurupt moonrock Best Place To Buy Weed Online super lemon haze cartridge ak 47 strain green crack strain diablo k2 spray on paper Best Place To Buy Weed Online diablo k2 spray on paper fruity pebbles moon rocks grape gas strain psychedelic mushroom chocolate bars kurupt moonrock Botox for sale online Juvederm Voluma Lidocaine 2x1ml buy dermal fillers online Legit online dispensary shipping worldwide muha-meds agent orange most trusted online dispensary ship all 50 states legit online dispensary shipping worldwide 2022 legit online dispensary shipping worldwide 2023 legit online dispensary shipping worldwide 2022 I really like your blog post very much green ribbon weed Alien Kush weed dispensary that ship out of states strawberry strain kurupt moonrock diablo k2 spray on paper cartridges kurupt moonrock online godfather og strain ak47 dank cartridges buy gorilla glue online Pineapple Express buy thc wax online http://zunal.com/webquest.php?w=776382">legit online dispensary shipping worldwide buy cannabis oil online ak 47 strain buy weed online worldwide purple punch strain amnesia haze strain gorilla glue 4 strain banana og strain super sour diesel buy moonrock online green crack strain blue northern lights strain muha-meds agent orange Buy weed Online weed for sale online no id legit online dispensary shipping worldwide legit online dispensary shipping worldwide legit online dispensary shipping worldwide 2022 legit online dispensary shipping worldwide Thanks for sharing https://community.oracle.com/tech/developers/discussion/4508374/legit-online-dispensary-shipping-worldwide-2022-legit-online-dispensary-shipping-worldwide-2021/p1?new=1 Buy weed online buy yeezy moonrock I really like your blog post very much. I will reccommend friends here legit online dispensary shipping worldwide Best Place To Buy Weed Online most trusted online dispensary ship all 50 states Thanks for sharing this information. I really like your blog post very much. legit online dispensary shipping worldwide legit online dispensary shipping worldwide legit online dispensary shipping worldwide 2022 order birthday cake strain can you buy medical marijuana online best recreational dispensary near me best recreational dispensary near me Marijuana for Sale Colorado new york recreational dispensary near me ny recreational dispensary near me yeezy moonrock strain buy charge extreme 1g online most trusted online dispensary ship all 50 states , recreational dispensary near me legit online dispensary shipping worldwide legit online dispensaries ship all 50 states , most trusted online dispensary ship all 50 states legit online dispensary shipping worldwide legit online dispensary shipping worldwide I will reccommend friends here recreational dispensary Buy luxury pets online buy marijuana edibles online wanda chocolate bars pure cbd oil for sale Thanks for sharing this information. I really like your blog post very much. buy bourbon whiskey online macallan rare cask bourbon whiskey I really like your blog post very much. macallan whisky 18 macallan rare cask black macallan for sale macallan prices order macallan online Thanks for sharing this information. buy marijuana online Telegram recreational dispensary near me buy weed online Thanks for sharing this information. I really like your blog post very much. buy weed online switzerland legit online dispensary shipping worldwide buy weed online uk buy weed online telegram Best Telegram weed Plug buy weed online uk buy weed online uk telegram Telegram Weed cloud 9 liquid k2 for sale push dispo Thanks for sharing this information. I really like your blog post very much. marijuana for sale online buy weed online uk macallanwhiskey shop macallan rare cask buy weed online weed for sale online Liquid k2 spray Buy weed online most trusted online dispensary ship all 50 states legit online dispensary shipping worldwide legit online dispensaries ship all 50 states most trusted online dispensary ship all 50 states legit online dispensary shipping worldwide legit online dispensary shipping worldwide blue dream weed strain canada dispensaries that ship to usa - legit online dispensary shipping worldwide credit card Marijuana for Sale Colorado Buy weed online South Korea legit online dispensary shipping worldwide legit online dispensary shipping worldwide legit online dispensaries shipall 50 states paypal fluorexetamine buy charge bath salts buy no bull bath salts online mushroom gummies herbal incense for sale code black herbal incense hih tzu for sale ma maltese shih tzu hih tzu for sale in houston texas hih tzu for sale in michigan hih tzu for sale atlanta shih tzu puppies shih tzu puppies for sale in tn shih tzu puppies for sale in ohio shih tzu dog shih tzu near me shih tzu puppies for sale in ohio shih tzu for sale phoenix weed ireland legal magic mushroom edibles usa https://cutiesparpets.com/product/cavapoos-for-sale-ohio/ wherecanibuyibogaineonline, https://cutiesparpets.com/product/cavapoo-puppies-georgia/ https://cutiesparpets.com/product/sable-puppies/ https://cutiesparpets.com/product/rudy-dog/ https://cutiesparpets.com/product/black-cavapoo-puppies/ https://cutiesparpets.com/product/cavapoo-puppies-for-sale-ny/ https://cutiesparpets.com/product/ruby-cavapoo/ https://cutiesparpets.com/product/sable-cavapoo/ https://cutiesparpets.com/product/apricot-puppies/ https://cutiesparpets.com/product/cream-maltipoo-puppies/ https://cutiesparpets.com/product/black-and-tan-maltipoo/ https://cutiesparpets.com/product/maltipoo-puppies-for-sale-near-me/ https://cutiesparpets.com/product-category/aussiedoodle-puppies-for-sale-in-california/ https://cutiesparpets.com/product/maltipoo-puppies-for-sale-maryland/ https://cutiesparpets.com/product/cream-maltipoo/ https://cutiesparpets.com/product/apricot-maltipoo/ https://cutiesparpets.com/product/cheap-maltipoo-puppies-for-adoption/ https://cutiesparpets.com/product/f1b-goldendoodle/ https://cutiesparpets.com/product/apricot-maltipoo-for-sale-near-me/ https://cutiesparpets.com/teacup-pomsky-puppies-for-sale/ https://cutiesparpets.com/product/standard-f1b-goldendoodle/ https://cutiesparpets.com/product/goldendoodle-puppies-for-sale-nebraska/ https://cutiesparpets.com/product/cavapoo-puppies-for-sale-ny/ punch-bars oneup mushroom bars mushroom bars goldendoodle puppies Fruit punch Fruit punch suck for sale black cherry strain tropical punch strain herbal incense for sale flakka lunar wave bath salts for sale vanilla sky bath salts synthetic bath salts kick 1g bath salts green crack green crack catridge green crack delta 8 delta 9 gummies urb delta 9 gummies bournon for sale buffalo trace bourbon buffalo trace buffalo trace for sale laphroaig scotch for sale eh taylor amaranth yellowstone bourbon whiskey blantons bourbon for sale bourbon whiskey in usa blantons single barrel bourbon- macallan private eye- bourbon online store pappy van winkle bourbon for sale pappy van winkle bourbon for sale the macallan 25 year old sherry oak buy kentucky vintage bourbon 750ml onlinee the macallan harmony collection rich cacao 750ml the macallan double cask 15 years old the macallan 18 year old double cask single malt scotch whisky macallan a night on earth macallan 25 year old sherry oak stores eagle rare kentucky straight bourbon whiskey Eagle rare bourbon whiskey Macallan whiskey for sale william larue weller for sale four roses buffalo bourbon whiskey buffalo Trace pre roll weed jeeter pre roll
credible · 16 weeks and 6 days ago
You have really shared an informative and interesting post. SMM Panel
SMMWORLD · 15 weeks and 6 days ago
Acquista Ossicodone ItaliaAcquista Ossicodone Italia  Acquista cocaina crack in linea cocaina a squame di pesce italia Acquista cocaina boliviana in linea Acquista Saxenda in Linea Acquista fentermina in linea italia Acquista Ozempic In Linea Acquista Stilnox in linea italia Acquista Ambien in linea italia Acquista Quaaludes in linea Acquista Metaqualone In Linea Acquista subutex in linea italia Acquista Adderall In linea italia Acquista Ossicodone 10 mg Sandoz italia Acquista Laudano droga online Acquista ossicodone pillole Acquista desoxyn in linea italia Acquista buprenorfina in linea italia Acquista ritalin in linea italia Acquista dilaudid in linea italia Acquista ritalin in linea italia Acquista Ossicodone 30 mg Sandoz italia Acquista fentanil in linea italia Acquista Ossicodone Italia Acquista Ossicodone Italia Acquista la morfina iniettabile Italia Acquista Ossicodone 80 mg Sandoz italia Acquista Xanax in linea italia Acquista strisce di Suboxone italia Acquista vyvanse in linea italia Acquista oxycontin in linea italia Acquista Percocet in linea italia Acquista ossicodone pillole in linea italia Acquista morfina in linea italia Acquista ossicodone in linea italia Buy wood online Buy wood pellets online  dried-pods for sale  opium-pods  for sale dried-papaver-pods  dried poppy pods in USA free dried podsdried poppy pods   körkort sverigekörkort sverige köp körkort köp falsk pass BESTÄLLA KÖRKORT ONLINE buy dried poppy pods online buy opium pods buy opium pods Buy dried poppies online dried poppy pods unwashed poppy pods for sale Dried poppy pods near me Poppy seed tea dried poppy pods for craft wholesale dried flowers USA Giant dried poppy heads dried poppy pods dried poppy pods   Führerschein kaufen ohne prüfungkaufen MPU GutachtenKaufen bootsführerschein onlineSchweizer Führerschein kaufen führerschein polen kaufen ohne prüfung FÜHRERSCHEIN ONLINE KAUFEN https://eu-fuhrerscheinlegal.com/product/kaufen-deutschland-fuhrerschein/ Buy wood online Buy wood pellets online
donperi1 · 10 weeks and 6 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. 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.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: