Search Results

Search: Posts Made By: arun_maffy
2,039
Posted By arun_maffy
I have a file like this: % 10 % NAME_1 ...
I have a file like this:
%
10
%
NAME_1
NAME_2
NAME_3
NAME_4
%
LOCAL
%
02/02/12
%
08:00:00
%
YES
%

Where I need to change the value of LOCAL to POINT. Since the value of LOCAL is...
2,039
Posted By arun_maffy
Hi Corona, Thanks for the explanation....
Hi Corona,

Thanks for the explanation. Could you please tell me how to change this code to replace the % to POINT only for the particular in specific the 3rd occurrence and come out immediately...
2,039
Posted By arun_maffy
Help in understanding awk expression
Hi,
Could somebody help me in understanding the following awk expression:


awk -v n="POINT" '/%/{print $0 "\n" n ;next}1' < file name


Thanks,
Arun
6,212
Posted By arun_maffy
Sorry, but can you please be more detailed,as I'm...
Sorry, but can you please be more detailed,as I'm not well versed with PERL terms.

Thanks again,
6,212
Posted By arun_maffy
Hi DGPickett, Yes, you got that exactly. How...
Hi DGPickett,

Yes, you got that exactly. How to implement the second method you mentioned, like running 2 main programs with a login pipe. I don't want to run a separate perl script on the remote...
6,212
Posted By arun_maffy
calling perl subroutine from perl expect module
All,

Is it possible to call a subroutine from the perl expect module after logging to a system that is within the same program. My situation is I need to run a logic inside a machine that I'm...
3,129
Posted By arun_maffy
Thanks Pludi
Thanks Pludi
3,129
Posted By arun_maffy
Handling SQL prompt through Perl expect module
Hi All,

I have a doubt whether expect module in perl will work in SQL prompt or its applicable only for shell prompt ?

Thanks,
Arun V
17,854
Posted By arun_maffy
Guru, Thanks for the explanation.
Guru,

Thanks for the explanation.
17,854
Posted By arun_maffy
Even though I run while returning back to the...
Even though I run while returning back to the main menu it doesn't help me because once the script exits the env variables would die, so there is no way I can set the env variable to the parent...
17,854
Posted By arun_maffy
If my understanding is right, the source command...
If my understanding is right, the source command is used to use the external file for the menu script which it is being called. But my query is once I execute the config file the env variables should...
3,784
Posted By arun_maffy
check if this would suffice you awk -F:...
check if this would suffice you


awk -F: '{print $1}' < filename
17,854
Posted By arun_maffy
Setting environment variable using shell script
Hi All,

I'm trying to write an menu driven program to automate some functions which involve loging to multiple hosts. The hosts can differ for every use, so I thought I would use an config file...
4,648
Posted By arun_maffy
Hi dazdseg, Thanks for your effort but...
Hi dazdseg,

Thanks for your effort but the syntax didn't help. I saw the below code from another post named "Variable Substituion" by cfajohnson:


BITTER=qwerty
SUBSET_BIT_NUM=TER
...
4,648
Posted By arun_maffy
Variable substitution in TCL
Hi,

I have a scenario in which I have to substitute the variable to call the procedure "login" in Tcl.

for {set i 1} {$i<=2} {incr i} {
login "$spawn_id$i"
}
I have the variables $spawn_id1...
8,103
Posted By arun_maffy
Thanks for your efforts...
Thanks for your efforts...
8,103
Posted By arun_maffy
I'm using AIX and this is the output I'm getting ...
I'm using AIX and this is the output I'm getting


date
exit
Tue Jun 29 06:45:40 EDT 2010
<Hostname>exit
Connection closed.
8,103
Posted By arun_maffy
Hi Radoulov, Are you not getting the...
Hi Radoulov,

Are you not getting the output of date command on the terminal ?
5,769
Posted By arun_maffy
set -o vi use ESC + \ for auto completion...
set -o vi


use ESC + \ for auto completion
use ESC and the vi commands for remaining actions
8,103
Posted By arun_maffy
In the below sample code I wanted the action...
In the below sample code I wanted the action "date" not shown to the user.

#! /usr/local/bin/expect --

set timeout 120
log_user 0

spawn telnet <hostname>

expect "login: $"
send "...
8,103
Posted By arun_maffy
Suppressing output of a spawned telnet process
Hi,

I'm trying to spawn a telnet process and trying to do some actions in the remote host using expect script. I would like to know how to suppress all the output in order the user using the...
3,148
Posted By arun_maffy
Tyler, This is what I expected and thanks...
Tyler,

This is what I expected and thanks a lot for your effort. If possible could you please explain the command.

Arun
3,148
Posted By arun_maffy
Tyler, Sorry I made a mistake, I need it...
Tyler,

Sorry I made a mistake, I need it like

Input:

1 abcdefghij
2 the quick brown fox abc
3 yet another line
4 abcdef abcdef abcdef
5 the abc quick...
3,148
Posted By arun_maffy
Tytalus, Thanks that works fine. But how to...
Tytalus,

Thanks that works fine. But how to check the exact match of abc

For example if a file has

abc
abcd

the command should replace only the line that contains abc and not the abcd...
3,148
Posted By arun_maffy
substitution using perl
Hi All,

I need the perl version of the below sed command:


sed 's/abc.*/&.txt/g' <filename>
Because I'm trying to do some replacement recursively using perl and the above replacement is...
Showing results 1 to 25 of 38

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