Search Results

Search: Posts Made By: oberoi1403
3,005
Posted By Franklin52
Use double quotes instead of single quotes to...
Use double quotes instead of single quotes to expand the shell variables:
sed -n "/$FromTime/,/$ToTime/p" $logFile > new_log.log
3,654
Posted By Don Cragun
The command you tried can't work for at least the...
The command you tried can't work for at least the following reasons (there may be others):

when comparing dates, you need to compare year, month, and day (in that order); not day, month, and...
3,654
Posted By Don Cragun
This is a duplicate of another thread you...
This is a duplicate of another thread you started: Error while extracting data from log file...
3,654
Posted By clx
Welcome to the forums. Have you tried something?
Welcome to the forums. Have you tried something?
5,476
Posted By Klashxx
Based on your code: last -R|awk -v v1=`date...
Based on your code:
last -R|awk -v v1=`date +'%h'` -v v2=`date +'%d'` '$5==v1 && $6==v2'
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 07:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy