10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello guys, would you please help me with this?
this is the line inside a file:
first line Something Today YYDDPPSVXIPYYY0XXXOFFS00000000000?
I'd like to find the position of string XXX from string PYYY
In the example above
XXX starts from 6th position from PYYY
desired... (4 Replies)
Discussion started by: netrom
4 Replies
2. Shell Programming and Scripting
Hello
I would like to get know how to do this:
I got a big file (about 1GB) and I need to find a string (for instance by grep )
and then find all records in this file based on a string.
Thanks for advice.
Martin (12 Replies)
Discussion started by: mape
12 Replies
3. UNIX for Advanced & Expert Users
Hi ,
i have a file with data as below.This is same file. But actual file contains to many rows.
i want to search for a string "Field 039 00" and delete that line and previous 3 lines in that file.. Can some body suggested me how can i do using either sed or awk command ?
Field 004... (7 Replies)
Discussion started by: vadlamudy
7 Replies
4. UNIX for Dummies Questions & Answers
Hi friends,
I have a file where I should search for a string and get the rest of the line but without the delimiter using awk.
for example I have the series of string in a file:
input_string.txt
bbb
ccc
aaa
and the mapping file looks like this.
mapping.txt
aaa|12
bbb|23
ccc|43... (11 Replies)
Discussion started by: kokoro
11 Replies
5. Emergency UNIX and Linux Support
Hello,
I have a 100 line code. I have given a sample of it below:
ABC*654654*1*54.54*21.2*87*1*654654654654
CCC*FS*FS*SFD*DSF
GGG*FGH*CGB*FBDFG*FGDG
ABC*654654*1*57.84*45.4*88*2*6546546545
CCC*WSF*SG*FGH*GHJ
ADA*AF*SFG*DFGH*FGH*FGTH
I need to select the line starting with "ABC" its... (3 Replies)
Discussion started by: nithins007
3 Replies
6. Shell Programming and Scripting
Hello,
I have a 100 line code. I have given a sample of it below:
ABC*654654*1*54.54*21.2*87*1*654654654654
CCC*FS*FS*SFD*DSF
GGG*FGH*CGB*FBDFG*FGDG
ABC*654654*1*57.84*45.4*88*2*6546546545
CCC*WSF*SG*FGH*GHJ
ADA*AF*SFG*DFGH*FGH*FGTH
I need to select the line starting with "ABC" its... (6 Replies)
Discussion started by: nithins007
6 Replies
7. Shell Programming and Scripting
Hi
I have requirement to find nth occurrence in a file and capture data from with in lines (between lines)
Data in File.
<QUOTE>
<SESSION>
<ATTRIBUTE NAME='Parameter Filename' VALUE='file1.parm'/>
<ATTRIBUTE NAME='Service Name' VALUE='None'/>
</SESSION>
<SESSION>
<ATTRIBUTE... (6 Replies)
Discussion started by: tmalik79
6 Replies
8. Shell Programming and Scripting
Can someone tell me how I can do this?
e.g:
Say file1.txt contains:
today is monday
the 22 of
NOVEMBER
2010
and file2.txt contains:
the
11th
month
of
How do i replace the word NOVEMBER with (5 Replies)
Discussion started by: tuathan
5 Replies
9. Programming
Hello. I have a large file that contains a lot of gibberish and also a lot of http addresses. How can i read the file, take out the http addresses, and write each one of them on one line each into another file?
It looks something like this.
... (1 Reply)
Discussion started by: cbreiny
1 Replies
10. Shell Programming and Scripting
Hello
I have a abc.txt file which semicolon delimited. I need to read the first line of the abc.txt file where i need to extract specific string which at specific location.
i.e first line of the abc.txt file is as below
abc;123;xyz;345;678
my requirement is i need to get the 678. I was... (7 Replies)
Discussion started by: dsdev_123
7 Replies
SYNC_MEMBERS(8) System Manager's Manual SYNC_MEMBERS(8)
NAME
sync_members - Synchronize a mailing list's membership with a flat file.
SYNOPSIS
sync_members [options] -f file listname
DESCRIPTION
This script is useful if you have a Mailman mailing list and a sendmail :include: style list of addresses (also as is used in Majordomo).
For every address in the file that does not appear in the mailing list, the address is added. For every address in the mailing list that
does not appear in the file, the address is removed. Other options control what happens when an address is added or removed.
OPTIONS
-n, --no-change
Don't actually make the changes. Instead, print out what would be done to the list.
-w={ yes | no }, --welcome-msg={ yes | no }
Sets whether or not to send the newly added members a welcome message, overriding whatever the list's `send_welcome_msg' setting is.
With -w=yes or -w, the welcome message is sent. With -w=no, no message is sent.
-d={ yes | no }, --digest={ yes | no }
Selects whether to make newly added members receive messages in digests. With -d=yes or -d, they become digest members. With -d=no
(or if no -d option given) they are added as regular members.
-a={ yes | no }, --notifyadmin={ yes | no }
Specifies whether the admin should be notified for each subscription or unsubscription. If you're adding a lot of addresses, you
definitely want to turn this off! With -a=yes or -a, the admin is notified. With -a=no, the admin is not notified. With no -a
option, the default for the list is used.
-f=filename, --file=filename
This option is required. It specifies the flat file to synchronize against. Email addresses must appear one per line. If filename
is `-' then stdin is used.
-h, --help
Print a small help text and exit
listname specifies the list to synchronize.
AUTHOR
Author of Mailman is the Mailman Cabal, see http://www.list.org/ for information. This manpage is written by Tollef Fog Heen
<tfheen@debian.org> for Debian
SEE ALSO
Mailman documentation on http://www.list.org/ and in /usr/share/doc/mailman.
2001-03-10 SYNC_MEMBERS(8)