Sponsored Content
Top Forums Shell Programming and Scripting Remove Duplicate Lines in File Post 79048 by Teh Tiack Ein on Monday 25th of July 2005 04:31:19 AM
Old 07-25-2005
Thanks Nir! This is awesome!
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Remove Duplicate lines from File

I have a log file "logreport" that contains several lines as seen below: 04:20:00 /usr/lib/snmp/snmpdx: Agent snmpd appeared dead but responded to ping 06:38:08 /usr/lib/snmp/snmpdx: Agent snmpd appeared dead but responded to ping 07:11:05 /usr/lib/snmp/snmpdx: Agent snmpd appeared dead but... (18 Replies)
Discussion started by: Nysif Steve
18 Replies

2. Shell Programming and Scripting

Command/Script to remove duplicate lines from the file?

Hello, Can anyone tell Command/Script to remove duplicate lines from the file? (2 Replies)
Discussion started by: Rahulpict
2 Replies

3. UNIX for Dummies Questions & Answers

How to delete or remove duplicate lines in a file

Hi please help me how to remove duplicate lines in any file. I have a file having huge number of lines. i want to remove selected lines in it. And also if there exists duplicate lines, I want to delete the rest & just keep one of them. Please help me with any unix commands or even fortran... (7 Replies)
Discussion started by: reva
7 Replies

4. Shell Programming and Scripting

remove duplicate lines from file linux/sh

greetings, i'm hoping there is a way to cat a file, remove duplicate lines and send that output to a new file. the file will always vary but be something similar to this: please keep in mind that the above could be eight occurrences of each hostname or it might simply have another four of an... (2 Replies)
Discussion started by: crimso
2 Replies

5. Shell Programming and Scripting

Remove duplicate lines from first file comparing second file

Hi, I have two files with below data:: file1:- 123|aaa|ppp 445|fff|yyy 999|ttt|jjj 555|hhh|hhh file2:- 445|fff|yyy 555|hhh|hhh The records present in file1, not present in file 2 should be writtent to the out put file. output:- 123|aaa|ppp 999|ttt|jjj Is there any one line... (3 Replies)
Discussion started by: gani_85
3 Replies

6. Shell Programming and Scripting

How do I remove the duplicate lines in this file?

Hey guys, need some help to fix this script. I am trying to remove all the duplicate lines in this file. I wrote the following script, but does not work. What is the problem? The output file should only contain five lines: Later! (5 Replies)
Discussion started by: Ernst
5 Replies

7. Shell Programming and Scripting

Remove duplicate lines from a 50 MB file size

hi, Please help me to write a command to delete duplicate lines from a file. And the size of file is 50 MB. How to remove duplicate lins from such a big file. (6 Replies)
Discussion started by: vsachan
6 Replies

8. Shell Programming and Scripting

Remove duplicate lines from a file

Hi, I have a csv file which contains some millions of lines in it. The first line(Header) repeats at every 50000th line. I want to remove all the duplicate headers from the second occurance(should not remove the first line). I don't want to use any pattern from the Header as I have some... (7 Replies)
Discussion started by: sudhakar T
7 Replies

9. Shell Programming and Scripting

Remove duplicate lines from file based on fields

Dear community, I have to remove duplicate lines from a file contains a very big ammount of rows (milions?) based on 1st and 3rd columns The data are like this: Region 23/11/2014 09:11:36 41752 Medio 23/11/2014 03:11:38 4132 Info 23/11/2014 05:11:09 4323... (2 Replies)
Discussion started by: Lord Spectre
2 Replies

10. Shell Programming and Scripting

Remove duplicate lines, sort it and save it as file itself

Hi, all I have a csv file that I would like to remove duplicate lines based on 1st field and sort them by the 1st field. If there are more than 1 line which is same on the 1st field, I want to keep the first line of them and remove the rest. I think I have to use uniq or something, but I still... (8 Replies)
Discussion started by: refrain
8 Replies
AWSETBG(1)																AWSETBG(1)

NAME
awsetbg - awesome wrapper tool to set background SYNOPSIS
awsetbg [-fctaFCTA wallpaper] [-uU wallpapersetter] [-m #] [-bB fbsetrootoptions ...] [-rR path] [-l] DESCRIPTION
awsetbg is a wrapper that tries to find a suitable background setting application and then tries to set the wallpaper using that application. You do not have to configure awsetbg, since it just uses the first application it finds. Furthermore, it remembers the last wallpaper set, so you do not have to edit anything to change the wallpaper. OPTIONS
-f file Set fullscreen wallpaper. -c file Set centered wallpaper. -t file Set tiled wallpaper. -a file Set maximized wallpaper, preserving the aspect ratio. If the application chosen does not support this option, fullscreen is used as fall back. -u wallpapersetter Use the specified wallpaper setter tool. -r directory Set a random wallpaper from this directory. -F, -C, -T, -A, -U, -R Same as the lowercase options, but without remembering. -l Set the previous wallpaper. If the random feature was the last used, it will set another random wallpaper from this same directory. -i Display useful information about the best application to set the wallpaper found. -m # Use montage to create a big image (image should fit screen size). Requires montage(1). # is the number of screens (columns in montage). -p Display useful tips. -h Display help message. FILES
$XDG_CACHE_HOME/awesome/lastwallpaper or $HOME/.cache/awesome/lastwallpaper files contains the last wallpaper set to use with the -l option. ENVIRONMENT VARIABLES
wpsetters Wallpaper setters to use. DISPLAY Display you want to set the wallpaper on. SEE ALSO
awesome(1) AUTHORS
Julien Danjou <julien@danjou.info[1]> and others. awsetbg is derived from fbsetbg which was written by Han Boetes <han@fluxbox.org[2]>. WWW
http://awesome.naquadah.org NOTES
1. julien@danjou.info mailto:julien@danjou.info 2. han@fluxbox.org mailto:han@fluxbox.org 07/16/2012 AWSETBG(1)
All times are GMT -4. The time now is 11:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy