10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
This is a test and only a test for production - prod.
echo "This is a test and only a test for production - prod" | perl -pi -e 's/prod/test/g'
This is a test and only a test for testuction - test
I only want to replace prod, not production.
I also... (3 Replies)
Discussion started by: loktamann
2. Shell Programming and Scripting
I need to identify the exact text of San Antonio Generator Running in the output my script which lands to a text file. Once SED finds the specific text, I need it to insert one line above the matched text.
Here is what I have so far that isn't working all that well for me. Any help would be... (7 Replies)
Discussion started by: jbrass
3. Shell Programming and Scripting
i am writing and i want to take very first word "A924A5FC"from the below o/p
A924A5FC 0910055313 P S SYSPROC SOFTWARE PROGRAM ABNORMALLY TERMINATED
A924A5FC 0908091913 P S SYSPROC SOFTWARE PROGRAM ABNORMALLY TERMINATED
A924A5FC 0906090313 P S SYSPROC SOFTWARE... (4 Replies)
Discussion started by: scriptor
4. Shell Programming and Scripting
i have a file that contains the following:
(ADDRESS = (PROTOCOL = TCP)(HOST = 18.104.22.168)(PORT = 1540))
(SERVICE_NAME = artprd01.com)
(ADDRESS = (PROTOCOL = TCP)(HOST = 22.214.171.124)(PORT =... (2 Replies)
Discussion started by: reignangel2003
5. Shell Programming and Scripting
This may be stupid question but not able to solve it.
How to grep exact word and line along with it.
TEST4:/u00/app/oracle/product/10.2.0/ODS:N... (4 Replies)
Discussion started by: tapia
6. Shell Programming and Scripting
How do you grep only an exact string. I am using Solaris10 and do not have any GNU products installed.
Contents of car.txt
CURRENT COMMAND LINE: WHERE VARIABLE CAR_NUMBER=1 AND KEY_NUMBER=1
grep... (1 Reply)
Discussion started by: thibodc
7. 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
8. UNIX for Dummies Questions & Answers
i'm trying to get grep to do an exact match for the following pattern but..it's not quite working. I'm not too sure where did I get it wrong. any input is appreciated.
echo "$VAR" | grep -q '^test:]name'
if ; then
printf "test name is not found \n"
on... (4 Replies)
Discussion started by: jazzaddict
9. Shell Programming and Scripting
I'm trying to find a exact word match but couldn't do it.
Searching for ABC_NE tried
grep -w </ABC_NE/>
but didn't worked , any awk variants would also help.
---------- Post updated at 08:40 AM ---------- Previous update was at 06:48 AM ----------
I... (2 Replies)
Discussion started by: dinjo_jo
10. UNIX for Dummies Questions & Answers
Is anyone able to help with the following query?
I have an input file with several lines of words, e.g.
I want to search for the exact string "hello" in each line and display:
I... (11 Replies)
Discussion started by: dr_sabz