albertaparicio / s-checker Goto Github PK
View Code? Open in Web Editor NEWCheck your files with their checksums easily with one command.
Home Page: http://albertaparicio.github.io/s-checker/
License: GNU General Public License v3.0
Check your files with their checksums easily with one command.
Home Page: http://albertaparicio.github.io/s-checker/
License: GNU General Public License v3.0
When inputing S Checker a file with spaces in its name, these errors pop up.
An example of an execution with the -x argument in bash:
bash -x ~/bin/s_checker -s1 -f 05\ Symphonies\ Of\ The\ Planets\ 5.m4a -c 80c0c0f6266fa94c46344faa9f3f672b57a2b01c
+ copyright_notice='schecker (S Checker) v1.2 ©Copyright (C) 2015-2016 Albert Aparicio'
+ mode=
+ checksum=
+ filename=
+ device=
+ '[' 5 -eq 0 ']'
+ '[' -s1 '!=' '' ']'
+ case $1 in
+ mode=SHA1
+ shift
+ '[' -f '!=' '' ']'
+ case $1 in
+ shift
+ filename='05 Symphonies Of The Planets 5.m4a'
+ shift
+ '[' -c '!=' '' ']'
+ case $1 in
+ shift
+ checksum=80c0c0f6266fa94c46344faa9f3f672b57a2b01c
+ shift
+ '[' '' '!=' '' ']'
+ echo ''
+ case $mode in
+ show_data
+ clear
+ echo '███████╗ ██████╗██╗ ██╗███████╗ ██████╗██╗ ██╗███████╗██████╗
██╔════╝ ██╔════╝██║ ██║██╔════╝██╔════╝██║ ██╔╝██╔════╝██╔══██╗
███████╗ ██║ ███████║█████╗ ██║ █████╔╝ █████╗ ██████╔╝
╚════██║ ██║ ██╔══██║██╔══╝ ██║ ██╔═██╗ ██╔══╝ ██╔══██╗
███████║ ╚██████╗██║ ██║███████╗╚██████╗██║ ██╗███████╗██║ ██║
╚══════╝ ╚═════╝╚═╝ ╚═╝╚══════╝ ╚═════╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
'
███████╗ ██████╗██╗ ██╗███████╗ ██████╗██╗ ██╗███████╗██████╗
██╔════╝ ██╔════╝██║ ██║██╔════╝██╔════╝██║ ██╔╝██╔════╝██╔══██╗
███████╗ ██║ ███████║█████╗ ██║ █████╔╝ █████╗ ██████╔╝
╚════██║ ██║ ██╔══██║██╔══╝ ██║ ██╔═██╗ ██╔══╝ ██╔══██╗
███████║ ╚██████╗██║ ██║███████╗╚██████╗██║ ██╗███████╗██║ ██║
╚══════╝ ╚═════╝╚═╝ ╚═╝╚══════╝ ╚═════╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
+ echo schecker '(S' 'Checker)' v1.2 ©Copyright '(C)' 2015-2016 Albert Aparicio
schecker (S Checker) v1.2 ©Copyright (C) 2015-2016 Albert Aparicio
+ sum_data
+ echo '
Mode: Checksum checking
Algorithm: SHA1
File: 05 Symphonies Of The Planets 5.m4a
Checksum: 80c0c0f6266fa94c46344faa9f3f672b57a2b01c
Computing checksum...
'
Mode: Checksum checking
Algorithm: SHA1
File: 05 Symphonies Of The Planets 5.m4a
Checksum: 80c0c0f6266fa94c46344faa9f3f672b57a2b01c
Computing checksum...
+ compute_sum sha1sum
+ algorithm=sha1sum
++ sha1sum 05 Symphonies Of The Planets 5.m4a
++ cut -d ' ' -f 1
sha1sum: 05: No such file or directory
sha1sum: Symphonies: No such file or directory
sha1sum: Of: No such file or directory
sha1sum: The: No such file or directory
sha1sum: Planets: No such file or directory
sha1sum: 5.m4a: No such file or directory
+ '[' = 80c0c0f6266fa94c46344faa9f3f672b57a2b01c ']'
/home/albert/bin/s_checker: line 73: [: =: unary operator expected
+ echo '!!--Checksum Mismatch--!!'
!!--Checksum Mismatch--!!
+ exit 0
The idea of this is to wrap the ability of md5sum or shasum to check several files against a CHECKSUMS list.
It would also be nice to be able to check several files against several other files, say, a whole directory.
It will need to be determined if each file will be checked against each other file, or just compare the ones that have the same file name.
When running S Checker 1.1.1 checking MD5 hashes, in the "Algorithm: " line, nothing is shown.
The idea is to take a directory, and copy or move its files into another one, replacing files only if the ones to be copied have been modified relative to the ones to be replaced. The files that are not in the target directory would be copied directly.
Make S Checker able to check CRC checksums
This new feature consists in making S Checker able to compare two files and see if they are identical.
Filenames are not an issue to be concerned about, since two identical files with different names can have the same hash.
To ensure the proper execution of S Checker, there is some software that needs to be installed on the system:
Before any operation takes place, S Checker should check that all this software is installed in the system.
Instead of using grep to check sum validity, use bash equal/less/greater capabilities
In the help text of S Checker, the link for this GitHub repo ought to be shown.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.