11-26-2019
I need them to be on the same line with comma seperated as it appears in my preferred output.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i have a text its contain many record, but its written in one line,
i want to remove from that line the duplicate record,
not record have fixed width ex: width = 4
inputfile test.txt =abc cdf abc abc cdf fgh fgh abc abc
i want the outputfile =abc cdf fgh
only those records
can any one help... (4 Replies)
Discussion started by: kazanoova2
4 Replies
2. Shell Programming and Scripting
Hi all,
I have a out.log file
CARR|02/26/2006 10:58:30.107|CDxAcct=1405157051
CARR|02/26/2006 11:11:30.107|CDxAcct=1405157051
CARR|02/26/2006 11:18:30.107|CDxAcct=7659579782
CARR|02/26/2006 11:28:30.107|CDxAcct=9534922327
CARR|02/26/2006 11:38:30.107|CDxAcct=9534922327
CARR|02/26/2006... (3 Replies)
Discussion started by: sabercats
3 Replies
3. Shell Programming and Scripting
Hi all,
I have a text file fileA.txt
DXRV|02/28/2006 11:36:49.049|SAC||||CDxAcct=2420991350
DXRV|02/28/2006 11:37:06.404|SAC||||CDxAcct=6070970034
DXRV|02/28/2006 11:37:25.740|SAC||||CDxAcct=2420991350
DXRV|02/28/2006 11:38:32.633|SAC||||CDxAcct=6070970034
DXRV|02/28/2006... (2 Replies)
Discussion started by: sabercats
2 Replies
4. Shell Programming and Scripting
Hello,
I have a log file which is generated by a script which looks like this:
userid: 7
starttime: Sat May 24 23:24:13 CEST 2008
endtime: Sat May 24 23:26:57 CEST 2008
total time spent: 2.73072 minutes / 163.843 seconds
date: Sat Jun 7 16:09:03 CEST 2008
userid: 8
starttime: Sun May... (7 Replies)
Discussion started by: dejavu88
7 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have a list of numbers stored in an array as below.
5 7 10 30 30 40 50
Please advise how could I remove the duplicate value in the array ?
Thanks in advance. (5 Replies)
Discussion started by: Rock
5 Replies
6. Shell Programming and Scripting
Hi,
I am tryung to use shell or perl to remove duplicate characters
for example , if I have " I love google" it will become I love ggle"
or even "I loveggle" if removing duplicate white space
Thanks
CC (6 Replies)
Discussion started by: ccp
6 Replies
7. Shell Programming and Scripting
HI
I have file contains 1000'f of duplicate id's with (upper and lower first character) as below
i/p:
a411532A411532a508661A508661c411532C411532
Requirement: But i need to ignore lowercase id's and need only below id's
o/p:
A411532
A508661
C411532 (9 Replies)
Discussion started by: buzzme
9 Replies
8. Shell Programming and Scripting
Hi ,
I have a pipe seperated file repo.psv where i need to remove duplicates based on the 1st column only. Can anyone help with a Unix script ?
Input:
15277105||Common Stick|ESHR||Common Stock|CYRO AB
15277105||Common Stick|ESHR||Common Stock|CYRO AB
16111278||Common Stick|ESHR||Common... (12 Replies)
Discussion started by: samrat dutta
12 Replies
9. UNIX for Dummies Questions & Answers
Hi,
How can I replace || with space and then remove duplicate from following text?
T111||T222||T444||T222||T555
Thanks in advance (10 Replies)
Discussion started by: tinku981
10 Replies
10. Shell Programming and Scripting
Hi,
i am working on a script that would remove records or lines in a flat file. The only difference in the file is the "NOT NULL" word. Please see below example of the input file.
INPUT FILE:>
CREATE a
(
TRIAL_CLIENT NOT NULL VARCHAR2(60),
TRIAL_FUND NOT NULL... (3 Replies)
Discussion started by: reignangel2003
3 Replies
LEARN ABOUT DEBIAN
sxid.conf
SXID.CONF(5) File Formats Manual SXID.CONF(5)
NAME
sxid.conf - configuration settings for sxid
DESCRIPTION
This is the configuration file used by sxid to define it's parameters for execution. By default it is /etc/sxid.conf but can be anything
using the --config command line option for sxid. Options in this file are in the form of OPTION = "VALUE" . Note that the VALUE must be
contained in double quotes.
OPTIONS
ALWAYS_NOTIFY
If sxid does not find any changes it will not send an email unless you specify "yes" here.
ALWAYS_ROTATE
Usually sxid will only rotate the log files when there is a change from the last run. This is usually best, since all logs will
record a change rather than just a run of the program. If you want to rotate the logs every time sxid is run, regardless of changes,
specify "yes" here.
EMAIL Where to send the email containing the output of changes every time sxid is run. Example:
EMAIL = "Great Admin <root@host.com>"
ENFORCE
Normally sxid only flags items which are suid or sgid and are in a FORBIDDEN directory. With this option set to "yes" sxid will
remove the s[ug]id bit(s) on any files or directories it finds in forbidden directories and report any changes in the email. Note
that directories listed in FORBIDDEN are searched regardless of whether or not they are listed in SEARCH. However, EXCLUDED options
still apply to directories that fall under them.
EXCLUDE
A space seperated list of directories to exclude from the search. Note that if a SEARCH path falls under an EXCLUDE path that it
will still be searched. This is useful for excluding whole directories and only specifying one. Example:
SEARCH = "/usr /usr/src/linux"
EXCLUDE = "/usr/src"
EXTRA_LIST
File that contains a list of (each on it's own line) of other files that sxid should monitor. This is useful for files that aren't
+s, but relate to system integrity (tcpd, inetd, apache...). Example:
EXTRA_LIST = "/etc/sxid.list"
FORBIDDEN
A space seperated list of directories that are not supposed to contain any suid or sgid items. Items which are suid or sgid in these
directories are flagged in the email seperately from the other listings whether there are other changes or not. Example:
FORBIDDEN = "/tmp /home"
IGNORE_DIRS
Ignore entries for directories in these paths. This means that only files will be recorded. You can effectively ignore all directory
entries by setting this to "/".
KEEP_LOGS
This is a numerical value for how many log files to keep when rotating.
LISTALL
Forces a list of all entries to be included in th output. Implies ALWAYS_NOTIFY.
LOG_FILE
The full path of where to store the log files. These will be rotated, each rotated log being suffixed with a digit. The directories
must already exist. This is usually /var/log/sxid.log. Rotated logs would look like /var/log/sxid.log.n where 'n' is the number in
the rotation. The current log has no suffix.
AIL_PROG
Mail program. This changes the default compiled in mailer for reports. You only need this if you have changed it's location and
don't want to recompile sxid.
SEARCH A space seperated list of directories to search. Sxid will use these as a starting point for it's searches. Example:
SEARCH = "/usr /bin /lib"
AUTHOR
Ben Collins <bcollins@debian.org>
REPORTING BUGS
Report bugs to current maintainer Timur Birsh <taem@linukz.org>.
SEE ALSO
sxid(1)
sXid 4.0.5 January 2002 SXID.CONF(5)