Re: file edit

2014-02-26 Thread jet speed
Thanks Jim and Paul, Appreciate your inputs. Sj. On Wed, Feb 26, 2014 at 4:47 PM, Paul Johnson wrote: > On Wed, Feb 26, 2014 at 03:59:40PM +, jet speed wrote: > > Chaps, > > > > Any quick one liner code in perl were i can get rid off the before and > > after wwn each line for file as bel

Re: file edit

2014-02-26 Thread Jim Gibson
On Feb 26, 2014, at 7:59 AM, jet speed wrote: > > Chaps, > > Any quick one liner code in perl were i can get rid off the before and after > wwn each line for file as below > > file > --- > device name lz_09_red_e10 vsan 200 > * fcid 0xef0013 [pwwn 50:00:00:00:99:00:66:7a] > * fcid

file edit

2014-02-26 Thread jet speed
Chaps, Any quick one liner code in perl were i can get rid off the before and after wwn each line for file as below file --- device name lz_09_red_e10 vsan 200 * fcid 0xef0013 [pwwn 50:00:00:00:99:00:66:7a] * fcid 0xegg015 [pwwn 10:00:00:55:99:a8:d9:c4] [ pe-tgh10-hostb] device name lz_09_

Re: check list if values meet criteria

2014-02-26 Thread Bill McCormick
On 2/25/2014 7:07 PM, Jim Gibson wrote: On Feb 25, 2014, at 2:30 PM, Bill McCormick wrote: What would be the perl'ish way using map or some other sugar to check if a list of values meet some criteria? Instead of doing something like my @issues = qq(123,456,a45); my $max = 999; for (@issues)

Re: check list if values meet criteria

2014-02-26 Thread Shlomi Fish
Hi all, On Tue, 25 Feb 2014 17:07:00 -0800 Jim Gibson wrote: > > On Feb 25, 2014, at 2:30 PM, Bill McCormick wrote: > > > What would be the perl'ish way using map or some other sugar to check if a > > list of values meet some criteria? Instead of doing something like > > > > my @issues = qq(1