Sponsored Content
Top Forums Shell Programming and Scripting Modifying file to 75 characters Post 302690595 by zaxxon on Thursday 23rd of August 2012 07:28:02 AM
Old 08-23-2012
What have you tried so far? Answers before that from the OP will be moderated.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Modifying the final output file

Hey all, I am haivng n number of files all of them are of the same format but different details. i.e File1 is having the folloeing details: "Account1",123 "Account2",10 "Account3",12355 "Accountn",555 File2 is having the folloeing details: "Account1",1234 "Account2",100... (5 Replies)
Discussion started by: charbel
5 Replies

2. Shell Programming and Scripting

can someone help me with modifying this file

Hi, I have a file which has data kind of like this. Apr 13 08:20:38 uslis10a sendmail: m3DDKSx3006432: usliss26.ca.com Apr 13 08:20:38 uslis10b sendmail: m3DDKSoK006433: usliss26.ca.com Apr 13 08:20:38 uslis10b sendmail: m3DDKcSo006442: usliss26.ca.com Apr 13 08:20:38 uslis10c... (2 Replies)
Discussion started by: eamani_sun
2 Replies

3. Shell Programming and Scripting

Modifying file from outside

hi , I have a javascript file like this: function fnValidateId(){ var array_id = new Array("444","7888","6633","555","146562","3333","33332") var tmp_id = document.form1.id.value; var num=0; while(1) { if(tmp_id ==... (9 Replies)
Discussion started by: Sreejith_VK
9 Replies

4. UNIX for Dummies Questions & Answers

Modifying a .ksh file

Hi, i have created a simple .ksh file in the following manner cat <<EOF >mfile #!/bin/ksh echo "hello world" EOF I have 2 questions 1. now i would like to add a second line after the first echo command e.g. echo "this is line 2" how can i do that ? 2. I would then like... (1 Reply)
Discussion started by: corbusier
1 Replies

5. Shell Programming and Scripting

Inserting text and modifying the file

I am in a dire need of doing this job , please help from shell script or perl script. It will be highly appreciated. Please have a look at the following INPUT file; The first 14 rows are not of interest but I want them to be included in the output file as they are. From the row 14... (3 Replies)
Discussion started by: digipak
3 Replies

6. Shell Programming and Scripting

modifying file using script

Hi, I am new to shell programming, and want to know is it possible to change the contents of file using script? for example, if want to search 2 words and want to replace these words with 2 new words. Regards, Manoj (4 Replies)
Discussion started by: manoj.solaris
4 Replies

7. UNIX for Dummies Questions & Answers

Modifying a file using SED

Dear Members, I have a file which contains data as shown below: LOAD DATA APPEND INTO TABLE xxap.test ( RAW_DATA char(3000) "replace(:raw_data,'*','|')", LOADING_SEQUENCE "xx_gl_bank_fee_s1.nextval", CREATION_DATE SYSDATE, LAST_UPDATE_DATE SYSDATE, ATTRIBUTE1 "DATE_STAMP", ... (1 Reply)
Discussion started by: sandeep_1105
1 Replies

8. Shell Programming and Scripting

Modifying a file?

Hi, I want to convert a file that looks like this >joe XXXXXXXXXXXXXXXXXXX >man BBBBBBBBBBBBBBBBBBBBBSSSSSSSS to something that looks like this (where the spacing is tab seperated) joe XXXXXXXXXXXXXXXXXXX man BBBBBBBBBBBBBBBBBBBBBSSSSSSSS I am able to do the reverse but the other... (3 Replies)
Discussion started by: kylle345
3 Replies

9. Infrastructure Monitoring

modifying existing file using C

Hi all, I have a snmpd.conf file as below. in "SECTION: Trap Destinations" line I want to add "trap2dest <IP>:162 <com_str>" on a new line. For this I wrote following code #include <stdio.h> #include <stdlib.h> int main(void) { FILE *fp; ssize_t read_char_count = 0; ... (2 Replies)
Discussion started by: zing_foru
2 Replies

10. Shell Programming and Scripting

Modifying listener file

Hi Pros, I'm writing a script to modify listener.ora file on multiple hosts. When I ssh to any server from a central server in our environment we are presented with menu to select the instance. I need to set my environment to listener which could be different number on every instance. How can I... (5 Replies)
Discussion started by: humble_learner
5 Replies
MODERATORS(5)							File Formats Manual						     MODERATORS(5)

NAME
moderators - submission addresses for moderated newsgroups DESCRIPTION
When an unapproved article is posted locally to a moderated newsgroup, rather than being passed off to innd(8) for normal handling, it's instead sent via e-mail to the submission address for that newsgroup. The file <pathetc in inn.conf>/moderators lists the submission addresses for moderated newsgroups. This file is used by nnrpd(8), inews(1), and any other program that uses the GetModeratorAddress() routine (see libinn(3).) The moderators file is a list of associations between wildmat(3) patterns matching newsgroups and the submission address for those news- groups. Blank lines and lines starting with a number sign (``#'') are ignored. All other lines should consist of those two fields sepa- rated by a colon. The second field, the submission address, may have at most one %s anywhere in it; if present, this will be replaced by the name of the newsgroup with periods replaced by dashes. If there is a literal ``%'' in the submission address, it must be written as ``%%'' (even if not followed by an ``s''). Here is a sample file: example.important:announce-request@example.com example.*:%s@smtp.example.com gnu.*:%s@prep.ai.mit.edu *:%s@moderators.isc.org Using the above file, postings to the moderated newsgroup in the left column will be sent to the address shown in the right column: example.important announce-request@example.com example.x.announce example-x-announce@smtp.example.com gnu.emacs.sources gnu-emacs-sources@prep.ai.mit.edu comp.sources.unix comp-sources-unix@moderators.isc.org Periods are converted to dashes for historical reasons, from back in the days when periods in the local part of addresses may not be han- dled correctly. It's probably no longer necessary, but so much now depends on it that it can't be easily changed. It's intended that the sample moderators file included in the INN distribution always be sufficient for all world-wide newsgroups. The hosts behind moderators.isc.org have graciously volunteered to handle forwarding tasks for all world-wide newsgroups so that individual sites don't have to keep track of the submission addresses for moderated groups. The forwarding database used by moderators.isc.org is coordinated by moderators-request@isc.org; if you know of a world-wide newsgroup hierarchy that is not correctly handled by modera- tors.isc.org, please send the details to that address. Given that, the only thing you should have to add to the sample file under normal circumstances are the forwarding addresses for local or limited distribution moderated groups. HISTORY
Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews. This is revision 1.6, dated 1999/05/09. SEE ALSO
inews(1), inn.conf(5), libinn(3), wildmat(3). MODERATORS(5)
All times are GMT -4. The time now is 01:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy