10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a bunch of documents where I need to change the word pi to pisignage.
No big deal there:
sed -i -e 's/pi/spisignage/g' /path/to/file
However it is finding things like the word stopping and making the word stoppisignageng.
Any suggestions to just find the word pi and change it?
... (3 Replies)
Discussion started by: wspgpete
3 Replies
2. Shell Programming and Scripting
I have a bunch of documents where I need to change the word pi to pisignage.
No big deal there:
sed -i -e 's/pi/spisignage/g' /path/to/file
However it is finding things like the word stopping and making the word stoppisignageng.
Any suggestions to just find the work pi and change it?
... (0 Replies)
Discussion started by: wspgpete
0 Replies
3. Shell Programming and Scripting
Hello,
I try to delete all strings if their first or last word is one of this list of words : "the", "i", "in", "there", "this", "with", "on", "we", "that", "of"
For example if i have this string in an input file "with me" this string will be removed,
Example: input
"the european... (2 Replies)
Discussion started by: cyrine
2 Replies
4. Shell Programming and Scripting
hi all, I'm new there, I'm just playing with perl and lwp and I just successfully created a script for log in to a web site with post. I have a response but I would like to have something like this:
I have in my response lines like:
<div class="sender">mimi020</div>
<some html code.....>... (3 Replies)
Discussion started by: vogueestylee
3 Replies
5. Shell Programming and Scripting
Hi,
i've a string
/u/user/DTE/T_LOGS/20110622_011532_TEST_11_HD_120/HD/TESi T_11_HD_120/hd-12
i need to get string, like
/u/user/DTE/T_LOGS/20110622_011532_TEST_11_HD_120/HD
the words from HD should get deleted, i need only a string till HD, i dont want to use any built in... (4 Replies)
Discussion started by: asak
4 Replies
6. Shell Programming and Scripting
Hi,
Now i work in a code that
1-get data stored in the database in the form of hash table with a key
field which is the " Name"
2-in the same time i open a txt file and loop through it word by word
3- which i have a problem in is that :
I need to loop word by word and check if it is a... (0 Replies)
Discussion started by: eng_shimaa
0 Replies
7. Shell Programming and Scripting
Hello, i'm new with the scripting on unix and i need such script or maby something to that way:
I need to change the the first word in every new line to a given word. Using just /bin/sh ( not using sed, awk, perl and ect).
I would be very grateful. (9 Replies)
Discussion started by: wrwe
9 Replies
8. Shell Programming and Scripting
Hi,
I am writing a script where, i want to parse through $JAVA_OPTS, if it finds the word -cleint it should return "no change needed" or else it should print "change needed".
I tried a lot, but could not get the proper output. I am new to unix shell. If u guys can guide me it would be of gr8... (4 Replies)
Discussion started by: asirohi
4 Replies
9. Shell Programming and Scripting
Hi all,
I have a file with lines written somewhat like this.
aaaa
ccc
aa
linux
browse = no
xssxw
cdcedc
dcsdcd
csdw
police
dwed
dwd
browse = no
cdecec (2 Replies)
Discussion started by: vikas027
2 Replies
10. Shell Programming and Scripting
Hi,
I have following format in file aaa with content below, and would like to seek help from forumer about how to change and swap the position on 2nd field.
5874957|901125|
95874960|650614|
95874966|870308|
901125 to be changed as 25-11-1990 for eg
Can someone help please ?? :)
... (6 Replies)
Discussion started by: cedrichiu
6 Replies