Skip to content

Conversation

@ranman
Copy link

@ranman ranman commented Nov 24, 2017

$ aws s3head s3://randhunt-code/template.yaml 10

download: s3://randhunt-code/template.yaml to ../../../../../var/folders/f0/9978ckg90b77tsc4znzbrsvnr154x1/T/tmp.xUI2zLO8
AWSTemplateFormatVersion: 2010-09-09
Description: A template for launching the message_followers auto responder

Parameters:
  ConsumerKey:
    Type: String
    NoEcho: True
  ConsumerSecret:
    Type: String
    NoEcho: True

tchia04 added a commit to tchia04/awscli-aliases that referenced this pull request Mar 17, 2018
tchia04 added a commit to tchia04/awscli-aliases that referenced this pull request Mar 17, 2018
s3cat =
!f() {
tmpfile=$(mktemp)
aws s3 cp $1 $tmpfile
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pro-tip: You can copy a file to stdout using aws s3 cp $1 - instead of having to use temp files

s3head =
!f() {
tmpfile=$(mktemp)
aws s3 cp $1 $tmpfile
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above; maybe pipe it to head?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants