Sponsored Content
Full Discussion: Deleting Code
Contact Us Post Here to Contact Site Administrators and Moderators Deleting Code Post 302895775 by joeyg on Wednesday 2nd of April 2014 10:52:03 AM
Old 04-02-2014
Very prudent approach.
Please make sure to go back and adjust.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Deleting by ID

Need to delete records from a text file. Very new to this and am using pico. The only way i can think of doing this is to generate an ID for every record then tell it to delete that particular ID. First question is how if possible do i give each entry an ID number, the second is would this code... (1 Reply)
Discussion started by: boyler
1 Replies

2. Shell Programming and Scripting

Self deleting script

I have a script like this called "remove.sh": #!/usr/bin/ksh rm remove.sh echo "Deleted myself!" Since UNIX is a scripting language I thought running it like " sh remove.sh" would generate an error/ or ANYTHING except the echo statements output. But the echo statement came out alright! ... (13 Replies)
Discussion started by: Abhishek Ghose
13 Replies

3. UNIX for Dummies Questions & Answers

deleting all the sub directories

hello., i am creating a certain sub directories as apart of my requirement, and then later on i have to delete all those sub directories.. ____________________________________________________ DIR1="/home/pavi/cvs/20071426/TEMP" echo " DIR1 is : " $DESTDIR1 echo... (2 Replies)
Discussion started by: pavan_test
2 Replies

4. UNIX for Dummies Questions & Answers

Deleting old directries

All I want to delete all directories which are modified or created two days before in AIX. Thanx in advance Regards Deepak Xavier (1 Reply)
Discussion started by: DeepakXavier
1 Replies

5. UNIX for Dummies Questions & Answers

df -k and deleting files

hi everybody, urgently need solutioin aftet i execute the command df -k, i get to see al the memory status blah blah if some file system has 95% full then what should i do and any help on how and what to do ? help really appriciated. cheers (4 Replies)
Discussion started by: ajayr111
4 Replies

6. Shell Programming and Scripting

deleting when nothing is there

Hey I know how to use grep to eliminate a row when nothing there is a character that I dont want. But I encountered a problem where there is nothing there. Heres my example: Nam1 Nam2 Year Nam3 Month So for Nam1 there is nothing in the second column so I want to delete it... so... (1 Reply)
Discussion started by: kylle345
1 Replies

7. Shell Programming and Scripting

deleting lines in ex

Hello, im using ex to manipulate some text. Im trying to delete all the lines except those on which a certain regex can be found. the important part of the script: ex temp << 'HERE' g/regex/p HERE this command prints the lines I want to end up with, but it doesnt delete the others.... (2 Replies)
Discussion started by: drareeg
2 Replies

8. UNIX for Dummies Questions & Answers

Deleting a pattern in UNIX without deleting the entire line

Hi I have a file: r58778.3|SOURCES={KEY=f665931a...,fw,221-705}|ERRORS={16_1:T,30_1:T,56_1:C,57_1:T,59_1:A,101_1:A,115:-,158_1:C,186_1:A,204:-,271_1:T,305:-,350_1:C,368_1:G,442_1:C,472_1:G,477_1:A}|SOURCE_1="Contig_1092402550638"(f665931a359e36cea0976db191ff60ff09cc816e) I want to retain... (15 Replies)
Discussion started by: Alyaa
15 Replies

9. Shell Programming and Scripting

Deleting files

Hi I have an AIX server. I'm planning to use the below script to remove 60 days older files. find /path/ -mtime +60 -exec rm -f {} \; I just want to make sure it will only remove the files. I don't want the directories to be removed. If in case it will delete the directories... (2 Replies)
Discussion started by: newtoaixos
2 Replies

10. AIX

Deleting a Directory

I have a directory under my home directory called: my work. I cannot delete this directory and I want to. If anyone needs additional information. Please let me know. Any help you can provide is greatly appreciated. (8 Replies)
Discussion started by: Nerdgirl1313
8 Replies
INEWS(1)						      General Commands Manual							  INEWS(1)

NAME
inews - send a Usenet article to the local news server for distribution SYNOPSIS
inews [ -h ] [ -D ] [ -O ] [ -R ] [ -S ] [ header_flags ] [ input ] DESCRIPTION
Inews reads a Usenet news article (perhaps with headers) from the named file or standard input if no file is given. It adds some headers and performs some consistency checks. If the article does not meet these checks (for example, too much quoting of old articles, or posting to non-existent newsgroups) then the article is rejected. If it passes the checks, inews sends the article to the local news server as specified in the inn.conf(5) file for distribution. OPTIONS
-h In the standard mode of operation, the input consists of the article headers, a blank line, and the message body. For compatibility with older software, the ``-h'' flag must be used. If there are no headers in the message, then this flag may be omitted. -O The default Organization header will be provided if none is present in the article or if the ``-o'' flag is not used. To prevent adding the default, use the ``-O'' flag. -D As a debugging aide, if the ``-D'' flag is used, the consistency checks will be performed, and the article will be sent to the stan- dard output, rather then sent to the server. -A -V -W For compatibility with C News, inews accepts, but ignores, the ``-A'', ``-V'' and ``-W'' flags. -N The C News ``-N'' flag is treated as the ``-D'' flag. -S If a file named .signature exists in the user's home directory, inews will try to append it to the end of the article. If the file cannot be read, or if it is too long (for example, more than four lines or one standard I/O buffer), or if some other problem occurs, then the article will not be posted. To suppress this action use the ``-S'' flag. -R If the ``-R'' flag is used then inews will reject any attempts to post control messages. header_flags Several headers may be specified on the command line, shown in the synopsis above as header_flags. Each of these flags takes a sin- gle parameter; if the value is more than one word (for example, almost all Subject lines) then quotes must be used to prevent the shell from splitting it into multiple words. The options, and their equivalent header, are as follows: a Approved c Control d Distribution e Expires f From w Followup-To n Newsgroups r Reply-To t Subject F References o Organization x Path prefix If the ``-x'' flag is used, then its value will be the start of the header. Any other host will see the site in the header, and therefore not offer the article to that site. The Path will always end not-for-mail. NOTES
If an unapproved posting is made to a moderated newsgroup, inews will try to mail the article to the moderator for posting. It will query the remote news server for a moderators listing. If that doesn't succeed, it will fallback to using the local moderators(5) file to deter- mine the mailing address. If no address is found, it will use the inn.conf file to determine a ``last-chance'' host to try. If the NNTP server needs to authenticate the client, inews will use the NNTPsendpassword(3) routine to authenticate itself. In order to do this, the program will need read access to the passwd.nntp(5) file. This is typically done by having the file group-readable and making inews run setgid to that group. Inews exits with a zero status if the article was succesfully posted or mailed, or with a non-zero status if the article could not be delivered. Since inews will spool its input if the server is unavailable, it is usually necessary to run rnews(1) with the ``-U'' flag on a regular basis, usually out of cron(8). HISTORY
Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews. This is revision 1.27, dated 1996/10/29. SEE ALSO
moderators(5), inn.conf(5). rnews(1). INEWS(1)
All times are GMT -4. The time now is 06:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy