Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add s3head and s3cat based on some random twitter person #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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