05-23-2005
Please start using the SEARCH button - this question has been answered in past threads such as
this
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am beginner to UNIX.
I wanted to display 5 filesname with size from BIN directory. The order of display should be descending order in size.
Can help me. (1 Reply)
Discussion started by: giridher2000
1 Replies
2. Solaris
Hi,
Does anyone know what i need to do to get the 'é' character to display on a Solaris 9 server. When i try to cut and paste it onto some of my machines via telnet it displays an 'i' but other machines with the same OS version are ok. It also doesn't like Japanese Characters.
Any help would be... (0 Replies)
Discussion started by: mwfisher
0 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have to append "abc$abc" to the existing data in solaris.When i run my unix script it is writing only "abc" instead of "abc$abc"
Please let me know if we can write $ to the data.Please advice! (2 Replies)
Discussion started by: ammu
2 Replies
4. Shell Programming and Scripting
Hi,
Am new to unix..i want some help..
when am using ls command like ls-ltr it displaying output like this:
rw-r--r-- 1 infauser dba 36 Jun 16 12:36 s1_midify
-rw-r--r-- 1 infauser dba 66 Jun 16 12:42 sample_one
-rw-r--r-- 1 infauser dba 77 Jun 16 13:05... (3 Replies)
Discussion started by: sujana
3 Replies
5. UNIX for Dummies Questions & Answers
I can set permissions on a file with "chmod 777 filename" using octal for the permission levels. Is there a simple way to display the octals rather than the 'rwxrwxrwx' format?
Thanks! (1 Reply)
Discussion started by: JTeter
1 Replies
6. Shell Programming and Scripting
I have two input files like this:
File-1
-----
a1234 abc town
f2345 def village
t5678 pqr county
File-2
------
123456 test1 test2 test3 id-a1234
789012 test2 test4 id-t5678
456789 test7 id-b1234
I want to check the lines that match the first field of File-1 in... (7 Replies)
Discussion started by: ajay41aj
7 Replies
7. UNIX for Dummies Questions & Answers
I'm unsure about the topic title, but this is what I want to do.
I have a directory, named /opt/extra and and I want it to be displayed when I issue df command. Just by using df only, not df /opt/extra.
OS: Solaris 10
Current df output
root@jebat10 # df -k
Filesystem kbytes ... (3 Replies)
Discussion started by: Olli.Lang
3 Replies
8. UNIX for Dummies Questions & Answers
Hi guys! I am very much new to UNIX...and I was just wondering on how you would display this text format in UNIX with only just one command :
Text 1
Text 2
Text 3
Texts are in aligned vertically in such format...Thanks for your help :) (8 Replies)
Discussion started by: Knowledge_Xfer
8 Replies
9. Shell Programming and Scripting
Hi I am kind of stuck
I need help with printing only the names of the folder in the format
LAST NAME, F
so last name and the first character of first name
using ls -l command in the /home directory
currently they are in the format firstname.lastname
please advice (4 Replies)
Discussion started by: classic
4 Replies
10. Windows & DOS: Issues & Discussions
I created a directory test. But it is not displaying the group name. Windows 2003R2 machine.
drwxr-xr-x 1 vivek 0 0 Sep 2 12:39 test
uid=1073778986(vivek) gid=1073742337(+Domain Users) groups=1073742337(+Domain Users), 65792(+Everyone), 131616(+Administrators), 4095(CurrentSession),... (1 Reply)
Discussion started by: vkk
1 Replies
CAL(1) BSD General Commands Manual CAL(1)
NAME
cal, ncal -- displays a calendar and the date of easter
SYNOPSIS
cal [-jy] [[month] year]
cal [-j] -m month [year]
ncal [-jJpwy] [-s country_code] [[month] year]
ncal [-Jeo] [year]
DESCRIPTION
The cal utility displays a simple calendar in traditional format and ncal offers an alternative layout, more options and the date of easter.
The new format is a little cramped but it makes a year fit on a 25x80 terminal. If arguments are not specified, the current month is dis-
played.
The options are as follows:
-J Display Julian Calendar, if combined with the -e option, display date of easter according to the Julian Calendar.
-e Display date of easter (for western churches).
-j Display Julian days (days one-based, numbered from January 1).
-m month
Display the specified month.
-o Display date of orthodox easter (Greek and Russian Orthodox Churches).
-p Print the country codes and switching days from Julian to Gregorian Calendar as they are assumed by ncal. The country code as deter-
mined from the local environment is marked with an asterisk.
-s country_code
Assume the switch from Julian to Gregorian Calendar at the date associated with the country_code. If not specified, ncal tries to
guess the switch date from the local environment or falls back to September 2, 1752. This was when Great Britain and her colonies
switched to the Gregorian Calendar.
-w Print the number of the week below each week column.
-y Display a calendar for the specified year.
A single parameter specifies the year (1 - 9999) to be displayed; note the year must be fully specified: ``cal 89'' will not display a calen-
dar for 1989. Two parameters denote the month and year; the month is either a number between 1 and 12, or a full or abbreviated name as
specified by the current locale. Month and year default to those of the current system clock and time zone (so ``cal -m 8'' will display a
calendar for the month of August in the current year).
A year starts on Jan 1.
SEE ALSO
calendar(3), strftime(3)
HISTORY
A cal command appeared in Version 5 AT&T UNIX. The ncal command appeared in FreeBSD 2.2.6.
AUTHORS
The ncal command and manual were written by Wolfgang Helbig <helbig@FreeBSD.org>.
BUGS
The assignment of Julian--Gregorian switching dates to country codes is historically naive for many countries.
BSD
November 23, 2004 BSD