Another really useful redirection-related BASHism: <( ):
<( )
Useful if, say, you want to check to see if a local file and an S3-hosted file are the same:
$ sha256sum <( aws s3 cp s3://BUKKIT1/file - ) ./file d20c7a50c3ac734230b08dbe2cb9122634c2dd040eee56ebd8101bef455dbb88 */dev/fd/63 c204dbfa154fc4801bdaac298584815bbd1b4a968a2349dd17f1e7c459904d41 *file
Similarly, can be used for things like diffing two streams:
diff
diff <( aws s3 cp s3://BUKKIT1/file - ) <( aws s3 cp s3://BUKKIT2/file - )
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Another really useful redirection-related BASHism:
<( )
:Useful if, say, you want to check to see if a local file and an S3-hosted file are the same:
Similarly, can be used for things like
diff
ing two streams: