- counting lines in a file.
wc -l file_name
#with pipe
cat file_name | wc -l- delete last line of file.
| sed '$d'- find files. that are recorded after time, and sort them
find location -newermt time -type f | sort- Declare Bad Exit from bash.
exit 1 - Writing function bash
function_name(){
}
function function_name{
}- Checking the size in linux. ref
Checking space untilization by directories on current level.
du -h -d1 .To check disk space and utilization info.
// normal
df
// in megabyte and KB.
df -h- grep, cut, sed.
ls | grep "cool" | sed "s/\/d/\/#d/" |