AW: List out

2016-02-15 Thread Alexander.Elgert
> An: gnu-bash-...@moderators.individual.net > Betreff: Re: List out > > On Mon, 15 Feb 2016 08:19:37 -0500, Greg Wooledge wrote: > > On Sun, Feb 14, 2016 at 03:02:58AM +, Allodoxaphobia wrote: > >> err... u... What's your *bash bug* ??? > > > > I think what he meant to

Re: List out

2016-02-15 Thread Allodoxaphobia
On Mon, 15 Feb 2016 08:19:37 -0500, Greg Wooledge wrote: > On Sun, Feb 14, 2016 at 03:02:58AM +, Allodoxaphobia wrote: >> err... u... What's your *bash bug* ??? > > I think what he meant to say is, "Questions of this type should be > sent to help-b...@gnu.org instead of bug-bash@gnu.org." >

Re: List out

2016-02-15 Thread Greg Wooledge
On Sun, Feb 14, 2016 at 03:02:58AM +, Allodoxaphobia wrote: > err... u... What's your *bash bug* ??? I think what he meant to say is, "Questions of this type should be sent to help-b...@gnu.org instead of bug-bash@gnu.org." Now... you've been given a Python solution, and I could write one

Re: List out

2016-02-14 Thread strombrg
I'd do this like: #!/bin/bash python -c ' import sys for line in sys.stdin: fields = line.split() count =0 for field in fields[1:]: upper = field.upper() print(upper) if upper == "NA": count += 1 print("{} {}".format(fields[0], count)) '

Re: List out

2016-02-13 Thread Allodoxaphobia
On Sun, 14 Feb 2016 00:25:46 + (UTC), Val Krem wrote: > Hi all, > > I have a file (5000 rows and 65,000 columns). > > > 1. For each row I want find and count the number of missing variable > represented by (NA) and then print out. > > Sample data > > 1. fgh1 1 1 2 1 NA 2 2 > > 2. fgh2