Launch a game, like Tetris, when apt-get installing an app larger than 50 Megabytes

APP=wine; if [ $(sudo apt-get --print-uris -y install $APP | sed -ne 's/^After this operation, \([0-9]\{1,\}\).*MB.*/\1/p') -gt 50 ]; then gnometris 2>/dev/null & sudo apt-get install $APP; else sudo apt-get install $APP; fi
Change the APP variable's value to whatever you want to install. Depending on how fast your machine is, you'll want to adjust the value 50 to something else. You might also want to play a different game than Gnometris - just make sure it's a GUI game.

2
By: rkulla
2010-04-18 19:32:26

What Others Think

It's a really great idea, how do I do it, and my thoughts are alive right now, thank you. basketball legends 2020
marvinathom · 120 weeks and 6 days ago
Programmeringen er god for alle. fordi det er meget vigtigt at lave en app og et websted og en anden type. Jeg vil give god information om dette, men før dette skal du prøve casino uden rofus. Det er meget vigtigt for dig, Ved hjælp af dette kan du kende god information om casino
nicolasconner · 84 weeks ago
I know heaps of PC games, I was playing them from before 2000, when I was ten years old, my #1 game was warcraft clearly. In a little while im playing sport slots game, playing only for cash since I dont have work.
jackkok · 68 weeks and 4 days ago
I have been looking for good casinos online in SLovenia for a long time to bet my money and not worry that it will burn out. Of course, I don't always win either, but I never stay in the red. Choose a top casino for yourself, and then you will win. I only play slots.
profesor1 · 64 weeks and 4 days ago
It's a fantastic notion, but now I'll tell you about the Top 5 Casino Games for the year 2021. You could use this blog as a useful source for more information. Based on the preceding recommendation, you already know the best game categories. As a result, whittling down your selections to select a game will be simple. A second search can be the way to go if you're having problems finding the proper game inside a category.
FabriceFluet · 57 weeks and 5 days ago
High jump with Mario in the famous game super mario bros. The current popular Mario game episodes.Experience challenging game episodes in super mario bros game. Mario is a well-known game featuring a variety of game setup genres. Mario, the game's primary character, is a humorous and fearless person. Super mario bros is one of the most prominent trending game series. In the game there are many different levels, in each level the obstacles are more and more dangerous. If you want to get to the final level of Super Mario Bros., you'll need a lot of experience. Arrow keys or WASD are used to control the game.
StephenBarrett · 50 weeks and 3 days ago
Gambling is a modern way to win money. On the Internet you can find many different games of chance and different online casino sites. I want to share with you information about online casinos in New Zealand. This is how you will learn how to make the right choice of online casino. And also you will find useful information about different gambling.
RafeBaldwin · 49 weeks and 5 days ago
Are any of you interested in eSports betting? The thing is, I have a great site where I can watch the results and get the latest news from the eSports world. I found https://wewatch.gg/ where I was told that I can bet. Has anyone tried betting here? How quickly can I receive my winnings into my bank account?
MichaelWood · 49 weeks and 2 days ago
[url=https://wewatch.gg/]https://wewatch.gg/[/url]
MichaelWood · 49 weeks and 2 days ago
https://wewatch.gg/
MichaelWood · 49 weeks and 2 days ago
Nice find but i rather play FNF mods online
starboyai33 · 40 weeks and 4 days ago
This invitation code could be given to the content creators who are inquisitive about creating content material for Nine Chronicles however cannot have it due to the modern-day boundaries. ?Another key detail to don't forget is having access to and the usage of an real coins on-line playing website online. Fast-paying online casinos are useless if users cannot navigate the web page and find what they are searching out. The nice fast-paying sites may be discovered on the quick paying casino guide All of those great on line having a bet web sites and casinos are nicely-designed, clean to use, and provide correct client care components.
ReaderWriter12 · 38 weeks and 6 days ago
you have to be among those who have the most viewers. In the beginning, you may want to give a go to a game that was released a long time ago. You can check out free games first. www.twitchviral.com
kenwood · 35 weeks and 5 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 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 pug puppies indiana 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!
rahimhh21 · 30 weeks and 2 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 USA USA USA USA USA USA 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 · 21 weeks and 4 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: