Compare commits
2 commits
073a5105a8
...
1d98ca27ed
Author | SHA1 | Date | |
---|---|---|---|
vedri | 1d98ca27ed | ||
vedri | 7a18674aa6 |
|
@ -1,4 +1,4 @@
|
|||
## Simple Makefile by botanicals
|
||||
## Simple Makefile by vedri
|
||||
## Code available at https://git.disroot.org/botanicals/blog-files
|
||||
|
||||
# Compiler and flags
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## Simple Makefile by botanicals
|
||||
## Simple Makefile by vedri
|
||||
## Code available at https://git.disroot.org/botanicals/blog-files
|
||||
|
||||
# Compiler and flags
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# Compare SHA Sums
|
||||
|
||||
Also posted August 8th, 2021 on [Dreamwidth](https://campanilla.dreamwidth.org/4480.html).
|
||||
|
||||
## Idea
|
||||
|
||||
I wanted to practice working with files in C programs and at the same time check if the SHA sums for a Manjaro ISO file were the same.
|
||||
|
@ -28,7 +30,14 @@ Example of `sha-test.txt`:
|
|||
Append to the file a SHA sum you generated yourself.
|
||||
|
||||
``` sh
|
||||
sha1sum ISO >> sha-test.txt
|
||||
sha1sum ISO-name >> sha-test.txt
|
||||
```
|
||||
|
||||
Resulting `sha-test.txt`:
|
||||
|
||||
``` txt
|
||||
6ff0ebecb9813542e1fa81bbe897bb59039bb00d
|
||||
6ff0ebecb9813542e1fa81bbe897bb59039bb00d ISO-name
|
||||
```
|
||||
|
||||
Run `compare` and enter the name of the file with SHA sums when prompted.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Compare by botanicals
|
||||
/* Compare by vedri
|
||||
* Available at https://git.disroot.org/botanicals/blog-files
|
||||
*
|
||||
* This program compares two strings, each in its own line,
|
||||
|
|
Loading…
Reference in a new issue