10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to write a shell script which takes an input file as an arguement in the terminal e.g. bash shellscriptname.sh input.txt. I would like for the file to be read line by line each time checking if the .txt file contains certain words or letters(validating the syntax). If the line being... (1 Reply)
Discussion started by: Gurdza32
1 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
i am new on this forum, can someone please answer the following questions as i am also new for UNIX, you help would be much appreciated:
1. How do you delete the full directory hierarchy?
2. How do you find out all process run by user Kamran ?
3. how would you extract something... (1 Reply)
Discussion started by: kami151
1 Replies
3. Emergency UNIX and Linux Support
#!/bin/sh
INPUT () {
echo "Please enter line number: "
read LINE
echo "Please enter column number that you want to modify: "
read COLUMN
head -$LINE dataf > line1;
LINE=`expr $LINE + 1`
head -$LINE dataf > line2;
diff line1 line2 > tmp;
sed -e... (18 Replies)
Discussion started by: beginner1988
18 Replies
4. UNIX for Advanced & Expert Users
Hi All,
I need a script that invokes the sql query every 14 days and send email
Very Very urgent this one to me.... (6 Replies)
Discussion started by: bujjisveeru
6 Replies
5. Shell Programming and Scripting
Hi,
I need help urgently for following issue. Pls help me to resolve this issue.
I am calling sql script file(file1.sql) from UNIX Shell Script(script1.ksh) using sql plus and trying to create flat file that contains all records returned from SQL query in SQL script(file1.sql)
I given... (6 Replies)
Discussion started by: praka
6 Replies
6. HP-UX
Hi,
I'm new to unix and i'm using HP Unix
I tried the following and getting error like
1. $sam
sh:sam not found
2.Also i want to monitor/trace other user's command what they are using when am in to the same server
Appreciate if any one help on this (4 Replies)
Discussion started by: msgobinathan
4 Replies
7. Shell Programming and Scripting
I am getting data like this in a flat file
seg No
Test A4 0000002595, A2, test ,Datatest
Test, A1 0000002595, A1,SELF , Employed,1,2,3,400.50
Test, A2 0000002595, A2, test ,Data,eurp
Test, A3 0000002595, A2, test ,Data
I need to produce a flat file so that output file... (0 Replies)
Discussion started by: nikeng
0 Replies
8. Solaris
I have SunOs 5.8. I need to change password using a unix shell script. I have tried to pipe the passwords to the passwd command but does not work. Pls provide a script to change passwds of a list of users using a shell script.
( I have also tried crypt() but did not work)
The flow of the... (2 Replies)
Discussion started by: tofani
2 Replies
9. UNIX for Dummies Questions & Answers
Hi,
could anybody name all the different UNIX versions, producer, historie, etc?
need a short briefing...
THX a lot in advance...
Greetings,
PatrickXXO (2 Replies)
Discussion started by: PatrickXXO
2 Replies
10. UNIX for Dummies Questions & Answers
I think someone hacked my UNIX account and I cannot get back into MY OWN account!!!!!! :( I was wondering if any of the experts here would be able to help me either get back into my account or change my password back to what it was or find out what it is now so I can get back in and change it. ... (2 Replies)
Discussion started by: speedemn
2 Replies
CAL(1) User Commands CAL(1)
NAME
cal - display a calendar
SYNOPSIS
cal [options] [[[day] month] year]
DESCRIPTION
cal displays a simple calendar. If no arguments are specified, the current month is displayed.
OPTIONS
-1, --one
Display single month output. (This is the default.)
-3, --three
Display prev/current/next month output.
-s, --sunday
Display Sunday as the first day of the week.
-m, --monday
Display Monday as the first day of the week.
-j, --julian
Display Julian dates (days one-based, numbered from January 1).
-y, --year
Display a calendar for the current year.
-V, --version
Display version information and exit.
-h, --help
Display help screen and exit.
PARAMETERS
A single parameter specifies the year (1 - 9999) to be displayed; note the year must be fully specified: cal 89 will not display a calendar
for 1989.
Two parameters denote the month (1 - 12) and year.
Three parameters denote the day (1-31), month and year, and the day will be highlighted if the calendar is displayed on a terminal. If no
parameters are specified, the current month's calendar is displayed.
A year starts on Jan 1. The first day of the week is determined by the locale.
The Gregorian Reformation is assumed to have occurred in 1752 on the 3rd of September. By this time, most countries had recognized the ref-
ormation (although a few did not recognize it until the early 1900's). Ten days following that date were eliminated by the reformation, so
the calendar for that month is a bit unusual.
HISTORY
A cal command appeared in Version 6 AT&T UNIX.
AVAILABILITY
The cal command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
util-linux June 2011 CAL(1)