IO
Read
#!/bin/bash

echo "What's your name? "
read Name
echo "Input name: $Name"
			
Write
#!/bin/bash

echo "Hello World!" > temp.txt # redirect content to a file
echo "`date`">> temp.txt # append content to a file
			
Discard the output
#!/bin/bash

# To discard both output of a command and its error output
# 0, STDINPUT
# 1, STDOUTPUT
# 2, STDERR
ls > /dev/null 2>&1
			
Pipeline
#!/bin/bash

ls | wc -l
			
Reference