10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I have multiple strings in a file which have special character $, when i search strings by ignoring $ with \ using single quotes it returns empty results.
My search strings are set char_1($lock) and set new_char_clear_3($unlock)
I tried searching with
but it returns empty results.However... (3 Replies)
Discussion started by: g_eashwar
2. Shell Programming and Scripting
I need one help to replace particular words in file based on if finds another words in that file .
my self is peter@king.
i am staying at north sydney.
we all are peter@king.
How to replace peter to sham if it finds @king in any line of that file.
Please help me... (8 Replies)
Discussion started by: Rajib Podder
3. Shell Programming and Scripting
I want to grep a log ("server.log") for words in a separate file ("white-list.txt") and generate a separate log file containing each line that uses a word from the "white-list.txt" file.
Putting that in bullet points:
Search through "server.log" for lines that contain any word... (15 Replies)
Discussion started by: nbsparks
4. Shell Programming and Scripting
currently I have process from a raw file to this stage
ALTER TABLE "EXCEL_ADMIN"."TC_TXN_VOID" ADD CONSTRAINT "PK_TC_TXN_VOID" PRIMARY KEY ("TC_TXN_IID")
ALTER TABLE "EXCEL_ADMIN"."TC_TXN_AMT" ADD CONSTRAINT "PK_TC_TXN_AMT" PRIMARY KEY ("TC_TXN_AMT_IID")
ALTER TABLE... (10 Replies)
Discussion started by: jediwannabe
5. Shell Programming and Scripting
I have a file that contains the schedule for a tournament with 41 teams. The team names have spaces in them. I would like to search for each teams schedule and then save that to that teams file
Team name: "Team Two"
I would like to search for all the games for "Team Two" and... (8 Replies)
Discussion started by: knijjar
6. Shell Programming and Scripting
Please can you help me on this:
How to grep for multiple words in a file, BUT for every word found output it to a new line.
FR (8 Replies)
Discussion started by: fretagi
7. Shell Programming and Scripting
I'm a newbie/rookie in Shell scipting. I've done oracle export of a table using Export utility. When I do export, it generates 2 files.
1> .dmp file
2> .dmp.log file.
In .dmp.log file I have to search for a sentence which goes like '0 records have been inserted' and then... (2 Replies)
Discussion started by: samfisher
8. Shell Programming and Scripting
Could you please help me to write a command/script to find follwing:
from the log file i want to grep "resCode89270200100001552311" after that only "<resultCode>40614</resultCode>"
it will be like that:
... (7 Replies)
Discussion started by: thepurple
9. Shell Programming and Scripting
I have a complex problem. I have a file in which words have been joined together:
I want to be able to correctly split the words using a lookup file in which all the words occur:
The lookup file which is meant for look up... (21 Replies)
Discussion started by: gimley
10. Shell Programming and Scripting
I have a file with below content (content is variable whenever new product is launched). I need form a grep command like this
egrep "Unknown product|Invalid symboland so on"
How to do it using a script?
No ILX exch found
exceeds maximum size
AFX... (4 Replies)
Discussion started by: johnl