$cat fileName //show the contents of the file
$grep text < fileName //show the lines that contain the word “test” inside the fileName
$grep -l text *.txt //show all .txt files with “text” word on those
$rev fileName //reverse the contents of the file
$VARIABLE=VALUE //set values to a variable
$echo $VARIABLE //see the value of the variable
$ export VERIABLE //set environment vatiable
#!/bin/bash //first line to write a script
Advertisement