You are here |
benbrougher.tech | ||
| | | |
willhaley.com
|
|
| | | | This is a trivial example, but is meant to demonstrate how you can pipe arguments to a bash function. #!/usr/bin/env bash lowercase() { # Grab input. declare input=${1:-$(</dev/stdin)}; # Use that input to do anything. echo "$input" | tr '[:upper:]' '[:lower:]' } echo "HELLO there, FRIEND!" | lowercase Which outputs the following. hello there, friend! | |
| | | |
blog.djy.io
|
|
| | | | ||
| | | |
trendless.tech
|
|
| | | | Computer coding has a relatively long history compared to most other computer-based things. While Charles Babbage created the difference machine in the 1820s, Ada Lovelace was the first "programmer". Machine/Assembly Coding At its core, programming could be machine code: just a bunch of 0s and 1s. But, that's tiresome, and hard to read, so they [...]Read More... from Code Basics: How Do Coders Code? | |
| | | |
blog.burntsushi.net
|
|
| | I blog mostly about my own programming projects. |