10-06-2008
Great - a followup question
That works great...
But now I need to add a leading and a trailing characters between the lines...
ex.
<p>dog</p>
<p>cat</p>
<p>mouse</p>
Thanks for your help in advance....
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I'm trying to do the following , I have certain variables in a file and then I want to check for these variables in a certain cobol file to see if they contain a certain package if so replace them with value 1 but but that last line is giving problems:
# for each variable in SQL file
... (1 Reply)
Discussion started by: seaten
1 Replies
2. Shell Programming and Scripting
Hi,
I'm trying to do the following , I have certain variables in a file and then I want to check for these variables in a certain cobol file to see if they contain a certain package if so replace them with value 1 but but that last line is giving problems:
# for each variable in SQL file
... (1 Reply)
Discussion started by: seaten
1 Replies
3. UNIX for Dummies Questions & Answers
Hi guys,
I want to replace certain values with the number 1.
But it is also replacing other values which contain the value I want to replace. e.g.:
I want to replace ID-INTERNAL with 1, that's no problem but it will also replace ID-INTERNAL-NON-REM with 1-NON-REM
I don't want to... (10 Replies)
Discussion started by: seaten
10 Replies
4. Shell Programming and Scripting
when i do something like substituting a particular thing with a system variable, i am unable to do that expect the varible name getting into that.
for ex.. i tried,
sed -e 's/date/`date`/g' <if >of
but i got date replaced with "`date`" and not with the actual date ..
same case happened... (5 Replies)
Discussion started by: sskb
5 Replies
5. Shell Programming and Scripting
Hi,
I'm trying to use sed to delete the last three lines of a file. I currently have:
# get the amount of lines in the file
foldernum=`wc -l File_In.txt | cut -c1-8`
# remove the lines in the file
sed "${foldernum}-3,${foldernum}d" File_In.txt > File_Out.txt
I get the error - sed:... (5 Replies)
Discussion started by: Mr_Plow
5 Replies
6. Shell Programming and Scripting
I'm trying to get sed to cut and replace using variables, but it doesnt seem to work, when I run this the mod time of the file does get updated. Is my syntax incorrect in the sed command?
Thanks
#!/usr/bin/ksh
#Modify header
set -x
HEAD=$(cat PBN2CPR1.TXT | awk 'BEGIN { FS = ","... (1 Reply)
Discussion started by: ddurden7
1 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I am able to use sed if I hardcode the find and replace values in a shell script.
This works:
sed -e 's/123v/4567/g' /path/aaa.txt
> /path/aaa.txt.tmp
If I use a variable, I am not able to use sed command. why?
This doesnot work:
i=abc
j=bk${i}
sed -e 's/${i}/${j}/g'... (5 Replies)
Discussion started by: new_learner
5 Replies
8. Shell Programming and Scripting
Is it possible to place a variable in a sed command as such?
sed 's/ret_Priv()/$var/' <filename>
I am doing this under Bourne. (5 Replies)
Discussion started by: plslakewood
5 Replies
9. Shell Programming and Scripting
All
I am trying to produce the following in /etc/ssh/sshd_config,
# IPv4 only
#ListenAddress 0.0.0.0
# IPv4 & IPv6
ListenAddress ::
to
# IPv4 only
ListenAddress <user-entry>
ListenAddress <user-entry>
# IPv4 & IPv6
#ListenAddress ::
The number of user entries can vary.
... (1 Reply)
Discussion started by: miyoung999
1 Replies
10. Shell Programming and Scripting
Im trying to use sed to print value that matches the value in variable and all lines after that.
grep "Something" test.txt | sed -e '/{$variable}/,$b' -e 'd'
I cant get it work, if I replace the $variable with the value it contains, it works fine... (10 Replies)
Discussion started by: olkkis
10 Replies
ONEKO(6) Games Manual ONEKO(6)
NAME oneko - Creates a cute cat chasing around your mouse cursor.
SYNOPSIS
oneko [-help] [-tora] [-dog] [-sakura] [-tomoyo] [-time n] [-speed n] [-idle n] [-name name] [-towindow] [-toname name] [-tofocus] [-posi-
tion geometry] [-rv] [-noshape] [-fg] [-bg]
DESCRIPTION
oneko changes your mouse cursor into mouse and creates a little cute cat and the cat start chasing around your mouse cursor. If the cat
catchup the ``mouse'', start sleeping.
Options
-help Prints help message on usage.
-tora Make cat into "tora-neko", a cat wite tiger-like stripe.
-dog Runs a dog instead of a cat.
-sakura
Runs Sakura Kinomoto instead of a cat.
-tomoyo
Runs Tomoyo Daidouji instead of a cat.
-time interval
Sets interval timer which determine intervals for cat animation. Default value is 125000 and unit is micro-second. Smaller value
makes cat run faster.
-speed distance
Specify the distance where cat jumps at one move in dot resolution. Default is 16.
-idle speed
Specify the threshold of the speed which ``mouse'' running away to wake cat up.
-name name
Specify the window name of cat.
-towindow
When oneko starts with this option, you must select a window by cursor. Then cat appears and starts chasing the window instead of
mouse. You can select another running oneko as the target window. If root window is selected, cat chases mouse as usually. When
the target window is not in sight and not closed, cat chases mouse as usually. If the target window is closed, this program exit.
-toname name
Specify the window name of target to make cat chase it instead of mouse. You can specify another running oneko as the target win-
dow. When the target window is not in sight and not closed, cat chases mouse as usually. If the target window is closed, this pro-
gram exit.
-tofocus
Makes cat run to and on top of focus window. When focus window is not in sight, cat chases mouse as usually.
-position geometry
Specify X and Y offsets in pixels to adjust position of cat relative to mouse pointer.
-rv Reverse background color and foreground color.
-noshape
Don't use SHAPE extension.
-fg color
Foreground color.
-bg color
Background color.
-cursor cursornumber
Specify a cursos number to set when quitting. For example, 132 is the default root cursor.
Resources
Application name is "neko"(or "tora") and class name is "Oneko".
tora Set ``True'' if you want "tora-neko".
time Sets interval timer in micro-second.
speed Sets distance to jump in pixel.
idle Sets speed threshold to wake cat up when ``mouse'' running away.
noshape
Set ``True'' if you don't want to use SHAPE extension.
reverse
Set ``True'' if you want to switch foreground and background color.
foreground
Foreground color.
background
Background color.
Notes
While this program uses XGetDefault, be sure to use "neko.resouce" form. If you run this program as "tora", by hard of soft link, the
-tora option is enabled by default.
BSD Daemon Copyright 1988 by Marshall Kirk McKusick. All Rights Reserved.
Sakura Kinomoto and Tomoyo Daidouji are characters in a comic strip "CARDCAPTOR SAKURA" (CLAMP, Kodansha), with the sanction indicated in
CLAMP SCHOOL WEB CAMPUS (http://www.clamp.f-2.co.jp/).
AUTHOR
Original xneko is written by Masayuki Koba and modified to oneko by Tatsuya Kato, and modified furthermore by John Lerchey, Eric Anderson,
Toshihiro Kanda and Kiichiroh Mukose.
MAINTAINER
Send questions or problems to mukose@hbar.mp.es.osaka-u.ac.jp
ONEKO(6)