Sheel script shorcuts
extract Date in DDMONYYYY format for future date
DT=`date +'%d%^b%Y' -d "365 days"`
echo $DT
Grep Multiple Words in single time
cat ****|grep -i 'Terrm1\|Term2\|Term3'
To comments every line in a script or in Crontab
- :%s/^/#/g =====> Put entries at start of all lines
10,20s/^/#/ =====> put entries from line 10 to 20
How to remove certain terms like Special characters in shell Script
tr (trim command) : tr -d 'values to trim'
Comments
Post a Comment