When we want to check whether a file is ASCII text file, we can use this command
~$ file some_file_content_unknown
some_file_content_unknown: ASCII text
Is it possible to use file command to check a aws s3 object, something like below (but it's not working)
~$ file s3://bucketa/prefixb/some_file_content_unknown
aws s3 cp s3://example-bucket/file.name - | file -?