10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I want to search a small string in a large string and find the locations of the string. For this I used grep "string" -ob <file name where the large string is stored>. Now this gives me the locations of that string. Now how do I store these locations in a text file.
Please use CODE tags as... (7 Replies)
Discussion started by: ANKIT ROY
7 Replies
2. Shell Programming and Scripting
I have a file storing some text
and another file storing some numbers
I want to display characters other than the specified place of strings
one.txt
xyz abc 233 skfo 4r443
sfs abc abcd sd fsdf sdfd
abc 11 abc 33 abc dsaf
two.txt
Nt_djd_k='5-6,7-9'
Nt_hh_l='3-6,7-8'
a=`grep... (4 Replies)
Discussion started by: rahulsk
4 Replies
3. UNIX for Dummies Questions & Answers
I need to search a string for some specific text which is no big deal using grep. My problem is when the search fails to find the text. I need to add text like "na" when my search does not match.
I have tried this command but it does not work when I put the command in a loop in a bash script:
... (12 Replies)
Discussion started by: jojojmac5
12 Replies
4. Shell Programming and Scripting
Hi folks!
I'm trying to get a part of a text inside a text file (sudoers actually) but I'm having trouble.
Here is an example of a text:
Cmnd_Alias DUMMY = /bin/ls /bin/car /usr/bin/whatever
Cmnd_Alias TARGET = test test test test test \
... (6 Replies)
Discussion started by: leandrorius
6 Replies
5. Shell Programming and Scripting
Dear All
I am having a text file which is having more than 200 lines.
EX:
001010122 12000 BIB 12000 11200 1200003
001010122 2000 AND 12000 11200 1200003
001010122 12000 KVB 12000 11200 1200003
In the above file i want to search for string KVB... (5 Replies)
Discussion started by: suryanarayana
5 Replies
6. Shell Programming and Scripting
I am having a text file which is having more than 200 lines.
EX:
001010122 12000 BIB 12000 11200 1200003
001010122 2000 AND 12000 11200 1200003
001010122 12000 KVB 12000 11200 1200003
In the above file i want to search for string KVB and add/replace... (1 Reply)
Discussion started by: suryanarayana
1 Replies
7. HP-UX
Hello everybody,
I have a HP-UX B.11.11.
I had one disk and added one new.
When trying to configure the second disk Not Using the Logical Volume Manager(from SAM) I have this error:
Pid X killed due to text modification or page I/O error
I tryed to add another partion on the first disk,... (5 Replies)
Discussion started by: savus
5 Replies
8. Shell Programming and Scripting
Hi all,
i have a text file something like that
FLAG DATE(YYYYMMDD) TIME(HHMMSS)
FLAG1 DATE20060101 141216
FLAG1 DATE20070101 141216
FLAG2 DATE20060102 140010
FLAG2 DATE20060103 101212
FLAG1 ... (6 Replies)
Discussion started by: gfhgfnhhn
6 Replies
9. Shell Programming and Scripting
Hi,
I need to append string "Hi" to the beginning of the lines containing some specific string. How can I achieve that?
Please help.
Malay (1 Reply)
Discussion started by: malaymaru
1 Replies
10. Programming
Hi!,
while launching my C application on HP-UX 10.2 workstation, I get the following error message sometime:
Pid 9951 killed due to text modification or page I/O error
Could someone tell me what does this error means?? and how is this caused?
Thanx in Advance,
JP (4 Replies)
Discussion started by: jyotipg
4 Replies