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
GEARMAND(1p) User Contributed Perl Documentation GEARMAND(1p)
NAME
gearmand - Gearman client/worker connector.
SYNOPSIS
gearmand --daemon
DESCRIPTION
This is the main executable for Gearman::Server. It provides command-line configuration of port numbers, pidfiles, and daemonization.
OPTIONS
--daemonize / -d
Make the daemon run in the background (good for init.d scripts, bad for running under daemontools/supervise).
--port=7003 / -p 7003
Set the port number, defaults to 7003.
--pidfile=/some/dir/gearmand.pid
Write a pidfile when starting up
--debug=1
Enable debugging (currently the only debug output is when a client or worker connects).
--accept=10
Number of new connections to accept each time we see a listening socket ready. This doesn't usually need to be tuned by anyone, however
in dire circumstances you may need to do it quickly.
--wakeup=3
Number of workers to wake up per job inserted into the queue.
Zero(0) is a perfectly acceptable answer, and can be used if you don't care much about job latency. This would bank on the base idea
of a worker checking in with the server every so often.
Negative One (-1) indicates that all sleeping workers should be woken up.
All other negative numbers will cause the server to throw exception and not start.
--wakeup-delay=
Time interval before waking up more workers (the value specified by --wakeup) when jobs are still in the queue.
Zero(0) means go as fast as possible, but not all at the same time. Similar to -1 on --wakeup, but is more cooperative in gearmand's
multitasking model.
Negative One (-1) means that this event won't happe, so only the initial workers will be woken up to handle jobs in the queue.
COPYRIGHT
Copyright 2005-2007, Danga Interactive
You are granted a license to use it under the same terms as Perl itself.
WARRANTY
This is free software. IT COMES WITHOUT WARRANTY OF ANY KIND.
AUTHORS
Brad Fitzpatrick <brad@danga.com>
Brad Whitaker <whitaker@danga.com>
SEE ALSO
Gearman::Server
Gearman::Client
Gearman::Worker
Gearman::Client::Async
perl v5.10.1 2009-10-05 GEARMAND(1p)