08-17-2011
Frank it works fine for the first line. But when it comes to the next line of input it does the same error. It removes the complete line instead of just removing the content between the <script> </script> tag.
This time i get the output as
client side java scripting is.......
satheesh here
instead of
client side java scripting is.......
server side ASP is a microsoft technology.......
satheesh here
Second line of input has been deleted as the whole. It seems that the conditional deletion works only for first occurrence.
Thanks
Satheesh
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
i'd like to know if the following is possible with a shell script, and can't find the answer in the search.
Suppose i have a logfile build like this:
# 8 :riuyzp1028
# 38 : riuyzp1028
# 25 : riuyvzp1032
# 30 : nlkljpa0202
# 1 : nlklja0205
# 38 : riuyzp1028
# 25 :... (4 Replies)
Discussion started by: Freerider
4 Replies
2. Shell Programming and Scripting
Hello,
I got a Qstion. Im posting to a phpbb forum with bash and curl.. i have a text file with the following tags that i post to the forum:
$var1
$var2
$var3
How can i with sed or awk put var content from shell script between the ... in the... (7 Replies)
Discussion started by: atmosroll
7 Replies
3. Shell Programming and Scripting
Hi,
Below is my input file:
Data: 1
Length: 20
Got result.
Data: 2
Length: 30
No result.
Data: 3
Length: 20 (7 Replies)
Discussion started by: edge_diners
7 Replies
4. Shell Programming and Scripting
Hi. I'm hoping that someone can help me with a bash script to delete a block of lines from a file.
What I want to do is delete every line between two stings that are the same,
including the line the first string is on but not the second.
(Marked lines to match with !)
For example if I... (2 Replies)
Discussion started by: Zykr
2 Replies
5. Shell Programming and Scripting
Hi guys, I wonder if it's possible to search for a line containing 2 strings and delete that line and perhaps replace the source file with already deleted line(s).
What I mean is something like this:
sourcefile.txt
line1: something 122344 somethin2 24334 45554676
line2: another something... (6 Replies)
Discussion started by: netrom
6 Replies
6. Shell Programming and Scripting
I have some text files in a folder f1 with 10 columns. The first five columns of a file are shown below.
aab abb 263-455 263 455
aab abb 263-455 263 455
aab abb 263-455 263 455
bbb abb 26-455 26 455
bbb abb 26-455 26 455
bbb aka 264-266 264 266
bga bga 230-232 230 ... (10 Replies)
Discussion started by: gomez
10 Replies
7. Shell Programming and Scripting
I need that a certain part of the content below excluded
==Image Gallery== followed by <gallery> and the content until </gallery>
test SED1
==Image Gallery==
<gallery>
Image:car1.jpg| Car 1<sup>1</sup>
Imagem: car2.jpg| Car2<sup>2</sup>
</gallery> test SED2
==Image... (5 Replies)
Discussion started by: dperboni
5 Replies
8. UNIX for Advanced & Expert Users
Hi all,
i have the following line in a record file :
retenu=non
demande=non
script=#vtbackup /path=/save/backup/demande
position=140+70
and i want to use Perl regex to have the following output
key : "retenu" value : "non"
key : "demande" value "non"
key : "script" value :... (2 Replies)
Discussion started by: Fundix
2 Replies
9. Shell Programming and Scripting
Hello,
I have been trying to write a script where I could get awk to delete data before and after a matched pattern.
For eg
Raw data
Start
NAME = John
Age = 35
Occupation = Programmer
City = New York
Certification Completed = No
Salary = 80000
End
Start
NAME = Mary
Age = 25... (2 Replies)
Discussion started by: sidnow
2 Replies
10. UNIX for Beginners Questions & Answers
Hello everybody,
I would like modify some strings using sed or another command line with the content file.
For example:
- {fqdn: "server-01" , ip: "server-01"}
- {fqdn: "server-02" , ip: "server-02"}
- {fqdn: "server-03" , ip: "server-03"}
- {fqdn: "server-04" , ip: "server-04"}
My... (4 Replies)
Discussion started by: dco
4 Replies
LEARN ABOUT DEBIAN
zemberek-server
zemberek-server(8) System Manager's Manual zemberek-server(8)
NAME
zemberek-server - Turkish spell-checker server
SYNOPSIS
zemberek-server [CONFILE]
or
java -jar /usr/share/java/zemberek-server.jar [CONFILE]
DESCRIPTION
zemberek-server is a Java(TM) based ``Turkish'' spell checker daemon which listens a configured port (by default, 10444) for client connec-
tions and responds with the Turkish spell checked output in a server-client fashion. zemberek-server uses Zemberek, a Java(TM) based Turk-
ish NLP library, at its heart.
Certain parts of the servers' behaviour can be controlled in the CONFILE configuration file. For example, to change the listened port one
can use the SERVER_PORT setting in CONFILE.
OPTIONS
There are no options.
NOTES
To make use of the server, a client program is required (see the next section).
FILES
/etc/zemberek-server.conf
configuration file
/var/log/zemberek-server.log
server's log file when running in the background
SEE ALSO
zpspell(1)
the website for further information <https://zemberek.dev.java.net/>
AUTHOR
Zemberek Team:
Ahmet A. Akin <ahmetaa@gmail.com> and Mehmet D. Akin <mdakin@gmail.com>
This manual page was written by Recai Oktas <roktas@debian.org> for the Debian GNU/Linux system, but may be used by others.
Debian/GNU Linux February 2006 zemberek-server(8)