[SOLVED] Bash scripting - figure out how much you've downloaded

Hi
How would I aproach displaying how much (in mb/kb/gb whatever) I've downloaded?
Thanks
Last edited by valvet (2010-11-04 13:10:13)

There's also http://www.archlinux.org/packages/?sort … =&limit=50
[karol@black ~]$ vnstat -d
eth0 / daily
day rx | tx | total | avg. rate
------------------------+-------------+-------------+---------------
10/02/10 525.89 MiB | 28.77 MiB | 554.66 MiB | 52.59 kbit/s
10/03/10 850.30 MiB | 20.01 GiB | 20.84 GiB | 2.02 Mbit/s
10/04/10 353.02 MiB | 20.26 MiB | 373.28 MiB | 35.39 kbit/s
10/05/10 601.78 MiB | 42.41 MiB | 644.19 MiB | 61.08 kbit/s
10/06/10 471.46 MiB | 26.29 MiB | 497.75 MiB | 47.19 kbit/s
10/07/10 312.86 MiB | 15.24 MiB | 328.10 MiB | 31.11 kbit/s
10/08/10 250.51 MiB | 13.85 MiB | 264.36 MiB | 25.07 kbit/s
10/09/10 456.25 MiB | 22.86 MiB | 479.11 MiB | 45.43 kbit/s
10/10/10 1.21 GiB | 43.15 MiB | 1.25 GiB | 121.82 kbit/s
10/11/10 442.58 MiB | 21.45 MiB | 464.02 MiB | 44.00 kbit/s
10/12/10 757.99 MiB | 33.45 MiB | 791.44 MiB | 75.04 kbit/s
10/13/10 274.19 MiB | 18.22 MiB | 292.41 MiB | 27.72 kbit/s
10/14/10 1.11 GiB | 48.94 MiB | 1.16 GiB | 112.59 kbit/s
10/15/10 1.08 GiB | 42.71 MiB | 1.12 GiB | 108.95 kbit/s
10/16/10 921.70 MiB | 32.01 MiB | 953.71 MiB | 90.43 kbit/s
10/17/10 929.25 MiB | 37.68 MiB | 966.94 MiB | 91.68 kbit/s
10/18/10 1.78 GiB | 73.96 MiB | 1.85 GiB | 179.53 kbit/s
10/19/10 391.16 MiB | 19.23 MiB | 410.39 MiB | 38.91 kbit/s
10/20/10 1.30 GiB | 42.81 MiB | 1.34 GiB | 130.33 kbit/s
10/21/10 2.67 GiB | 77.57 MiB | 2.75 GiB | 267.06 kbit/s
10/22/10 1.17 GiB | 36.96 MiB | 1.21 GiB | 117.29 kbit/s
10/23/10 3.91 GiB | 104.04 MiB | 4.01 GiB | 389.56 kbit/s
10/24/10 4.43 GiB | 124.12 MiB | 4.55 GiB | 441.50 kbit/s
10/25/10 2.48 GiB | 71.18 MiB | 2.55 GiB | 247.22 kbit/s
10/26/10 7.25 GiB | 146.55 MiB | 7.39 GiB | 717.75 kbit/s
10/27/10 0.98 GiB | 35.87 MiB | 1.02 GiB | 98.78 kbit/s
10/28/10 1.22 MiB | 599 KiB | 1.81 MiB | 0.17 kbit/s
11/02/10 1.77 GiB | 30.93 MiB | 1.80 GiB | 174.33 kbit/s
11/03/10 961.69 MiB | 44.55 MiB | 0.98 GiB | 95.41 kbit/s
11/04/10 1.09 GiB | 44.35 MiB | 1.13 GiB | 170.49 kbit/s
------------------------+-------------+-------------+---------------
estimated 1.69 GiB | 68 MiB | 1.76 GiB |
[karol@black ~]$ vnstat -m
eth0 / monthly
month rx | tx | total | avg. rate
------------------------+-------------+-------------+---------------
Feb '10 66.99 GiB | 4.72 GiB | 71.71 GiB | 248.65 kbit/s
Mar '10 31.77 GiB | 2.68 GiB | 34.45 GiB | 107.89 kbit/s
Apr '10 28.77 GiB | 2.50 GiB | 31.26 GiB | 101.18 kbit/s
May '10 6.38 GiB | 682.79 MiB | 7.05 GiB | 22.08 kbit/s
Jun '10 6.10 GiB | 347.45 MiB | 6.44 GiB | 20.83 kbit/s
Jul '10 41.02 GiB | 1.73 GiB | 42.75 GiB | 133.89 kbit/s
Aug '10 49.31 GiB | 2.91 GiB | 52.21 GiB | 163.52 kbit/s
Sep '10 14.49 GiB | 939.38 MiB | 15.40 GiB | 49.85 kbit/s
Oct '10 41.93 GiB | 21.36 GiB | 63.29 GiB | 198.21 kbit/s
Nov '10 3.79 GiB | 119.83 MiB | 3.91 GiB | 104.14 kbit/s
------------------------+-------------+-------------+---------------
estimated 31.21 GiB | 979 MiB | 32.17 GiB |

Similar Messages

  • How can you tell how much space is being used up by your iTunes...I am trying to figure out how much space I will need to transfer my iTunes library to an iPod and which iPod to select?

    How can you tell how much space is being used up by your iTunes...I am trying to figure out how much space I will need to transfer my iTunes library to an iPod and which iPod to select?

    Start up iTunes, and select Music, then click Songs.
    Down at the bottom of the iTunes window, it will tell you how much space your library occupies.

  • I tried to download a tv series and only 2 of the episode actually downloaded (the others have an error message).  I can't figure out how to try to download them again.  Thanks for any help

    I tried to download a tv series and only 2 of the episode actually downloaded (the others have an error message).  I can't figure out how to try to download them again.  Thanks for any help

    Open the Disk Utility in the /Applications/Utilities/ folder, click on it in the sidebar, select the Erase tab, and reformat it.
    (103900)

  • HT4009 I did not download the in-app purchase at time of original App download, now I cannot figure out how to find and download the in-app purchase.  Please help!

    did not download the in-app purchase at time of original App download, now I cannot figure out how to find and download the in-app purchase.  Please help!

    Hello paddyliverpool,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/ht1933
    Refund is an option.
    Best of luck,
    Mario

  • HT1657 A movie I rented failed to download and I was still charged.  I can not figure out how to retry the download without being charged again.  Any thoughts?

    I rented a movie teh other night and started the download.  It was taking a while so I went to bed.  In the morning there was an error message and the movie did not download.  I did nothing as I figured I would just try agian another day.  A few days later I received my receipt by email.  I had been charged even though I never got access to the movie.  I tried to access the download again, but can not figure out gow to download the movie agian without being chraged.  PLease help.

    You could try the Store > Check For Available Downloads menu option. If that doesn't start it downloading then you will need to contact iTunes support (rentals are a one-time only download, so they will need to add it back into your queue).
    Try the 'report a problem' link from your purchase history : log into your account on your computer's iTunes via Store > View My Account (Store > View My Apple ID on iTunes 11) and you should then see a Purchase History section with a 'see all' link to the right of it ; click on that and you should see a list of your purchases ; find that film, click the arrow to the left of it and use the 'Report a Problem' link and fill in details about the problem (iTunes support should reply within, I think, about 24 hours).
    Some people have had a problem with the 'report a problem' link (it's been taking people to this site on a browser instead of showing a form in iTunes) - if it does that to you then try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page.

  • Please help me figure out how much and type of RAM I can add to my P'Book!

    I have a 12" PowerBook with DVI input. The computer tells me it has the following:
    memory; Dimmo/built-in 256MB(size) Built-in(Type) Built-in(Speed)
    Dimm1/ j31 512MB DDR SDRAM PC2100U-25330
    PCI/AGM GeForce FX Go5200 32MB (VRAM - in total)
    About this Mac says Processor 1GHz PowerPC G4
    Memory 768 MB DDR SDRAM
    Please can someone tell me exactly what I can put in this machine to maximise its RAM? Help much appreciated!

    Welcome to the Apple discussions.
    Have you checked the specs at http://support.apple.com/specs/powerbook/PowerBookG4_12-inchDVI.html . It says you can have a total of 1.25GB ... that means you can replace the 512MB card with a 1GB card to maximize the memory.
    If you're going to upgrade your memory, recommend Crucial, Kingston (not their value ram), or Samsung. You can also scan the discussions for other memory that has worked. Our Powerbooks are picky about what memory works ... a case where cheapest may not be the best choice. Crucial guarantees it's memory will work when chosen from it's memory selector on it's web site.

  • I am willing to buy a Macbook pro 13 retina notebook, i cant figure out how much battery it has sometime it says that ots up to 7 hours and 9 hours. Which one is it?

    Is it 7 or 9 hours of battery life?

    Please also keep in mind it does not necessarily mean you will get 9 hours of battery life from typical usage.
    You should be getting atleast 5-6 if you are not watching videos and 2-3 if you are watching videos/gaming.
    You will only get 9 hours if you are very conservative with your battery which means having only 1 or 2 apps running and not doing any resource intensive tasks.

  • Figured out how to get ITunes downloaded on my computer..

    THIS is what I had to finally do to get ITunes back up and running on my computer.. after having had the 'installer stopped' error and the 'network resource is unavail' error..  hope this atleast helps another person out there!!  many frustrated hours were spent before I used the following link
    http://support.microsoft.com/mats/Program_Install_and_Uninstall
    Good luck. Worked for me back up and running.

    See Here,
    Syncing with iTunes
    From Here,
    http://www.apple.com/support/iphone/syncing/
    iPhone User Guide
    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • I'm resending this question.  I'm trying to install the CC desktop on my Ibook in order to download Photoshop and Lightroom, but the downloader gets stuck at about 10% completion and I cannot figure out how to complete the download.  Thanks for any help.

    I'm new to this and apologize, but I do have a question about downloading CC to my Ibook (after successfully downloading to my Apple desktop.  The downloader is stuck at about 10% of completion and repeating from the beginning does not help me.  Any help or suggestions would be appreciated.  Roy

    May I know the version of Mac computer ?

  • I cannot figure out how to make the text larger on an incoming email.  The finger method doesn't work and I cannot find any toolbar with which to do it.  I could find nothing in settings also.  Plese help and thank you.

    I cannot figure out how to make the text larger in a received email.  The finger method doesn't work and I can find no tool bar as I can for composing emails.  I can find nothing in settings.  Please help and thank you in advance.

    Hi there,
    Download a piece of software called TinkerTool - that might just solve your problem. I have used it myself to change the system fonts on my iMac. It is software and not an app.
    Good wishes,
    John.

  • HT1386 The first time I synced my iphone with my mac, I didn't realize that all of my photos from iphoto would transfer over to the phone.   Now, I need to remove some, as they are taking up too much space.  I cannot figure out how to remove them from the

    The first time I synced my iphone 4 with my mac, I didn't realize that all of my photos from the iphoto library would transfer over to the phone (more than 3,000).   Now, I need to remove some, as they are taking up too much space.  I cannot figure out how to remove them from the phone.  I tried to uncheck boxes and sync again, but I get a message that there is no room on the iphone.  I've read as many articles as I can find, but still cannot manage this.  Thanks for any help.

    Open itunes, connect iphone, select what you want, sync

  • I moved iTunes TV files from my PC to an external drive. I want to return them to my PC so I can watch during travel, but cannot figure out how to move them back. Can you help? Thanks in advance.

    I moved some iTunes TV shows from my PC hard drive to an external drive. I can watch them as long as the external drive is plugged in, but I now want to move them back to my PC to watch from the internal drive, but cannot figure out how to do it. Can anyone help? Thanks in advance.

    Is it just the TV Shows that you moved to the external, or did you consolidate all your media there?
    What is the current location of the media folder given under Edit > Preferences > Advanced?
    If the media folder is currently pointed to a folder on the internal drive you could select the files you want to copy, then right-click and select Consolidate Files from the pop-up menu. This will leave the originals behind. If you want to move specific files to a new media folder then my script ConsolidateByMoving can do this.
    tt2

  • Has anyone else spent 4 hours trying to figure out how to get a refund for extra iCloud storage you accidentally purchased?

    Has anyone figured out how to actually get a refund for iCloud extra storage? I accidentally purchased too much extra storage. The supports site says "Cancel storage not needed" within 15 days.  But there is no instructions on HOW to do that. I have searched for hours for instructions. I did Express Lane Case #s only to have Apple Support "close" these cases with a "resolution" that they told me to visit their support sites. I am in a loop! I have had 3 Case numbers for this with no one giving me the credit refund. I finally was given a phone number.  Been on hold so long my cell dropped the call and had to start over...3 times. Of course, all very nice people who took my phone number in case they need to call me back and then never called me when I lost the call. None of them had the security level for refunds so I had to be sent on to the next person and then the next, all with rediculously long hold times. I finally gave up for the night. Tried to "chat" online, but the only option is to "Chat Later" when I feel like trying again. Again, no explanation on why that is the only option showing (too busy, closed for the night?). Is the ploy here for me to realize I already spent more hours of my time than the cost of the error and I'll eventually give up? On this site I did see someone post a refund resolution for MobileMe. Those instructions are not working for iCloud storage canceling. There was no "choice" to click for canceling that I saw.

    I did get this resolved the next day. So the solution is to not try to resolve this in the evening, the were understaffed. I called the next day during business hours and had the opposite experience. I got in and was only on hold 5 min. Again the first support person could not give refunds and I was passed on to her supervisor, but again the hold time was reasonable. This person was very easy to work with and she took care of the issue. I explained that it was not completely clear that the cloud is not meant to be backup for all your pc files, thus the reason for so many cancelations once we get it and find out what it cannot store. The online support sites could do a better job telling you that refunds require phone calls (during days hours).

  • Anyone figure out how to solve the 1015 error

    anyone figure out how to solve the 1015 error

    Each version of Photoshop has its own installation path therefore a different application as fars as Wacom Configuration.  You would need to set preferences for each Photoshop installed on your system.  However if you know XML.  Wacom Tablet Preference File Utility can save your Wacom preferences into an XML file.  That you may be able to duplicate a Photoshop install and the change the Photoshop Path. Or just change the prion version pathe the the new Photoshop path then restore your Wacom Preferences using the modified XML preference file.
    Here you see part of my wacom preferences I have set preferences for all Photoshop installed on my workstation.

  • HT1657 I rented a movie and accidentally hit the menu button and now I can figure out how to go back and watch it . When I try to press rent again it says you have already downloaded this movie go to settings and check for downloads but I can find it.

    I rented a movie and accidentally hit the menu button and now I can figure out how to go back and watch it . When I try to press rent again it says you have already downloaded this movie go to settings and check for downloads but I can find it download in settings.

    I had the same issue with my apple tv 3rd generation. I rented Sinister and selected the "rent and watch now" option. Half way through the movie I accidentally pressed the menu button. When I looked for the rented movie on my apple tv I could not find it. Not even above the movie pannel where "purchased" and "top movies" comes up on the main menu. the apple tv suggests to go to settings>downloads but I don't have that option. I did go to settings> itunes store> check rentals but that didnt work either. It took too long to even check. Thank you because this SOLUTION worked great.
    SOLUTION: How to reset apple tv 3 3rd generation to view rented movies:on the apple tv remote: press and hold "menu" to go to the main menu. Select SETTINGS> GENERAL >RESET >RESET ALL SETTINGS. After the apple tv resets, input all your information again and your rented movies should be visible when you cruise above the "movies" section. THANK YOU!!
    Apple needs to solve this issue because honestly it took me 3 hours and a half to watch a movie that only lasted 2 BECAUSE I wast trying to solve the issue, reseting and all. blahh.

Maybe you are looking for