10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Could you please suggest the below requirement.
using the below server log, i just want only the order_id with combination of customer name , error code value as 5000111 & amount value using the shell script
i tired using the command grep "error_code>50001111"... (6 Replies)
Discussion started by: venkat918
2. Shell Programming and Scripting
i search between two strings viz <app-deployment> & </app-deployment> and save the contents in a new file using the code snippet below.
sed -n "/<app-deployment/,/<\/app-deployment>/p" deploy.tmp >found1.tmpBut if the search string apprears more than once in the file then how can i store the... (3 Replies)
Discussion started by: mohtashims
3. Shell Programming and Scripting
I need someone's help in writing correct perl code.
I implemented following code for "multiple search strings replaced with single string".
my $searchStr = 'register_inst\.write_t\(' |... (2 Replies)
Discussion started by: chettyravi
4. Shell Programming and Scripting
Whether we can search multiple strings using or in grep -F
grep -F "string1" "filename.txt"
How to search for multiple string using grep -F as we using grep
grep "string1\|string2" "filename.txt"
Nanthagopal A (10 Replies)
Discussion started by: nanthagopal
5. Shell Programming and Scripting
I have a list of files all over a file system e.g.
/www/sites/moose/foo.txtI'm looking for strings in these files and want to replace each occurrence with a replacement string, e.g.
if I find: '#@!^\&@ in any of the files I want to replace it with: 655#@11, etc.
There... (2 Replies)
Discussion started by: spacegoose
6. Shell Programming and Scripting
I want to search multiple strings in a file . But the search should start with "From" Keyword and end with before "Where" keyword.
Please suggest me.
Thanks (2 Replies)
Discussion started by: sboss
7. Shell Programming and Scripting
I tried awk for this, but failed <or my code is not correct? I dont know>. Can anyone help me on this?
---------- Post updated at 08:34 PM ---------- Previous update was at 08:29 PM ----------
my working file looks like this:
NAME :ABC AGE :15
GENDER... (6 Replies)
Discussion started by: kingpeejay
8. Shell Programming and Scripting
I need to search for some strings in specific positions in a file.
If the strings: "foo1", "foo2" or "foo3" is on position 266 or position 288 in a file i want the whole line printed.
Any idea how to do it? (5 Replies)
Discussion started by: HugoH
9. UNIX for Dummies Questions & Answers
I need to find if there is any error in the last few lines of the log file and send a mail accordingly.For example,
Following errors can be logged in the log file.
ERR_1="DB Connection not established"
I need to find if these errors are found in the log file and... (3 Replies)
Discussion started by: AnneAnne
10. Shell Programming and Scripting
I want to search all the ksh scripts that has following details.
1. Search for "exit 0"
2. Search for "sqlldr" or sqlplus"
3. In the above files i want to search for all the script that has no "case" in it.
Deep (2 Replies)
Discussion started by: deepakpv