๐Ÿš

Using xargs

https://github.com/jhuizy/code-notes
shellpatternsbash

Using output of previous command as an argument in the next command with xargs

For example, if we had the following command to list buckets in S3

bash
aws s3 ls

And we want to list the contents of the first bucket

bash
aws s3 ls | head -n 1 | xargs aws s3
Want to make your own site like this? Try gatsby-theme-code-notes by Zander Martineau.
Handy code snippets