Post History
There's a sha1sum tool in GNU coreutils. Here's $ sha1sum emptyfile da39a3ee5e6b4b0d3255bfef95601890afd80709 emptyfile Note the spaces and the filename (emptyfile in this case) in the output...
Answer
#3: Post edited
- There's a [`sha1sum`](https://www.gnu.org/software/coreutils/manual/html_node/sha1sum-invocation.html) tool in GNU coreutils.
- Here's
- ```shell
- $ sha1sum emptyfile
- da39a3ee5e6b4b0d3255bfef95601890afd80709 emptyfile
- ```
Note the trailing spaces and the filename (*emptyfile* in this case) in the output. It needs to be accounted for in pipelines.
- There's a [`sha1sum`](https://www.gnu.org/software/coreutils/manual/html_node/sha1sum-invocation.html) tool in GNU coreutils.
- Here's
- ```shell
- $ sha1sum emptyfile
- da39a3ee5e6b4b0d3255bfef95601890afd80709 emptyfile
- ```
- Note the spaces and the filename (*emptyfile* in this case) in the output. They may need to be accounted for in pipelines.
#2: Post edited
There's a [`sha1sum`](https://www.gnu.org/software/coreutils/manual/html_node/sha1sum-invocation.html) tool in GNU coreutils:- ```shell
$ touch file$ sha1sum fileda39a3ee5e6b4b0d3255bfef95601890afd80709 file- ```
Note the trailing spaces and the filename in the output. It needs to be accounted for in pipelines.
- There's a [`sha1sum`](https://www.gnu.org/software/coreutils/manual/html_node/sha1sum-invocation.html) tool in GNU coreutils.
- Here's
- ```shell
- $ sha1sum emptyfile
- da39a3ee5e6b4b0d3255bfef95601890afd80709 emptyfile
- ```
- Note the trailing spaces and the filename (*emptyfile* in this case) in the output. It needs to be accounted for in pipelines.
#1: Initial revision
There's a [`sha1sum`](https://www.gnu.org/software/coreutils/manual/html_node/sha1sum-invocation.html) tool in GNU coreutils: ```shell $ touch file $ sha1sum file da39a3ee5e6b4b0d3255bfef95601890afd80709 file ``` Note the trailing spaces and the filename in the output. It needs to be accounted for in pipelines.