Basic Bash pipe tricks -
i'm going run short demonstration of linux audience of 9-10 y.o children @ school. guess none has never seen shell, fun of them i'd show how many things can achieve one-liner pipe.
i'd start with:
echo "hello world"
and then:
echo "hello world" | figlet echo "hello world" | rev echo "hello world" | mail johndoe@gmail.com
can suggest me one-liner can use echo ? lot!
if have access netcat
(nc
) , browser can this:
echo "hello world!" | nc -l localhost 2888
then open browser on http://localhost:2888/
see message.
Comments
Post a Comment