I have been search all over the internet to find a solution to this.
I have a file that looks like:
-a ItemConfig.custom=true
-a Config.custom=true
go -t malu
-t Use=true
I want to get "malu" as output, and the werid thing is the blank before go is neither space nor tab.
what's the sed... (4 Replies)
Hi,
I want to remove all occurances of a character which follows a ^ symbol.
For ex:
This is a Test ^H^@^@^@^@^@^@ File used in VI. ^@^@^B^VDM-BM-$|M-^_M-F^AM-
In the above example, I should remove all characters which follows a ^.
(^H ^@ ^B ^V etc) and It should print This is a Test... (4 Replies)
Hi
I have a list of files in a folder.I have a search pattern in the file name and i want to remove the file with that pattern.How can that be made
List of files
xxxxx.ID1.yyyyy.zzzzz
yyyy.ID2.bbbbb.kkkkk
xxxxx.ID1.yyyyy.zzzzz
yyyy.ID4.bbbbb.kkkkk
xxxxx.ID1.yyyyy.zzzzz... (2 Replies)
i have nasty html file with 2000+ simbols in 1 row...i need to remove whole the code except title="Some title..." and store those into file with titles (the whole text is in variable text)
i've tried something like this:
echo $text | sed 's/.*\(title=\".+\"\).*/\1/' > titles.html
BUT it does... (13 Replies)
Hi,
i want to remove a certain pattern when i type pwd.
pwd will look like this:
..../....../....../Pat_logs/..../....../...../......
the dotted lines are just random directory names,
i want it to remove the "Pat_logs/...../....../....../" part
so for example:
... (5 Replies)
Hi,
I want to search a pattern in a text file and remove another pattern in that file.
my text file look like this
0.000000 1.970000 F 303 -
1.970000 2.080000 VH VH +
2.080000 2.250000 VH VH +
2.250000 2.330000 VH L -
2.330000 2.360000 F H +
2.360000 2.410000 L VL -
2.410000 ... (6 Replies)
Hi I have a file where i want to remove a char before a specific pattern.
exp:
CREATE TABLE
(
A,
B,
C, ----comma needs to be removed
)AS SELECT
A,
B,
C, ----comma needs to be removed
FROM TABLE.
So i want to delete the comma(,) after the C both ways.Pattern can be... (11 Replies)
In the awk below I am trying to remove all lines above and including the pattern Test or Test2. Each block is seperated by a newline and Test2 also appears in the lines to keep but it will always have additional text after it. The Test to remove will not. The awk executed until the || was added... (2 Replies)
Discussion started by: cmccabe
2 Replies
LEARN ABOUT DEBIAN
whitelist
whitelist(5) BSD File Formats Manual whitelist(5)NAME
pygs -- the PYthon Gateway Script
SYNOPSIS
pygs -t recipient@domain1 -s sender@domain2 [-e envelope@domain3] [-d] [-T] [-V] [-l logfile] [-w whitelist] [-h]
DESCRIPTION
NOTE: this man page is to be continued :)
pygs read from stdin a nntp article, sending it to recipient@domain1 a rfc822 compliant email setting Resent-Sender: sender@domain2 and enve-
lope envelope@domain3 if exists, else sender@domain2.
OPTIONS EXAMPLES
There is some documetation in /urs/share/doc/pyg
I created mailgate user (moderator of local.moderated ng). Every article posted in local.moderated is sent to mailgate, in its .procmailrc
I've put:
:0 bhc * ^To: *local-moderated | $HOME/pygs -t kalfa@localhost -e mailgate@students.cs.unibo.it -s 'cosimo@students.cs.unibo.it'
where kalfa@localhost is the recipient (it usually is a mailing list)
an header extract from kalfa@localhost mbox:
From mailgate@students.cs.unibo.it
From: whosentnntparticle@domain4
To: kalfa@localhost
Resent-Sender: cosimo@students.cs.unibo.it
note that sender and envelope are different. rfc822 says that Sender: have to be a human user (not a program or similia). envelope can mailgate user.
AUTHORS
Cosimo Alfarano <alfarano@students.cs.unibo.it>
BUGS
Boh. send any bug to the author , please.
Debian GNU/Linux July 23, 2000 Debian GNU/Linux