Search Results

Search: Posts Made By: thiuda
5,173
Posted By thiuda
Yeah, sure there are plenty of ways to get the...
Yeah, sure there are plenty of ways to get the time from date. My problem was that I did not know that sed treads + and { primarily as a normal character and not as a regex.

Maybe we should start...
5,173
Posted By thiuda
sure, I could also use date | awk '{print...
sure, I could also use

date | awk '{print $4}'


:)
5,173
Posted By thiuda
Why do I have to escape something like * and . to...
Why do I have to escape something like * and . to get the character and escape + and { to get the regex?

Isn't that a kind of counter logic?

Thanks for the help
5,173
Posted By thiuda
Sed regex problem
Hi,

I tried to extract the time from `date` with sed.
(I know it works with `date +%H:%M:%S` as well)

I got three solutions of which just one worked. I thought "+" should repeat the previous...
Showing results 1 to 4 of 4

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