Search Results

Search: Posts Made By: imas
3,689
Posted By imas
Hi All, Finally found the solution. ...
Hi All,

Finally found the solution.


[weblogic@ tmp]$ cat check.sh
#!/usr/bin/expect

spawn "./test1.sh"

expect "Select*" { send "24\r" }
sleep 1
expect "Connection*" { send...
3,689
Posted By imas
Hi RudiC you are correct it was a copy paste...
Hi RudiC
you are correct it was a copy paste error kindly ignore.
Trying to get help from my java colleague if he/she can help but i must say it should be pretty easy with shell.

Thanks
...
3,689
Posted By imas
Hi don thanks tried but same error. $...
Hi don

thanks tried but same error.

$ cat file.txt
18
login:uid=inventory
flask1234!
strv-stp

quit
$



$ ssh -N -f -L 50003:127.0.0.1:23 10.64.246.124; telnet 127.0.0.1 50003...
3,689
Posted By imas
Dear Don, Appreciate your quick response....
Dear Don,

Appreciate your quick response. currently what i am trying to do is:



$ cat file.txt

echo "18"
sleep 5
echo "login:uid=inventory"
sleep 5
echo "flask1234!"
sleep 5
echo...
3,689
Posted By imas
Login to remote machine pass commands and capture all in a file
Dear user/friends,

After a long gap of 6 years i am back to this forum to find a solution and i hope i will get a solution or atleast a workaround for the problem:p

Following is my task which i...
3,230
Posted By imas
Hi Khare, Yes you are correct. After...
Hi Khare,

Yes you are correct.

After the finding my 1st pattern I just need to cat each of the result using for loop and grep for my required 2nd pattern and get the required result.

Thank...
3,230
Posted By imas
Thank you for the quick reply. I will update...
Thank you for the quick reply.

I will update you about the results tomorrow once i get back to my terminal.

-Regards,
imas

---------- Post updated 02-03-10 at 10:42 AM ---------- Previous...
3,230
Posted By imas
Goto each directory and subdirectories and grep the required pattern
Hi All,

I need your help in finding pattern from files present in different directories.

I need to search for a pattern "xyz" from "*.txt" files which are present in different levels of...
2,040
Posted By imas
Hi Panyam, Thanks for your time and...
Hi Panyam,

Thanks for your time and suggestion for the awk/sed links.
Definitely i will try to improve my knowledge.

Once again thanks to you and all unix forum members.

Regards,
imas
2,040
Posted By imas
Hi Panyam, Thank you, Thank you, Thank you...
Hi Panyam,

Thank you, Thank you, Thank you very much.
Yes, finally i got the expected output.

But, Please please please do let me know which books i refer from beginner, intermediate and...
2,040
Posted By imas
No it gives me the following error awk:...
No it gives me the following error

awk: syntax error near line 1
awk: bailing out near line 1
2,040
Posted By imas
search pattern present in second field
Hi All,

I have a file with following list.

example 1
========
cat 1.txt
--------
0000cab4752c
0000dab47c2c
...
...
...


Also i have another file 2.txt in which the data is in this...
1,720
Posted By imas
Hi ranjithPr, Thank you very much for this...
Hi ranjithPr,

Thank you very much for this piece of code
sed -n '/Number of Dynamic/','/Number of Static/p' f1|grep -v "[a-zA-Z]"|tr "," "|"

It works fine.

Once again thanks a lot.
...
1,720
Posted By imas
search and goto next line then take the output
Hi All,

I have a file in which the contents are as shown below:

Number of Dynamic Addresses Allocated : 107790 Addresses: ...
2,484
Posted By imas
Yes sir, Good catch, however how to get rid...
Yes sir,

Good catch, however how to get rid of this issue.


Thanks
-imas
2,484
Posted By imas
Hi Dennis Thanks a million This code...
Hi Dennis

Thanks a million

This code works as per my requirement.
sed 's!\(.*\)|\(.*\)|\(.*\)|!s/\2//g!' file2 >temp_file
sed -f temp_file file1

Once again thank you very much for...
2,484
Posted By imas
sort out the required data
Hi All,

I have a file 1.txt which has the duplicate dns entries as shown:

Name: 000f9fbc6738.net.in|Addresses: 10.241.66.169, 10.84.2.222,212.241.66.170
Name: ...
19,103
Posted By imas
Hi, Even I am very new to scripting however...
Hi,

Even I am very new to scripting however i tried this in my local network and its working.

Iam not sure whether it will work with your requirement but it will give you an idea.

One of our...
8,341
Posted By imas
Hi Summer_Cherry, Million thanks for giving...
Hi Summer_Cherry,

Million thanks for giving me the piece of code which will comment starting from second occurance of matched pattern from the starting of line.

intelsol2>cat 1.txt...
8,341
Posted By imas
Yes your assumption is correct and this is a real...
Yes your assumption is correct and this is a real world problem

What iam trying to do is commenting the duplicate Ip's found in the text file ignoring the first occurance as to be valid IP for a...
8,341
Posted By imas
comment/delete a particular pattern starting from second line of the matching pattern
Hi,

I have file 1.txt with following entries as shown:

0152364|134444|10.20.30.40|015236433
0233654|122555|10.20.30.50|023365433
**
**
**

In file 2.txt I have the following entries as...
3,539
Posted By imas
modify a particular pattern starting from second line of the search pattern
Hi,

I think you ppl did not get my question correctly, let me explain

I have 1.txt with following entries as shown:

0152364|134444|10.20.30.40|015236433
0233654|122555|10.20.30.50|023365433...
3,100
Posted By imas
modify a particular pattern starting from second line of the search pattern
Hi,

I am new to this forum and i would like to get help in this issue.

I have a file 1.txt as shown:

apple
banana
orange
apple
grapes
banana
orange
grapes
orange
....

Now i...
Showing results 1 to 23 of 23

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