10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi ,
am getting output file, it sontains the below values.
./hawk_DOM1_FIRST_ENV
./hawk_DOM2_SECOND_ENV
./hawk_DOM3_THIRD_ENV
Now I need to grep the word "DOM1_FIRST_ENV","DOM2_SECOND_ENV"
like that.
I tired with cut -d "_". Its not working with any deleimiter.
Can you please help to... (3 Replies)
Discussion started by: ckchelladurai
3 Replies
2. Shell Programming and Scripting
Hi,
x=GATE
ps -ef|grep pmon
grid 552 1 0 Aug08 ? 00:00:51 asm_pmon_+ASM1
oracle 4314 1 0 Aug08 ? 00:04:08 ora_pmon_GATE1
oracle 5018 1351 0 10:14 pts/1 00:00:00 grep pmon
oracle 7329 1 0 Aug08 ? 00:02:19 ora_pmon_NRID1
ps... (3 Replies)
Discussion started by: rcc50886
3 Replies
3. Shell Programming and Scripting
I am attempting to grep an exact string from a series of files within a directory and append that output to the filename when it is present in the file. I've been after this all day with no luck. Thanks for your help in advance :wall:. (4 Replies)
Discussion started by: JC_1
4 Replies
4. Shell Programming and Scripting
QUESTION1:
How do you grep only an exact string. I am using Solaris10 and do not have any GNU products installed.
Contents of car.txt
CAR1_KEY0
CAR1_KEY1
CAR2_KEY0
CAR2_KEY1
CAR1_KEY10
CURRENT COMMAND LINE: WHERE VARIABLE CAR_NUMBER=1 AND KEY_NUMBER=1
grep... (1 Reply)
Discussion started by: thibodc
1 Replies
5. Shell Programming and Scripting
Hello Everyone,
Im trying to run a search and replace of exact strings and the strings that im using variables that are passed through an array in a while loop. Here is a snip of my code:
USEROLD=`cat oldusers`
USERNEW=`cat newusers`
USEROLDARRAY=( $USEROLD )
USERNEWARRAY=( $USERNEW )... (4 Replies)
Discussion started by: skizim
4 Replies
6. Shell Programming and Scripting
Hi there,
I've search this forum and find this problem could have been solved by,
grep -ho "num=*" input_data
The input_data is,
1\11\num1=100\num2=200\newnum1=220\\@
however, what I have got is ,
num1=100
num1=220
how to get the exact string, (4 Replies)
Discussion started by: liuzhencc
4 Replies
7. UNIX for Advanced & Expert Users
Is there hopefully a way to search for an exact string in Man Pages? I know if I want to search for anything containing -c I can just do this.
/-c
How would I search for "-c"? I want only "-c" to show up. So I tried this.
/"-c"
It took me literally and looked for the quotes also. (13 Replies)
Discussion started by: cokedude
13 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I have a file with the following contents:
I need to create a script or search command that will search for this string 'ENDC' in the file. This string is unique and only occurs in one record. Once it finds the string, I would like it to return positions 101-109 ( this is the date of... (0 Replies)
Discussion started by: Lenora2009
0 Replies
9. Shell Programming and Scripting
Hi All,
I need to search in a csv file as mentioend in the Appendix A for a exact word lets "TEST".
But using teh below command iam getting TEST1234, TEST12 and otehr entries as well.
the problem is i check this condition to check to add a record to a table by making sure it does not... (16 Replies)
Discussion started by: rahman_riyaz
16 Replies
10. Shell Programming and Scripting
Hi, Can you help please.
I have the following comand:
if ]; then
l_valid_string="Y"
fi
The problem I am trying to solve is that my l_string = ABC and my file contains
ABC
ABC_EFG
I only want back the value ABC exact match. (3 Replies)
Discussion started by: CAGIRL
3 Replies