Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Sizer


  • Please log in to reply
7 replies to this topic

#1 Guest_hollowface_*

Guest_hollowface_*

  • Guests
  • OFFLINE
  •  

Posted 02 February 2016 - 01:40 AM

Sizer 0.1 Testing:
Sizer is a Bash script set for showing how big a file is, or the size on disk. This is a testing release, and the ability to convert between units has not been implemented yet. Installation instructions, and a list of dependencies is provided in the "About.txt" file included in the download. Sizer is open-source, and is licensed under the same license as my other scripts; a copy of the license is included in the download.

Demo Output:
example1@example:~$ bash ~/sizer/sizer-manager
Sizer 0.1 Testing
Where is Sizer located (excluding filename):/home/example1/sizer
Task List:
1. Calculate the size of a file.
2. Calculate the space used by a file.
(NOT YET IMPLEMENTED) 3. Convert between units.
4. Quit (Exit Sizer.)
Choose a task to perform (enter the number):1
Input file:/home/example1/sizer/About.txt    
Output path (leave empty for stdout only):/home/example1/filesize1
Calculate to how many decimals (eg: 2):2
Filesize:
7040b (bits)
7.04kb (kilobits)
6.87Kib (kibibits)
0Mb (megabits)
0Mib (mebibits)
0Gb (gigabits)
0Gib (gibibits)
0Tb (terabits)
0Tib (tibibits)
880B (bytes)
0.88kB (kilobytes)
0.85KiB (kibibytes)
0MB (megabytes)
0MiB (mebibytes)
0GB (gigabytes)
0GiB (gibibytes)
0TB (terabytes)
0TiB (tibibytes)
example1@example:~$ bash ~/sizer/sizer-manager
Sizer 0.1 Testing
Where is Sizer located (excluding filename):/home/example1/sizer
Task List:
1. Calculate the size of a file.
2. Calculate the space used by a file.
(NOT YET IMPLEMENTED) 3. Convert between units.
4. Quit (Exit Sizer.)
Choose a task to perform (enter the number):2
Input file:/home/example1/sizer/About.txt
Output path (leave empty for stdout only):/home/example1/spaceused1
Calculate to how many decimals (eg: 2):2
Space Used:
32768b (bits)
32.76kb (kilobits)
32.00Kib (kibibits)
0.03Mb (megabits)
0.03Mib (mebibits)
0Gb (gigabits)
0Gib (gibibits)
0Tb (terabits)
0Tib (tibibits)
4096B (bytes)
4.09kB (kilobytes)
4.00KiB (kibibytes)
0MB (megabytes)
0MiB (mebibytes)
0GB (gigabytes)
0GiB (gibibytes)
0TB (terabytes)
0TiB (tibibytes)
example1@example:~$
Download Link:

Edited by Al1000, 03 September 2016 - 12:13 AM.


BC AdBot (Login to Remove)

 


#2 Guest_hollowface_*

Guest_hollowface_*

  • Guests
  • OFFLINE
  •  

Posted 03 February 2016 - 07:21 PM

Sizer 1.0 Stable:
GmG1lkr.png

Sizer is an open-source file size lister for GNU/Linux, written in Bash. A list of dependencies, a copy of the license, and installation instructions are included in the ZIP file.

Features:
- List size of file.
- List size-on-disk of file.
- Convert between units.
- Output to stdout, or both stdout and a file.
- Limit output to a specific unit.
- Code is split into multiple scripts so that thirdparty tools can easily execute a specific Sizer task.

Download Links:


Checksums:
SHA-512:405ef38a15aff76258af4fde540386c0731cc3b54e061c67ece44a96d30bbdcadbd6201d1b484a68ef50f6c3eef419885143f653d3f04d84076b2b37917465a8
SHA-256:5cdaed26b4ebf3d0e320208603a95ee6f6e8e35e38cd90f3f1f029a39e0fe793
SHA-1:7a70875425a5913c40823113b9025003eedf2b68
MD5:d6da9300db880ff7f2d4d64b64b294a7

Edited by Al1000, 03 September 2016 - 12:13 AM.
delete download links


#3 Guest_hollowface_*

Guest_hollowface_*

  • Guests
  • OFFLINE
  •  

Posted 17 February 2016 - 02:11 AM

Sizer 1.1 Testing:
Sizer is an open-source file size lister for GNU/Linux, written in Bash. A list of dependencies, a copy of the license, and installation instructions are included in the ZIP file.

Features:
- List size of file.
- List size-on-disk of file.
- Convert between units.
- Output to stdout, or both stdout and a file.
- Limit output to a specific unit.
- Code is split into multiple scripts so that thirdparty tools can easily execute a specific Sizer task.

Changes:
- Fixed issue with bytes and bits not having decimal when decimals are all zero.

Download Links:


Checksums:
- SHA-512:29cd7cca588783a53f6e3f9a7816ce82759c9842bf9fdff4157514f9b9a7f29daabed5d949c1aa98be0d0fc5e937ee6c42db191ca044c20ac69bd7ca65f0742a
- SHA-384:fe1dd6bd4f069038a9935d5e82796ae0ad6d6657418134548ec89120a32dd4cbbde6fd1384b0834e3590faa6fcfac02a
- SHA-256:f189f1b86434f8d0d62e0cf7a52823f66407df2f8693bf8fcc8e9efb48ba72ce
- SHA-224:4efa9c7f03315148573a443daeee13aa7358893dff4fb0d93b7630b8
- SHA-1:ecb31899aa107a5ab8112ff8a9c73f4d0e6e8145
- MD6-512:c2b618b007f8b8675f09fa93093959c4a2c7c8b34c5c4af2f24c8a8cac942b8790a8ea54cfbbd2844c9da1fcbc378b5fec9f84609c7b90a6d223d0f6075d61d9
- MD6-384:c90cc844845ab0e3ede1c25bf63f479b9decc23e67bda823ce30444b4cbe6274d765de74073d6f5b8ea9e7d75077e24c
- MD6-256:d15ff3e5f146486f295560f88b14fea8144618c7363239c6535a22a79ff59045
- MD6-224:30d950270c08b5c85bfdfc3e296f156e6c769d29335416c5777465d0
- MD5:ae50030d636b64c98cbe2f954dfa392c
- MD4:d6fb81edfa0e949659a167924ded1b0b
- MD2:b5ba115a6370c51fc81e82c92b38ffbf
- CRC32:829aa749
- ADLER32:c27cb4ad

Edited by Al1000, 03 September 2016 - 12:14 AM.
delete download link


#4 Guest_hollowface_*

Guest_hollowface_*

  • Guests
  • OFFLINE
  •  

Posted 18 February 2016 - 01:45 AM

Sizer 1.2 Testing:
WYcMWkN.png
Sizer is an open-source file size lister for GNU/Linux, written in Bash. A list of dependencies, a copy of the license, and installation instructions are included in the ZIP file.

Features:
- List size of file.
- List size-on-disk of file.
- Convert between units.
- Output to stdout, or both stdout and a file.
- Limit output to a specific unit.
- Code is split into multiple scripts so that thirdparty tools can easily execute a specific Sizer task.

Changes:
- Fixed issue with zero result being reported as 0 regardless of requested decimal length. Now it will display as 0.decimal length (eg: 0.00 instead of 0).

Download Links:


Checksums:
- SHA-512:50f30a41832f94ec6eaa35c337440a54d214a2922f88a54772cd21a06069ed30b6ec1514f30f5f761b5d4257261df2f810148aa17ba0de4fda3e5df472bae2f2
- SHA-384:b68d7511f06acc167c7fa123d0cc2416576bac5a5d4bf8aa8dc3234a7212025c6a4d0f5bf848d6ee9d16fb93d08a3feb
- SHA-256:58163c1c86b2cc16648069ddda8257a5d37c7cab5f13694d92ac1c19a73e4efb
- SHA-224:4080cd44b15d89f72e8ecd2da1eef91dd6f28b6d086e63826e80f5d9
- SHA-1:31df9c3bc85cec31bbfb72ff1be8f83d99b76656
- MD6-512:c22c8a2286a67748f7eba986c9a6b7bb266b336d0227aaf1ebc6ac8f8c506ed20fcf9f202c4e664c1329e9a80906c3f60eb270442519b214ba4dd4db42633d62
- MD6-384:d90071fe484267e11051bbddc16912c353665aa68e589a924b570f2a05a8e94053599227651d78c31f0b9d8d836927b7
- MD6-256:6419a3ea12147a235b95a2e9babdf1b8e8a1a710118764cde34f7b08e8b58262
- MD6-224:2c672d851cb4b3b537eb1ccdf1dcedeefcc1f98a31c8101dabdbf9a6
- MD5:e4e7437885a180791926ebc41540761b
- MD4:a0f3f8c376c78708d41e353774411dc4
- MD2:d623fe3c6361ab2367d7d13c0f2e9d17
- CRC32:e17be265
- ADLER32:42594852

Edited by Al1000, 03 September 2016 - 12:14 AM.
delete download link


#5 penguin111

penguin111

  • Members
  • 1 posts
  • OFFLINE
  •  
  • Gender:Male

Posted 18 February 2016 - 06:17 PM

Just registered to say thankyou for making and sharing this. I'm using the 1.2 version, which I assume is a beta release of some kind, but I haven't noticed any issues. If I do I'll downgrade to 1.0. Your work is appreciated.



#6 Guest_hollowface_*

Guest_hollowface_*

  • Guests
  • OFFLINE
  •  

Posted 19 February 2016 - 02:34 AM

@penguin111

Just registered to say thankyou for making and sharing this

Thanks, and welcome to BC (Bleeping Computer).

 

I'm using the 1.2 version, which I assume is a beta release of some kind

Sort of. Releases are either "Testing" or "Stable". Testing means it has new code, may not have been used much yet, and could have new unnoticed bugs. Stable means I've not noticed any bugs or the present bugs do not require immediate attention, it may have new code or may just be re-release of a previous testing release, and I believe it's ready regular use.



#7 Guest_hollowface_*

Guest_hollowface_*

  • Guests
  • OFFLINE
  •  

Posted 13 March 2016 - 02:05 AM

Sizer 1.14 Testing
Hy63Ng5.png
SD1oSa2.png
Sizer  is an open-source file size lister for GNU/Linux, written in Bash. A list of dependencies, a copy of the license, and installation instructions are included in the ZIP file.

Changes:
- Now has both interactive and non-interactive interfaces.
- Updated how location checks are performed.

Features:
- List size of file.
- List size-on-disk of file.
- Convert between units.
- Output to stdout, or both stdout and a file.
- Limit output to a specific unit.
- Code is split into multiple scripts so that thirdparty tools can easily execute a specific Sizer task.
- Has both interactive and non-interactive interfaces.

Download Links:


Checksums:
-SHA-512:d8ab50375a8749c53f99a7e2cd577480ee8f3e7f26aee8cd172e74445c0d2385c2dced9944094670543c81284451743827c81f95b48265b99eb04f8b995bb3a8
-SHA-256:d421c362d57138aafeeed868800cd17635dcf1d4a621d08de57b77494bfc6582
-SHA-1:8cc70351203fa6ff50965418482fc05e1c9c1f99
-MD6-512:4bcf83e08347e7ccb8dd55591a29019536cb9d2c5b81f017f542357f87b7aed74543c1a70106a8efd476823ff1e3ee546183870ed8c37a118edf5d445e432738
-MD6-256:54d26da6403772d9dafe13f2660b9168c7e9ace6668de52ff1880033b909699a
-MD5:5bc40f645d27b5eb1b87c3367757d725
-CRC32:8bc19e75

Usage Examples:
Here are some example commands for accomplishing stuff in the non-interactive mode. Make sure to substitute correct values, rather than blindly copy/paste.
 
Convert #MiB to GiB:
1. In your terminal type:
bash /home/example1/sizer/sizer-cli --location="/home/example1/sizer" --task="3" --input="1024MiB" --decimal="2" --tooutput="gibibyte"
Substitute "1024" for the number you're converting from MiB to GiB.
Substitute "/home/example1/sizer" for the path to Sizer.

Determine File Size In MiB:
1. In your terminal type:
bash /home/example1/sizer/sizer-cli --location="/home/example1/sizer" --task="1" --inputfile="/bin/bash" --decimal="2" --tooutput="mebibyte"
Substitute "/bin/bash" for the file you want to inspect.
Substitute "/home/example1/sizer" for the path to Sizer.

Determine File Size-on-disk In MiB:
1. In your terminal type:
bash /home/example1/sizer/sizer-cli --location="/home/example1/sizer" --task="2" --inputfile="/bin/bash" --decimal="2" --tooutput="mebibyte"
Substitute "/bin/bash" for the file you want to inspect.
Substitute "/home/example1/sizer" for the path to Sizer.

Edited by Al1000, 03 September 2016 - 12:15 AM.
delete download links


#8 Guest_hollowface_*

Guest_hollowface_*

  • Guests
  • OFFLINE
  •  

Posted 10 April 2016 - 06:13 PM

I think in the long run I might do a re-write most of the tool so that the code is cleaner (and simpler), the results more accurate, the unit names conform to a specific standard like IEC 80000-13:2008(en), and the output would be more customizable. However, this would be big undertaking, and currently I don't feel like doing it. :P Anyways, the below new release should fix a few issues.

Sizer 2.0 Stable:
Sizer is file size lister for GNU/Linux. It's written in Bash, and is open-source. Installation instructions, a list of dependencies, and a copy of the license are in the ZIP download.

Changes:
- Fixed *bit conversion issue in unit converter. Conversion is less accurate for *bit conversions than *byte conversions, because it rounds to a whole number.
- Updated interactive and non-interactive interface scripts to latest code used in other projects. If you had been experiencing issues with old non-interactive menu, this should fix it.
- Renamed tooutput variable to unit.

Checksums:
- SHA-512:d245276b884ba0b3154c11fda0903e105ac3414c39c9eb326c92b60964d818f4781c208ce5d40afb356606b3ab18d82b8ef4a8fb05212262cacb162f3131bdf3
- MD6-512:30d3da03223bf7ab29462eb2737c8751b0c48e5e6a74063a79e603304b4de8788286e0c116f25215dcfc46cf1064ee6bcbd779da786b6977c3d844adc3a0e17f

Download Links:

https://mega.nz/#!8whWgbAJ!x25NvWKuHIEAjMBz_m3WyX_XII2-oRXP-YeWa3dOeXI

Edited by Al1000, 10 September 2016 - 02:05 PM.
update download link





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users