10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hello
I want to check on first column duplicates and print the unique first and second columns
My trial output is not generating what I needed, i.e the second column.
thanks in advance (5 Replies)
Discussion started by: bhargavpbk88
5 Replies
2. OS X (Apple)
Hello,
I have recently imported all my scripts into OS X. There is one unix command that is problematic in the new environment:
sort temp7.txt | uniq -u -w4 > temp8.txt
The system doesn't seem to like the -w tag. Is there an alternative command?
Here is the objective:
Data:
1234 aaa... (1 Reply)
Discussion started by: palex
1 Replies
3. Shell Programming and Scripting
I have a master list of servers. I also have a list of servers I'm not supposed to touch. I'm trying to filter out the list servers that I'm not supposed to touch from the master list of servers, so I will have a "master list of servers I can touch". When I try to filter these I'm not getting... (4 Replies)
Discussion started by: MaindotC
4 Replies
4. Shell Programming and Scripting
Hi
I'm having a file (extract.txt) which contains lots of repeated values i want to extract it only with unique values,while am using the the uniq command
It result's with 1510 lines this too have the duplicates,pls help me on this.
I attached my extract.txt file as attachment here.
... (2 Replies)
Discussion started by: thelakbe
2 Replies
5. Shell Programming and Scripting
When I do uniq -c on a list of sorted numbers,
for eg:
1
1
2
2
2
3
3
4
It outputs 2 1
3 2
2 3
1 4.
Now, is there a way to sort on the column that "uniq -c" produced? (2 Replies)
Discussion started by: prasanna1157
2 Replies
6. Shell Programming and Scripting
Hi folks,
Below is the content of a file 'tmp.dat', and I want to keep the uniq record (key by first column). However, the uniq record should be the last record.
302293022|2|744124889|744124889
302293022|3|744124889|744124889
302293022|4|744124889|744124889
302293022|5|744124889|744124889... (4 Replies)
Discussion started by: ChicagoBlues
4 Replies
7. Shell Programming and Scripting
I call....
cat 1.txt | uniq -c
Sample of whats in 1.txt
vmstat
cd
exit
w
cd
cd
cd
newgrp
xinit
f
cd
cd
cd
rlogin (2 Replies)
Discussion started by: Bandit390
2 Replies
8. UNIX for Dummies Questions & Answers
Dear all,
It's not entirely clear to me from manpage the difference between them.
Why we still need "-u" flag?
- monkfan (3 Replies)
Discussion started by: monkfan
3 Replies
9. Shell Programming and Scripting
How can I use uniq on a certain field or what else could I use? If I want to use uniq on the second field and the output would remove one of the lines with a 5.
bob 5 hand
jane 3 leg
jon 4 head
chris 5 lungs (1 Reply)
Discussion started by: Bandit390
1 Replies
10. Shell Programming and Scripting
Hi,
I'd like to have a script what takes the 'who' output and grabs the user names and outputs just the user name, and no duplicates.
I know I could do something like:
who | awk '{print $1}' | uniq -u
but I'd like to stay away from using the 'uniq' comand and just use awk.
Thanks (5 Replies)
Discussion started by: lochraven
5 Replies
GROFF_MOM(7) Miscellaneous Information Manual GROFF_MOM(7)
NAME
groff_mom - groff `mom' macros
SYNOPSIS
pdfmom [-Tps [pdfroff options]] [groff options] files ...
groff [-mom] files ...
groff [-m mom] files ...
DESCRIPTION
mom is a macro set for groff, designed primarily to format documents for PDF and PostScript output.
mom provides two categories of macros: macros for typesetting, and macros for document processing. The typesetting macros provide access
to groff's typesetting capabilities in ways that are simpler to master than groff's primitives. The document processing macros provide
highly customizable markup tags that allow the user to design and output professional-looking documents with a minimum of typesetting
intervention.
Files processed with pdfmom (man(1) pdfmom), with or without the -Tps option, produce PDF documents. The documents include a PDF outline
that appears in the 'Contents' panel of document viewers, and may contain clickable internal and external links.
When -Tps is absent, groff's native PDF driver, gropdf, is used to generate the output. When given, the output is still PDF, but process-
ing is passed over to pdfroff, which uses groff's PostScript driver, grops. Not all PDF features are available when -Tps is given; its
primary use is to allow processing of files with embedded PostScript images.
Files processed with groff -mom (or -m mom ) produce PostScript output by default.
mom comes with her own very complete documentation in HTML format. A separate PDF manual, Producing PDFs with groff and mom, covers full
mom/PDF usage.
FILES
om.tmac
- the main macro file
mom.tmac
- a wrapper file that calls om.tmac directly.
</usr/share/doc/groff-1.22.2/html/mom/toc.html>
- entry point to the HTML documentation
/usr/share/doc/groff-1.22.2/pdf/mom-pdf.pdf
- the PDF manual, Producing PDFs with groff and mom
/usr/share/doc/groff-1.22.2/examples/mom/*.mom
- example files using mom
AUTHOR
mom was written by Peter Schaffter <peter@schaffter.ca>.
PDF support was provided by Deri James <deri@chuzzlewit.demon.co.uk>.
Please send bug reports to the groff-bug mailing list <bug-groff@gnu.org> or directly to the authors.
Groff Version 1.22.2 7 February 2013 GROFF_MOM(7)