10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file conatining the below:
---
10.9.16.116:
/tmp/5835113081224811756.jar:
hash: e6df90d38fa86f0e289f73d79cd2cfd2a29954eb
/tmp/4603745991442278706.jar:
hash: e6df90d38fa86f0e289f73d79cd2cfd2a29954eb
10.9.14.126:
/tmp/conf/extra/httpd-ssl.conf:
hash:... (1 Reply)
Discussion started by: mohtashims
1 Replies
2. 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
3. Shell Programming and Scripting
I have some text in a file like so
This is {the
first day
of} my life.
What I would like as output is
This is
my life.
Any text between the curly braces is removed. In the forums I've found statements like
sed 's/<*>//g'
but the problem is that I think that... (12 Replies)
Discussion started by: climatron
12 Replies
4. Shell Programming and Scripting
Hi,
I try to read a multiline text from a console and write it to a file using a bash script. I want to end reading from a console if a user types the key twice. I tried this loop:
while read LINE; do
if 2>/dev/null; then
break
fi
echo -e ${LINE} >> $file
done
However, it doesn't... (8 Replies)
Discussion started by: wenclu
8 Replies
5. Shell Programming and Scripting
Hi all
I have data files which contain data as shown below:
Line 5: FIDE
INST_DESC: DIAM Co Ltd/Japan => MAID Co Ltd/Japan
INST_NME: DIAM Co Ltd/Japan => MAID Co Ltd/Japan
Line 6: FIDE
INST_DESC: DIAM DL/Pimco US Bond Open Born in the USA => MAID DL/Pimco US Bond Open Born in the... (6 Replies)
Discussion started by: Ganesh_more
6 Replies
6. Shell Programming and Scripting
I have a log file that contains several reports with following format.
<Start of delimiter> Report1 header
Report1 header continue
Report1 header continue
Record1 header
Record1 header continue
Record1 header continue
field1 field2 field3 field4
------... (1 Reply)
Discussion started by: yoda9691
1 Replies
7. Shell Programming and Scripting
Hi there
I just wondered if someone could give me some perl advice
I have a bunch of text files used for a wiki that have common headings such as
---++ Title
blah
---++ Summary
blah
---++ Details
Here is the multiline
block
of text I
wish
to (6 Replies)
Discussion started by: rethink
6 Replies
8. Shell Programming and Scripting
Hi,
I have file which has the following content...
GOOD MORNING
**********WARNING**********
when it kicks from the kickstart, sshd daemon should start at last.
(WHEN KICKING ITSELF, NOT AFTER KICKING).
/etc/rc3.d/S55sshd ( run level specification for sshd is 55, now I would want to... (4 Replies)
Discussion started by: skmdu
4 Replies
9. Shell Programming and Scripting
Hi,
I am a newbie to shell scripting and to Linux environment as well.
In my project I am trying to search for following text from the httpd.conf file
<Directory '/somedir/someinnerdir'>
AllowOverride All
</Directory>
and then remove this text and again rewrite the same text.
The... (1 Reply)
Discussion started by: bhushan
1 Replies
10. Shell Programming and Scripting
I am writing script that can run on solaris 10, Linux Fedora and windows taht has cybwin installed.
I want to display a variable containing muli-line text.
using echo command, the variable display all rows in single line i.e. it loses the format.
Is there any other command that displays... (2 Replies)
Discussion started by: mmunir
2 Replies