Calendar AWK


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Calendar AWK
# 1  
Old 05-29-2011
Calendar AWK

Hi, how should I use system command cal (calendar) in awk?, I have try several combinations and none works.

Here what I have done.
  • awk -f '{print cal}'
  • awk -f '{print 'cal'}'
  • awk -f '{print "cal"}'
  • awk -f {print cal}
Regards.
# 2  
Old 05-29-2011
depending on what you're after..... What are you after?
Code:
nawk '{system("cal");}' myFile

This User Gave Thanks to vgersh99 For This Post:
# 3  
Old 05-29-2011
I pretend to show calendar, but I only can use awk command.

Your answer was very useful, thanks!
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Autosys - Extended Calendar

Does anyone know if you can create an Extended Calendar in Autosys that will do the following...Schedule on the last business day of the month, but if the last business day falls on a Mon-Thur...schedule on the next business day (1st of the next month) ? (1 Reply)
Discussion started by: amarq0004
1 Replies

2. Shell Programming and Scripting

sort calendar files

I have a few .calendar files /usr/share/calendar they look like 01/01<TAB>Anniversary of the Triumph of the Revolution in Cuba 01/24<TAB>Gold discovered in California at Sutter's Mill, 1848 01/28<TAB>First ski tow, Woodstock VT, 1914 01/28<TAB>Space Shuttle Challenger (51-L) explodes 74... (2 Replies)
Discussion started by: p100x1
2 Replies

3. UNIX for Advanced & Expert Users

calendar in unix

how to get the calendar for the year 10000 like we get calendar for say year 2010. $ cal 2010 2010 Jan Feb Mar S M Tu W Th F S S M Tu W Th F S S M Tu W Th F S 1 2 1 2... (11 Replies)
Discussion started by: hiten.r.chauhan
11 Replies

4. Shell Programming and Scripting

Help with filtering dates from the calendar

Hi, I need a simple shell script to help filter weekends from the calendar of a month. In other words, i need a script to identify the working days in a month. (3 Replies)
Discussion started by: pravsripad
3 Replies

5. Shell Programming and Scripting

Importing Autosys Calendar.

Hi All, I'm try to import a Calendar in Autosys using below command, autocal_asc -I TKY_Test Utility to Add/Delete or Print entries in Calendar. Calendar Name: But it not allowing me to import the calendar, it asks for the calendar which is similair if we try to manually add calender... (1 Reply)
Discussion started by: arvindcgi
1 Replies

6. Web Development

Calendar on web - newbie

Hi folks, I am kind of new to these things. I want to create a web based database which will serve as a sort of vacation calendar for the employees so that we know how many men we have at a given date. We want this to be seen on internal pages only, so it will be accessed by a username and... (3 Replies)
Discussion started by: apprentice
3 Replies

7. Shell Programming and Scripting

autosys calendar

Hi, Is there any autosys calendar for last day of a month(irrespective of holidays) For eg., Jan 31, Feb 28(29), Mar 31, Apr 30 ... Thanks in Advance (2 Replies)
Discussion started by: rspk_praveen
2 Replies

8. Shell Programming and Scripting

Derive date from a calendar

I'm using AutoSys as scheduler for my application. I maintain a calendar in AutoSys which specifies when a job should run. A unix shell scripts runs on the days spceified by calendar and processes incoming files. These incoming files contain dates embedded in the filenames. My job needs to... (2 Replies)
Discussion started by: autouser123
2 Replies
Login or Register to Ask a Question