4Aug/100
Tip of the day: How to remove duplicate entries in a file without sorting
GNU awk is a programming language that is designed for processing text-based data, either in files or data streams, and was created in the 1970s at Bell Labs.
To remove duplicate entries without sorting them, enter:
gawk '!x[$0]++' filename

Subscribe
Calendar
M | T | W | T | F | S | S |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Polls

Quote of the day
All my life I just wanted to be a beatnik. Meet all the heavies, get stoned, get laid, have a good time. That's all I ever wanted. Except I knew I had a good voice and I could always get a couple of beers off of it. All of a sudden someone threw me in this rock 'n' roll band. They threw these musicians at me, man, and the sound was coming from behind. The bass was charging me. And I decided then and there that that was it. I never wanted to do anything else. It was better than it had been with any man, you know. Maybe that's the trouble.
- Janis Joplin -
- Janis Joplin -
Recent Posts
- Ubuntu: How to install the Classic Desktop in Ubuntu 11.10 (Oneiric Ocelot)
- FreeBSD: How to set up an UPnP Internet Gateway Device (IGD) with MiniUPnP and FreeBSD 9.0
- Ubuntu: How to build and install Linksys AE1000 Wireless-N linux driver on Ubuntu 11.10
- FreeBSD: How to Install and Configure a PPTP VPN server with mpd5 on FreeBSD 8.2
- UNIX Tips: How to find broken symbolic links
Recent Comments
- Alisa M. on FreeBSD: How To Upgrade FreeBSD 7 to 8 Stable Release
- Tiffany P on FreeBSD: How to Install Adobe Flash in FreeBSD 8
- angrypotato1 on How To Reset Keyring Password in Ubuntu
- Nick on Ubuntu: How to build and install Linksys AE1000 Wireless-N linux driver on Ubuntu 11.10
- Martin on FreeBSD: How to set up an UPnP Internet Gateway Device (IGD) with MiniUPnP and FreeBSD 9.0
Blogs
Links
Archives
- March 2012 (1)
- February 2012 (1)
- January 2012 (1)
- December 2011 (1)
- November 2011 (4)
- October 2011 (1)
- September 2011 (1)
- August 2011 (1)
- July 2011 (3)
- June 2011 (1)
- May 2011 (1)
- December 2010 (1)
- November 2010 (1)
- October 2010 (4)
- September 2010 (4)
- August 2010 (5)
- July 2010 (3)
- June 2010 (9)
- May 2010 (13)
- April 2010 (23)
- March 2010 (18)
- February 2010 (6)
Tags
apache
bash
boot
bridge
bsd
centos
debian
fedora
freebsd
google
howto
ifconfig
install
linux
make
monitoring
mount
mysql
mysql-server
network
openbsd
openssh
password recovery
pf
pf.conf
php.ini
php5
ports
rhel
samba
security
server
ssh
sysadmin
tips
tips & tricks
tools
tutorial
tweaking
ubuntu
unix
update
upgrade
virtualization
vulnerabilities