Search Results

Search: Posts Made By: vivek_damodaran
2,007
Posted By cero
Thats because the single quotes prevent variable...
Thats because the single quotes prevent variable substitution. Use double quotes instead:
$ x=$(date +%H:%M)
$ echo $x
16:46
$ TZ=UTC date -d "${x} EST" '+%Y%m%d %H:%M'
20121206 21:46
4,622
Posted By bakunin
You might want to know what you did wrong to...
You might want to know what you did wrong to arrive at something different as expected:

Matches in "sed" are always "greedy". That means of different possible matches always the longest possible...
Showing results 1 to 2 of 2

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