Search Results

Search: Posts Made By: Ramneekgupta91
3,178
Posted By RavinderSingh13
Hello Ramneekgupta91, Could you please try...
Hello Ramneekgupta91,

Could you please try following(tested with GNU awk).

awk --re-interval '{match($0,/[0-9]{4}-[0-2][0-9]-[0-9]{2} [0-2][0-9]:[0-5][0-9]:[0-5][0-9].*/);print...
3,178
Posted By RudiC
I'm afraid you can't remove the search pattern...
I'm afraid you can't remove the search pattern from grep's result. Either use a different pattern ( e.g. "[ttp" ), or use a different tool ( like sed or awk )
1,930
Posted By itkamaraj
What's wrong with cat access_log2016-08-24???.log...
What's wrong with cat access_log2016-08-24???.log > access_log2016-08-24.log?
33,905
Posted By RudiC
To the shell, < is the input redirection...
To the shell, < is the input redirection operator. To use it in comparisons, you need to escape it:
if [ "$date1" \< "$date2" ]; then echo 'yes'; fi
yes

Or even
if [ "$date1 < $date2" ];...
2,468
Posted By RavinderSingh13
Hello Ramneekgupta91, I think you should...
Hello Ramneekgupta91,

I think you should remove - from command -60 min ago so only it will give time and date before 60 mins else it is giving 60 mins after time(you could take it as a maths...
2,468
Posted By Don Cragun
Shell variables are not expanded when they appear...
Shell variables are not expanded when they appear inside a single-quoted string. Use double quotes instead of single quotes:
date --date "-$var min ago" +'%Y-%m-%d %H:%M:%S,%3N'
4,345
Posted By Don Cragun
Let me see if I understand this. You have three...
Let me see if I understand this. You have three scripts that do something or nothing and they do whatever they do faster if you run them in parallel than if you run them serially. And, you want us...
1,531
Posted By bdittmar
CENTOS - YUM !
Hello,
use YUM :

-------------

12.2. yum Commands

yum commands are typically run as yum <command> <package name/s>.
By default, yum will automatically attempt to check all configured...
Showing results 1 to 8 of 8

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