05-28-2008
bc and wc utilities???
Hi,
Can anybody explain bc and wc system utilities in Unix?
Thanks
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Where can I find Zmodem utilities for Soloris 7
ie: rz sz
thnx (1 Reply)
Discussion started by: SmartJuniorUnix
1 Replies
2. UNIX for Dummies Questions & Answers
I've noticed bzip2 gives a little bit better compression than gzip. So...I'm curious...what's gives the best compression out of all the compression utilities?
Thanks! (6 Replies)
Discussion started by: jalburger
6 Replies
3. HP-UX
Hi,
Can anyone tell me how i can know the version of the utilities (to be specific "make" and "ar") in HP-UX ver 11.00.
thanks,
abey. (3 Replies)
Discussion started by: abey
3 Replies
4. Shell Programming and Scripting
Hi,
My input file is like this
1 11110001 1.1.1.1.1
2 12222212 2.3.44.5.6
3 22223333 1.3.2.4.1.55
Now i need the 2nd column value get printed
I tried with the following command
awk 'NR==1 {print $2}' input
this works fine for only 1st row.I need to change always NR assigned value to... (10 Replies)
Discussion started by: jyo123.jyothi
10 Replies
5. UNIX for Dummies Questions & Answers
I have utilities installed on a UNIX platform and was wondering how i run them. (1 Reply)
Discussion started by: hershey101
1 Replies
6. UNIX for Advanced & Expert Users
Hi Chaps,
Does anyone know of a source of proprietary unix utilities. I often fall into the trap of testing a spot of code on my linux machine, posting the answer in the forums and then realise that the solution may only work with the GNU utils that I use, and not standard posix ones (if there are... (4 Replies)
Discussion started by: wempy
4 Replies
7. UNIX for Advanced & Expert Users
hi experts,
i have a file
sample:
=======
000123 5 7 0008
00345 5 9 0004
how can i get an output as
123 5 7 8
345 5 9 4
thanks in an advance
subhendu (5 Replies)
Discussion started by: subhendu81
5 Replies
8. UNIX and Linux Applications
I'd like to be able to do something like 'select column_a column_c column_b from file.csv'. Scripting it probably wouldn't be too extraordinarily difficult but I'd rather not reinvent the wheel if someone's built a better one already. (3 Replies)
Discussion started by: Corona688
3 Replies
9. Shell Programming and Scripting
Hi gurus/lead,
I have one doubt in crontab. I have shell script source code in one server. where I don't have priviliges acess R/W the shell script in that server.
how can I setup the crontab to pick the code from the other unix server ?
whether is there any possibility.
in my... (1 Reply)
Discussion started by: ramkumar15
1 Replies
comm(1) User Commands comm(1)
NAME
comm - select or reject lines common to two files
SYNOPSIS
comm [-123] file1 file2
DESCRIPTION
The comm utility reads file1 and file2, which must be ordered in the current collating sequence, and produces three text columns as output:
lines only in file1; lines only in file2; and lines in both files.
If the input files were ordered according to the collating sequence of the current locale, the lines written will be in the collating
sequence of the original lines. If not, the results are unspecified.
OPTIONS
The following options are supported:
-1 Suppresses the output column of lines unique to file1.
-2 Suppresses the output column of lines unique to file2.
-3 Suppresses the output column of lines duplicated in file1 and file2.
OPERANDS
The following operands are supported:
file1 A path name of the first file to be compared. If file1 is -, the standard input is used.
file2 A path name of the second file to be compared. If file2 is -, the standard input is used.
USAGE
See largefile(5) for the description of the behavior of comm when encountering files greater than or equal to 2 Gbyte ( 2**31 bytes).
EXAMPLES
Example 1: Printing a list of utilities specified by files
If file1, file2, and file3 each contain a sorted list of utilities, the command
example% comm -23 file1 file2 | comm -23 - file3
prints a list of utilities in file1 not specified by either of the other files. The entry:
example% comm -12 file1 file2 | comm -12 - file3
prints a list of utilities specified by all three files. And the entry:
example% comm -12 file2 file3 | comm -23 -file1
prints a list of utilities specified by both file2 and file3, but not specified in file1.
ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables that affect the execution of comm: LANG, LC_ALL, LC_COLLATE,
LC_CTYPE, LC_MESSAGES, and NLSPATH.
EXIT STATUS
The following exit values are returned:
0 All input files were successfully output as specified.
>0 An error occurred.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWesu |
+-----------------------------+-----------------------------+
|CSI |enabled |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
SEE ALSO
cmp(1), diff(1), sort(1), uniq(1), attributes(5), environ(5), largefile(5), standards(5)
SunOS 5.10 3 Mar 2004 comm(1)