Search Results

Search: Posts Made By: pradeep84in
Forum: Red Hat 08-28-2017
1,198
Posted By RudiC
Please become accustomed to provide decent...
Please become accustomed to provide decent context info of your problem.
It is always helpful to carefully and detailedly phrase a request, and to support it with system info like OS and shell,...
1,908
Posted By MadeInGermany
If you want the variable in the main shell...
If you want the variable in the main shell (instead of a subshell)
then define a function:
yday() {
date '+%m %d %Y' | {
read MONTH DAY YEAR;
DAY=`expr "$DAY" - 1`;
...
1,908
Posted By Don Cragun
Just as date printed three values that you used...
Just as date printed three values that you used read to import into the second stage of your pipeline, you need to print the results you want to export from the second stage of your pipeline and read...
1,375
Posted By RudiC
Use %d instead of %e to get the day zero-padded,...
Use %d instead of %e to get the day zero-padded, or use %-e to rule out padding (may be misleading: $ date +%-e%-m%Y -dtomorrow
122013
).
1,375
Posted By balajesuri
tmstmp=`date +%e%b%Y_%H%M%S` tmstmp=${tmstmp# }...
tmstmp=`date +%e%b%Y_%H%M%S`
tmstmp=${tmstmp# }
file_name=Daily_Check"_"${tmstmp}.out
Showing results 1 to 5 of 5

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