10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I want to implement something like this:
if( keyword1 exists)
then
check if(keyword2 exists in the same line)
then replace keyword 2 with New_Keyword
else
Add New_Keyword at the end of line
end if
eg:
Check for Keyword JUNGLE and add/replace... (7 Replies)
Discussion started by: dashing201
7 Replies
2. Shell Programming and Scripting
Hello,
I have a shell script. I would like to add email the curl output. I'd appreciate if you help. Thanks.
#!/bin/bash
while read -r URL ; do if ] ; then echo "keyword changed!!!!"|mail -s "$URL Alert!!!!" info@test.com; fi;done</root/m/url.txt
. (3 Replies)
Discussion started by: tara123
3 Replies
3. Shell Programming and Scripting
Hi friends,
i just want to know the command though which i can get the next word which comes just after a particluar keyword. For example:
suppose text.out is file which contains a pl/sql procedure . i want to find out the word which falls just after the "table1" keyword.
Thank... (7 Replies)
Discussion started by: neelmani
7 Replies
4. Solaris
Hi,
This is my first post.
Please help me.
I wanted to find a particular key word in the entire system not in the filename, it should be in the file content.
The output should display me...
<The filename>, number of times the keyword is repeated.
like
file1: 2
file2: 4... (3 Replies)
Discussion started by: pointers
3 Replies
5. OS X (Apple)
Hi all,
I am in the process of building a shell script as part of a auditing utility. It will search a specified directory for keywords and output results of the file path, and line number that the word was found on. I built a test script (shown below) that does just this, but egrep apparently... (0 Replies)
Discussion started by: tmcmurtr
0 Replies
6. Shell Programming and Scripting
Hi,
How to cut all lines in file before keyword?
from
1 2333214 word ...... some text
2 234343 234234 word ...... some text
3 234324 324 3234 word ...... some text
to
1 2333214
2 234343 234234
3 234324 324 3234 (4 Replies)
Discussion started by: Trump
4 Replies
7. UNIX for Dummies Questions & Answers
Hi all,
I had a query on the usage of $0 in shells. I would appreciate any assistance in this.
We moved from a sun solaris server to a linux server. I ran 2 different pieces on these servers and in one case, the outputs didnt change and in the other case, the outputs were different. The 2... (3 Replies)
Discussion started by: novice1324
3 Replies
8. OS X (Apple)
Unix based fix-it needed?
Platform and feature: search programs on Apple computers (Leopard or Tiger; 10.4 and above; Spotlight)
Problem: the document search feature of these programs produce hits when keyword(s) used appear anywhere in the document's content.
Change required: we need to... (1 Reply)
Discussion started by: Miles
1 Replies
9. Programming
Hello,
What is far keyword in C and for what purpose is it used???
Pls ans.
thanx in advance.
svh (2 Replies)
Discussion started by: svh
2 Replies
10. Shell Programming and Scripting
Hi,
I want to know all the keywords in perl as well as their usage. plz provide if u have any URL regarding this.
In my perl script first 2 lines are
1)use DBI;
2)require "hello.pl";
what is the use these two statements.
i thought the second one may be like include .
Thanks in advance.... (1 Reply)
Discussion started by: sarwan
1 Replies