Hi,
I want to grip the lines based on date from last command
echo "enter the date:"
read date
last |grep -i "$date"
The above grep command giving correct output for double digit dates (fro 10-30) but for single digit date (1-9) how can i use read the date, coz in last out put single digit date is right aliened and there is no zero.
Arun
Arun
Sun Solarix admin
India
I want to grip the lines based on date from last command
echo "enter the date:"
read date
last |grep -i "$date"
The above grep command giving correct output for double digit dates (fro 10-30) but for single digit date (1-9) how can i use read the date, coz in last out put single digit date is right aliened and there is no zero.
Arun
Arun
Sun Solarix admin
India