Search Results

Search: Posts Made By: richsark
886
Posted By richsark
Hi, yes you are correct. So how would I command...
Hi, yes you are correct. So how would I command line it? or modify my shell script? is there a way to run this? The mod I want to install is on a device like I mentioned above.

would I run it as
...
886
Posted By richsark
Ppm conversion to curl on a module install
Hello,

I have a shell script named update.sh that has this:

@echo off
set ip=%1
ppm install --force https://%ip%/api/dist/ppm/richard.ppd

I used to run it like this when I used activestate...
2,525
Posted By richsark
Convert this Windows script so I can use it on Macbook
Hi guys,

I am been banging my head for days on something that appears too simple to be so hard for me.

I have this bash script which I used just fine on my windows PC.

I took this file over...
2,001
Posted By richsark
Thank you both !!!
Thank you both !!!
2,001
Posted By richsark
Cool. I did not know ? Was a sequence. I guess...
Cool. I did not know ? Was a sequence. I guess you learn something new every other day.

Thanks, I will it and revert.
2,001
Posted By richsark
Ok. I made a mistake in my example above. I...
Ok. I made a mistake in my example above. I corrected below.

from:
ptrrecord,dhcp-10-11-58-57.homeoffice.anfcorp.com,,10.11.58.57,,,False,57.58.11.10.in-addr.arpa,,302400,default

convert it...
1,836
Posted By richsark
Thanks my friend... I don't suppose I can...
Thanks my friend... I don't suppose I can interest you in looking at my other question can I?
2,001
Posted By richsark
Modify a perl line to parse out and output to another format
Hey there...

I am looking for a way to take the below contents ( small excerpt) of this file called PTR.csv
...
1,836
Posted By richsark
Hi Chubler_XL Thanks very much for the code....
Hi Chubler_XL

Thanks very much for the code. It works fine as is....

If you have a min, and if you like too. can you add a way to sort via IP address from low to high?

If not, I am still...
1,836
Posted By richsark
Awesome, let me play with it, say... is there a...
Awesome, let me play with it, say... is there a way for the IP's to sort from 10.8.x.x to 10.14.x.x?
1,836
Posted By richsark
Sorry... I need it to stop once this is reached...
Sorry... I need it to stop once this is reached 10.14.x.x

Sorry for the confusion.

Will this new one do that?
1,836
Posted By richsark
Hey, Thanks for that, I just ran it... I...
Hey, Thanks for that, I just ran it...

I cant seem to understand why the below does not come out in the routine. This is just one I hand picked. Not sure if there are more...
1,836
Posted By richsark
perl line needing a tweak
Hi Folks,

I have a perl line that looks like this and it works fine as is, but I need it to expand a bid further.

perl -aF, -ne 'printf "conf zone %2\$s delete host...
2,239
Posted By richsark
Fantastic..Tyler. May I confirm my original...
Fantastic..Tyler.

May I confirm my original code line blew up when it saw that space . Hence that was why it did not change.

Thank you agian.. Trying code in a few
2,239
Posted By richsark
Hi Tyler , In response to your question......
Hi Tyler ,

In response to your question... The contents in the directories. So dhcp.conf and anything else.

Input file is fine. No changes. Just the files/contents in the directories.

Thank...
2,239
Posted By richsark
I have an input file, I need it to run in present...
I have an input file, I need it to run in present directory and sub directories

The input file have a list of servers with ip addresses

Hello.test.com. 100.1.100.2
Foo.test.com. 20.20.12.1
...
2,239
Posted By richsark
Perl Script not working on all directories
Hi Folks,

I have a script that I am using. The files are in Directory c:\files\change\options

In that directory I have many other sub folders like R1 R2 R5 E4 etc...

When I run this script...
1,308
Posted By richsark
Awesome It worked ! Thanks a $$$
Awesome

It worked !

Thanks a $$$
1,308
Posted By richsark
Yes the original file did have a ; already: ...
Yes the original file did have a ; already:

option domain-name-servers addnsr1pri.fs.rich.us., addnsr1sec.fs.rich.us.;

after script run:
option domain-name-servers 126.7.3.101, 166.2.100.78;;...
1,308
Posted By richsark
script puts;; I need just ;
Hello Folks,

I must be blind that I cant figure out this perl script why I end up with ;; at the end of the line.

I am not an expert by any means

#!/usr/bin/perl
use File::Find;
open...
2,220
Posted By richsark
Cool.... Thank you. Will test and revert ...
Cool.... Thank you.

Will test and revert

---------- Post updated 11-07-11 at 10:26 AM ---------- Previous update was 11-06-11 at 11:52 PM ----------

Hi,

I tested that change. Not looking...
2,220
Posted By richsark
Hi, I have several files in a directory that...
Hi,

I have several files in a directory that I need to replace

Its working, but I end up with a . as I explained.

so lets say I am in /home/richsark/me/you/Data/dhcp

In there I have...
2,220
Posted By richsark
the input file look like the below. Simple txt...
the input file look like the below. Simple txt file

Foo.fs.rich.us 192.168.123.1
bar.fs.rich.us 200.100.32.4


Thanks
2,220
Posted By richsark
Have a find/replace perl script thats broke
Hello Folks,

#!/usr/bin/perl
use File::Find;
open F,shift or die $!;
my %ip=map/(\S+)\s+(\S+)/,<F>;
close F;
find sub{
if( -f ){
local @ARGV=($_);
local $^I="";
while( <>...
3,067
Posted By richsark
Hi Dude2Cool and rdcwayx Looks like Its good...
Hi Dude2Cool and rdcwayx

Looks like Its good !!

The final code looks likefind /Users/richsark/test-US/dhcp -type f ! -name "*.bak" |while read line
do
awk 'NR==FNR{a[$1]=$2;next} !/^#/ {for...
Showing results 1 to 25 of 135

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