10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All
i need to replace the url1 inside <remote> tag in below xml in first instance and in the second instance with url2.
any help appreciated
<locations>
<hudson.scm.SubversionSCM_-ModuleLocation>
<remote>https://svn2015.com/svn/repos/internalshard</remote>
... (4 Replies)
Discussion started by: madankumar.t@hp
4 Replies
2. UNIX for Dummies Questions & Answers
I have a file that has the words I want to find in other files (but lets say I just want to find my words in a single file). Those words are IDs, so if my word is ZZZ4, outputs like aaZZZ4, ZZZ4bb, aaZZZ4bb, ZZ4, ZZZ, ZyZ4, ZZZ4.8 (or anything like that) WON'T BE USEFUL.
I need the whole word... (6 Replies)
Discussion started by: chicchan
6 Replies
3. Shell Programming and Scripting
Hi Everyone,
I am looking for a simple way for replacing all the files under a directory that use the server "xsgd1234dap" with "xsdr3423pap".
For Example:
In the Directory,
$pwd
/home/nick
$ grep -l "xsgd1234dap" *.sh | wc -l
119
I have "119" files that are still using... (5 Replies)
Discussion started by: filter
5 Replies
4. Shell Programming and Scripting
Hi all,
FileOne
family balance >>>>>
0 0
0 0
java.io.FileNotFoundException: Settings.xml (No such file or directory)
at java.io.FileInputStream.open(Native Method)
..
....
.....
.....
java.lang.NullPointerException
...
.....
......
Stacktrace:
at... (2 Replies)
Discussion started by: linuxadmin
2 Replies
5. Shell Programming and Scripting
Hi,
I have to search a word in a text file and then I have to delete lines above from the word searched . For eg suppose the file is like this:
Records
P1
10,23423432
,77:1
,234:2
P2
10,9089004
,77:1
,234:2
,87:123
,9898:2
P3
456456
P1
:123,456456546
P2
abc:324234 (2 Replies)
Discussion started by: vsachan
2 Replies
6. Shell Programming and Scripting
Hi
I have a file with hundreds of lines, some of the lines have word INITIAL followed by some numbers like
....INITIAL 1234535 ....
....INITIAL 5768644 ....
I would like to replace the number after word INITLA with 4K how can I do it? Cant get my heard around this! The string is always... (3 Replies)
Discussion started by: halacil
3 Replies
7. Shell Programming and Scripting
Hello Gurus,
I have a file which has foll contents scattered:
,TotUnasgndNetAmt
FROM DEV_EIS_T.Wkly_SO_CCD_MOSumSnpsht
WHERE
CalDayRunDt = '2010-07-21'
UNION ALL
SELECT
CalDayRunDt
,BusWkCd
,'N'
I want to replace 2010-07-21 that starts after ' and ends before... (8 Replies)
Discussion started by: indrajit_u
8 Replies
8. UNIX for Dummies Questions & Answers
I am trying to find words in a text with a certain ending with sed and replace them with themselves but wrapped in tabs
ex.: The fish swims in the water. -> searching for -ms ending
The fish <tab>swims<tab>in the water.
I've been trying all sorts of commands and get either an error... (5 Replies)
Discussion started by: stinnes
5 Replies
9. Shell Programming and Scripting
How can i replace a particular word from string i.e.
var="shiv_dutt_para_shar"
wrd="para"
rep_wrd="PARA"
what i am trying to do that first i'll search if $var catains #wrd or not.
if it contains then i've to replace $wrd with $rep_wrd.
I have tried following
#!/bin/sh
t="shiv... (5 Replies)
Discussion started by: jadoo_c2
5 Replies
10. Shell Programming and Scripting
Hi,
this belongs a little to my other post but only at the starting point.
With
find -name "*.htm*" i got a list like this:
./1999/01/file1.html
./1999/01/file2.html
./1999/02/file1.html
./2000/04/file1.html
./2000/04/file2.html
./2000/04/file3.html
./2000/file1.html... (2 Replies)
Discussion started by: Tonda
2 Replies