Search Results

Search: Posts Made By: numele
936
Posted By numele
You are right, it does work!
You are right, it does work!
936
Posted By numele
Perl loop until
I have a script that needs to wait on another script to finish. I created a sub routine to check the file for the number 0 but my until statement keeps on going. I tried eq, == and =~ but same thing....
972
Posted By numele
Perl double splits
I have a perl script that I was cleaning up, it works very well, but I was wondering if anyone knows of a better way to double split.

Sample file:...
4,450
Posted By numele
Thank you Scrutinizer! You are Mr. AWK!
Thank you Scrutinizer! You are Mr. AWK!
4,450
Posted By numele
Scrutinizer, your solution works but it is so...
Scrutinizer, your solution works but it is so slow. I have 4400 large files to process and the awk statement I had been using was very fast. If I could just get it to add the next line, it would be...
4,450
Posted By numele
Thank you for the input DRL, but I do not have...
Thank you for the input DRL, but I do not have that grep option A1 on my server.
4,450
Posted By numele
One more issue came up, I need to print the...
One more issue came up, I need to print the interface lines that match and also the next line after the interface.

I have this awk statement, but I can't get the line after, the description line...
4,450
Posted By numele
Scrutinizer, Your awk line works very well,...
Scrutinizer,
Your awk line works very well, thank you. I was using a test file for it first but when using it on the actual files, it worked out fine.
Thanks again!
4,450
Posted By numele
Thank you Scrutinizer, that works. But it skips...
Thank you Scrutinizer, that works. But it skips the first line of the file if there is a match. I think it's because x is empty until after the first line.
4,450
Posted By numele
bartus11, That is a perfect perl line, but the...
bartus11, That is a perfect perl line, but the server I need to run this on does not have perl.
4,450
Posted By numele
Looking for an awk command to print strings only if substring is missing
I have a file that I need to find each interface that has move-group on the interface line and print this line if the lines under the interface does Not have "filter-shared 14".

Example file:
...
3,899
Posted By numele
Perl SSH:Expect stdout
I am having a problem figuring out how to turn stdout on in the middle of my ssh session. If I turn it on or off in the initial session it works, but if I try to turn it on in the middle, I can't...
3,527
Posted By numele
I made some updates to the script and it works,...
I made some updates to the script and it works, may not very beautiful, but it does what I need to look at the first and second line after the string match.

foreach my $host (@HOST){
my $out_fh =...
3,527
Posted By numele
Thank you for replying, but I was looking for a...
Thank you for replying, but I was looking for a code that did not include awk. I am new to perl and know it is very rich, so I believe this can be done strictly in perl.
3,527
Posted By numele
Convert awk line into perl
I have an awk statement in a ksh script that looks for a certain string then looks at each line after to find another match. The match could be the next line or second down and it works well.
...
5,962
Posted By numele
Perl telnet to router run commands from file
I have a perl script that is called with a router name command list file and output file. The command file can be very large, up to 3k of commands. At first I dumped the command list file to an array...
2,490
Posted By numele
Perfect! Thank you!
Perfect! Thank you!
2,490
Posted By numele
Awk, if line after string does not match insert
I have a large file with interface records. I need to check every record that has the string "encapsulation bridge1483" and if the next line after this does not have "ip description" then I need to...
1,648
Posted By numele
Many thanks rdcwayx, works great. I had to change...
Many thanks rdcwayx, works great. I had to change awk to nawk but that was it.
1,648
Posted By numele
Breaking out ip subnet to smaller subnets
I have a script and it works fine, but I am sure this can be shrunk down to something much better. I would appreciate someone taking a crack at it for me.

What it does is take the ip block...
1,784
Posted By numele
Thank you both, worked very well.
Thank you both, worked very well.
1,784
Posted By numele
Typo, sorry that is correct a /21.
Typo, sorry that is correct a /21.
1,784
Posted By numele
awk getline 8 times and if $3 = 8 when subtracted from 1st line,print
I have kind of a strange one here. I have a file of consecutive /24 ip blocks. If there are 8 consecutive ip blocks which represent a /20 then I need to print the first line. I played around and did...
25,043
Posted By numele
Expect script to read file line by line
I have an expect script which is run inside a bash script. I am trying to ssh to a jump server then from the jump server telnet to each router in a file list and run the same command. I tried many...
2,004
Posted By numele
nawk worked, thanks you!
nawk worked, thanks you!
Showing results 1 to 25 of 97

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