Search Results

Search: Posts Made By: p.bhaskar
3,881
Posted By p.bhaskar
Hi, can you please show me some examples for...
Hi,

can you please show me some examples for doing this with rsh.

Thnaks in advance.
3,881
Posted By p.bhaskar
gurus any help in this? ---------- Post...
gurus any help in this?

---------- Post updated at 04:13 AM ---------- Previous update was at 01:09 AM ----------

Any clue for this?
4,799
Posted By p.bhaskar
Many thanks.It was my understanding mistake. ...
Many thanks.It was my understanding mistake.

now say the search string is like "c[o]mp"

So i tried s=c/[o/]mp but it's not working.Can you please help me.

---------- Post updated at 02:03 AM...
4,799
Posted By p.bhaskar
Hi, I have run the code provided by you but...
Hi,

I have run the code provided by you but it's giving me below o/p.

cat data.log
ram
dept
comp
shyam
field
comp

awk '{ A[NR%(n+1)]=$0 }; $0~s {i=(NR-n)%(n+1); if (i in A) print A[i]...
4,799
Posted By p.bhaskar
Please help me in this as i'm not getting how to...
Please help me in this as i'm not getting how to get the each occurrence of a string which is 26 lines above of another string in a file.
4,799
Posted By p.bhaskar
Thanks for the reply. It's giving me o/p like...
Thanks for the reply.
It's giving me o/p like below with a blank line under "omp".data is same as i mentioned in the file.txt.

ram
shyam
omp
4,799
Posted By p.bhaskar
Thanks for the reply. Here in the file i put 2...
Thanks for the reply.
Here in the file i put 2 lines above only.
Actually my requirement is to print the string which is 26 lines above every occurence of "comp" string only.

Sorry if i have...
3,881
Posted By p.bhaskar
Run a shell script from VB
Hi,

I was trying to run a shell script from VB where through shell command i can open the putty screen but couldn't log in to unix.

I tried to send user id and password by sendkeys command also...
4,799
Posted By p.bhaskar
Hi , Thanks for the quick reply.It's giving...
Hi ,

Thanks for the quick reply.It's giving me the correct o/p.Say if i need to finf a string 26 lines before "comp" string do i need to write then?

---------- Post updated at 11:04 AM...
4,799
Posted By p.bhaskar
grep a string in a file
Hi ,

i'm trying to create a code for the belwo scenario.

i have a data in a file file.txt like below.

ram
dept
comp
shyam
field
comp

Now i need write a code to find the string which...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 08:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy