0

Anyone able to help me with a unix question?

I just need top display two different calendars with different and dates side by side.

31st May 2018, 6:32 PM
Julie Ann
Julie Ann - avatar
11 Antworten
+ 2
i don’t know what you are doing but cal -3| awk '{print substr($0,23)}' works for me
31st May 2018, 7:22 PM
Max
Max - avatar
+ 2
this: paste <(cal 3 2015 | awk '{printf "%-20s\n",$0}') <(cal 4 2015) also worked for me, i typed paste <(cal 3 2015 | awk '{printf "%-20s\n",$0}')<(cal 4 2015) the first time(missing a space) maybe you made the same mistake
31st May 2018, 7:28 PM
Max
Max - avatar
+ 1
i tried that and it would not work
31st May 2018, 7:20 PM
Julie Ann
Julie Ann - avatar
+ 1
give me a moment, i have a linux box here, im trying a few things
31st May 2018, 7:27 PM
Max
Max - avatar
0
which desktop eviroment are you using?
31st May 2018, 7:09 PM
Max
Max - avatar
0
I'm using windows. I'm on the school's server inside of putty. The assignment is to create a project in bash using the vi editor and answer questions. one is to display two calendars side by side. I know how to display a calendar I just can't get them to print side by side. I tried using paste but I'm doing something wrong. i keep getting syntax errors.
31st May 2018, 7:15 PM
Julie Ann
Julie Ann - avatar
0
I'm using windows. I'm on the school's server inside of putty. The assignment is to create a project in bash using the vi editor and answer questions. one is to display two calendars side by side. I know how to display a calendar I just can't get them to print side by side. I tried using paste but I'm doing something wrong. i keep getting syntax errors.
31st May 2018, 7:15 PM
Julie Ann
Julie Ann - avatar
0
IT WORKED!!! thanks
31st May 2018, 7:25 PM
Julie Ann
Julie Ann - avatar
0
wait, How do I print different calendars. like december 2000 and November 2009
31st May 2018, 7:27 PM
Julie Ann
Julie Ann - avatar
0
thank you so much! I don't know what I was doing wrong? It works now.
31st May 2018, 7:32 PM
Julie Ann
Julie Ann - avatar