Search Results

Search: Posts Made By: Ramneekgupta91
3,003
Posted By Ramneekgupta91
Thanks R. Singh for the information. I have...
Thanks R. Singh for the information.

I have used awk --re-interval '{sub(/.*[0-9]{4}-[0-2][0-9]-[0-9]{2} [0-2][0-9]:[0-5][0-9]:[0-5][0-9],[0-9]{3} /,X,$0);print}' Input_file and it works...
3,003
Posted By Ramneekgupta91
Grep command to search a regular expression in a line an only print the string after the match
Hello,

one step in a shell script i am writing, involves Grep command to search a regular expression in a line an only print the string after the match

an example line is below
...
33,699
Posted By Ramneekgupta91
Hello RudiC Thanks for your response. But...
Hello RudiC

Thanks for your response. But your second suggestion will not work correctly. It will give the output yes in any case irrespective of the condition is true or false.

Thanks
33,699
Posted By Ramneekgupta91
How to compare two dates in a specific format ?
Hello,

I am not able to find how to compare two dates in '%Y-%m-%d %H:%M:%S,%3N' format

i have to two dates as below

date1="2016-08-24 09:47:40,444"
date2="2016-08-24 10:45:40,567"

how...
2,416
Posted By Ramneekgupta91
Thank you very much
Thank you very much
2,416
Posted By Ramneekgupta91
How to get a time minus 60 minutes?
Hello,

date --date '-60 min ago' +'%Y-%m-%d %H:%M:%S,%3N'

Above command gives the date and time minus 60 minutes

but the problem i am facing is, i do not want to hardcode the value 60
it...
18,662
Posted By Ramneekgupta91
Today is 28 July 2016, below command will change...
Today is 28 July 2016, below command will change the access time and modification time of file hello.txt to 21 July 2016 13:00 hrstouch -t 1607211300 hello.txt
There is no creation time, therefore...
Showing results 1 to 7 of 7

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