Skip to content

Nathan Bietz

Ai Solutions Architecht / Artist

  • About
  • Posts

Category: Bash

Posted on May 14, 2019May 22, 2019

Convert a string case in Bash

From link

s="Hello World!"
echo $s # Hello World!
a=${s,,}
echo $a # hello world!
b=${s^^}
echo $b # HELLO WORLD!
Posted on May 1, 2019May 22, 2019

How to redirect stdin to file in bash

From Stack Overflow

echo "$(</dev/stdin)" > /tmp/file

Terminate your input with ENTER ctrl+d

My Photography

  • LinkedIn
Proudly powered by WordPress