Search Results

Search: Posts Made By: nirjhar17
1,011
Posted By nirjhar17
I have tried in linux too, but this code is not...
I have tried in linux too, but this code is not giving me any output.

[root@ip-172-31-33-211 ec2-user]# cat /tmp/1 | awk '($0 ~ /^Name:/ && NR !=1){print A;A="";} {if((q ~ /^Name:/ && $0 ~...
1,011
Posted By nirjhar17
Thanks for your help! I am trying on Cygwin and i...
Thanks for your help! I am trying on Cygwin and i am not getting any output from the code provided. Also, if you look in your output you are also receiving "State" after Retention Level, But my...
866
Posted By nirjhar17
Problem with a code.
Guys i have one file and i want the o/p from that file like below

This is my sample file and i want three things from it.

Name:
State just below the Name: dont want the state under the...
1,011
Posted By nirjhar17
Problem with a code.
Guys i have one file and i want the o/p from that file like below

This is my sample file and i want below things from it.

Name:
Sate just below the name:
And retention Level

Name:...
19,297
Posted By nirjhar17
I have pass the IP,username and password in one...
I have pass the IP,username and password in one file. and script is taking inputs from that file. Only issues is it is not storing keys after the session log off under this...
19,297
Posted By nirjhar17
Can some one please help.
Can some one please help.
19,297
Posted By nirjhar17
Hello Ravinder, I cannot open plain ssh...
Hello Ravinder,

I cannot open plain ssh connection for origin because i am using windows host.
That's why i am using Plink to establish ssh connection.

If i am establishing plain plink...
19,297
Posted By nirjhar17
Plink issue in windows
I had a simple automation process to take config backup from san switches to windows via SSH. This can be accomplished using plink.

My script was working fine earlier but from last few days it is...
2,015
Posted By nirjhar17
Yes, i can understand. Thanks Don!!
Yes, i can understand. Thanks Don!!
2,015
Posted By nirjhar17
Thanks Don!! And thanks for the wonderful code....
Thanks Don!! And thanks for the wonderful code. But can you please look in to my code also and tell me how to modify my code so that i will get my write disable,unmap and symmask commands together...
2,015
Posted By nirjhar17
Thanks for your quick reply Andrew!! but, can you...
Thanks for your quick reply Andrew!! but, can you please elaborate it little more i have two inputs "dir" and "ports" and i am not sure how to use them with your example...

i googled little bit...
2,015
Posted By nirjhar17
Hello Andrew i have tried the below code echo...
Hello Andrew i have tried the below code
echo -n "enter the sid for DMX :"
read sid
declare -A dirs ports
echo -n "enter the number of ports :"
read N
for (( i=0;i<N;i++ ))
do
echo "enter...
2,015
Posted By nirjhar17
Hello Andrew, Thanks for the reply.. Please...
Hello Andrew,

Thanks for the reply.. Please check the below code......
echo -n "enter the number of ports :"
read N-----------------------------"i/p value for the loop run"
for (( i=1;i<N+1;i++...
2,015
Posted By nirjhar17
Help Me With the Loop.
I am inputing three variables in the script where i am running loop for two times.so right now my output is coming like
A
B
C

A1
B1
C1

But i want output like
A
A1

B
B1

C
C1...
3,495
Posted By nirjhar17
Thanks for the reply. I got the idea here we use...
Thanks for the reply. I got the idea here we use /1 to store the pattern inside it. and we can store up to 9 patterns.
3,495
Posted By nirjhar17
Hi ygemici, Thanks for the response, I got...
Hi ygemici,

Thanks for the response, I got the desired o/p.

I have also try to under stand ur code.....
sed 's/\(..\)/\1:/g; s/:$//'


i got all the things but can you tell me what is...
3,495
Posted By nirjhar17
The input file is 50060E80058F4900 ...
The input file is

50060E80058F4900
50060E80058F4920
50060E80058F4901
50060E80058F4921
50060E80058F4904
50060E80058F4924
50060E80058F4905
50060E80058F4925
50060E80058F4984...
3,495
Posted By nirjhar17
Thanks for the reply again but i am getting the...
Thanks for the reply again but i am getting the minor mistake....

5:00:60:E8:00:58:F4:90: it is coming like that......:(
3,495
Posted By nirjhar17
Thanks for the reply it is properly working with...
Thanks for the reply it is properly working with the While loop...
but i want to do it with the sed and it is not giveing the right output...

I have little bit idea of sed,it would be great if u...
3,495
Posted By nirjhar17
Need to put semicolon
Hi guys,

I want to write script so that i can put semicolon after every numeric


e.g
input would be like that
50060E80058F49A4


Output should be

50:06:0E:80:05:8F:49:A4
...
5,759
Posted By nirjhar17
Thats G8 buddy, But i want to do scripting...It...
Thats G8 buddy, But i want to do scripting...It would be great if you can tell me how to install vi in Cygwin.

---------- Post updated at 05:23 PM ---------- Previous update was at 05:19 PM...
5,759
Posted By nirjhar17
Vi istallation on Cygwin
Hi,

I have successfully installed the Cygwin on my windows 7 desktop. But i don't know how to install the Vi editor in it.

After so much search i am able to found one vim7.3.tar.bz2. so i...
2,063
Posted By nirjhar17
Thanks for the reply From the given code i...
Thanks for the reply

From the given code i am not able to see the columns heading
Date Time Hostname Error mesage

The rest i can do with the help of...
2,063
Posted By nirjhar17
Hi, Thanks for the reply but i dont know...
Hi,

Thanks for the reply but i dont know much about Perl
If possible can you tell me the same in shell scripting.

Regards
Nirjhar
2,063
Posted By nirjhar17
Want to separate my /var/adm/messages output
Hi,

Please help to seprate my /var/adm/messages output. Than i want to take this
output in the excel.


e,g

cat /var/adm/messages

Sep 4 10:16:52 ibsadm1 inetd[461]: [ID 317013...
Showing results 1 to 25 of 29

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