Search Results

Search: Posts Made By: vnimavat
22,150
Posted By Franklin52
Something like this? cal 8 2010 | awk...
Something like this?
cal 8 2010 |
awk 'NR<3{next} {
if(NF==1){
next;print $1;exit
}
if(NF<7){
print $1;exit
}
print $2;exit
}'

Or shorter:
cal 8 2010 | awk 'NR>2 &&...
22,150
Posted By fpmurphy
If you are using ksh93 (Korn Shell 93) the...
If you are using ksh93 (Korn Shell 93) the solution is trivial

fwdom()
{
# add error checking for $1 $2 (month, year)
day=1
dow=$(printf "%(%w)T" "${1}/1/${2}")
(( dow == 0 )) &&...
Showing results 1 to 2 of 2

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