Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #199249 > unrolled thread

Bash count

Started byGokan Atmaca <linux.gokan@gmail.com>
First post2018-08-22 22:40 +0200
Last post2018-08-23 03:40 +0200
Articles 6 — 4 participants

Back to article view | Back to linux.debian.user


Contents

  Bash count Gokan Atmaca <linux.gokan@gmail.com> - 2018-08-22 22:40 +0200
    Re: Bash count Emmanuel Gelati <emi2fast@gmail.com> - 2018-08-22 22:50 +0200
    Re: Bash count Greg Wooledge <wooledg@eeg.ccf.org> - 2018-08-22 22:50 +0200
    Re: Bash count Gokan Atmaca <linux.gokan@gmail.com> - 2018-08-22 23:00 +0200
    Re: Bash count David Christensen <dpchrist@holgerdanske.com> - 2018-08-23 03:40 +0200
    Re: Bash count David Christensen <dpchrist@holgerdanske.com> - 2018-08-23 03:40 +0200

#199249 — Bash count

FromGokan Atmaca <linux.gokan@gmail.com>
Date2018-08-22 22:40 +0200
SubjectBash count
Message-ID<wpI54-3y3-7@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Hello

I have a list like the one below. I want to separate those bigger than 101. How
can this be done ?

    715 1.1.1.1
    322 2.2.2.2
    152 3.3.3.3
     61 4.4.4.4

Thanks.

[toc] | [next] | [standalone]


#199250

FromEmmanuel Gelati <emi2fast@gmail.com>
Date2018-08-22 22:50 +0200
Message-ID<wpIeJ-3BF-1@gated-at.bofh.it>
In reply to#199249

[Multipart message — attachments visible in raw view] — view raw

yes, that was a typo.

2018-08-22 22:42 GMT+02:00 Greg Wooledge <wooledg@eeg.ccf.org>:

> On Wed, Aug 22, 2018 at 11:33:51PM +0300, Gokan Atmaca wrote:
> > Hello
> >
> > I have a list like the one below. I want to separate those bigger than
> 101. How
> > can this be done ?
> >
> >     715 1.1.1.1
> >     322 2.2.2.2
> >     152 3.3.3.3
> >      61 4.4.4.4
>
> awk '$1 > 101'
>
>


-- 
  .~.
  /V\
 //  \\
/(   )\
^`~'^

[toc] | [prev] | [next] | [standalone]


#199251

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2018-08-22 22:50 +0200
Message-ID<wpIeJ-3BF-3@gated-at.bofh.it>
In reply to#199249
On Wed, Aug 22, 2018 at 11:33:51PM +0300, Gokan Atmaca wrote:
> Hello
> 
> I have a list like the one below. I want to separate those bigger than 101. How
> can this be done ?
> 
>     715 1.1.1.1
>     322 2.2.2.2
>     152 3.3.3.3
>      61 4.4.4.4

awk '$1 > 101'

[toc] | [prev] | [next] | [standalone]


#199252

FromGokan Atmaca <linux.gokan@gmail.com>
Date2018-08-22 23:00 +0200
Message-ID<wpIoq-3ES-9@gated-at.bofh.it>
In reply to#199249
> awk '$1 > 100' num

Very thanks...




On Wed, Aug 22, 2018 at 11:41 PM Emmanuel Gelati <emi2fast@gmail.com> wrote:
>
> If you want to print the bigger then 101 on the column
>
> awk '$1 > 100' num                                                                                                                                                                               2.4.2
> 715 1.1.1.1
> 322 2.2.2.2
> 152 3.3.3.3
>
>
> 2018-08-22 22:33 GMT+02:00 Gokan Atmaca <linux.gokan@gmail.com>:
>>
>> Hello
>>
>> I have a list like the one below. I want to separate those bigger than 101. How can this be done ?
>>
>>     715 1.1.1.1
>>     322 2.2.2.2
>>     152 3.3.3.3
>>      61 4.4.4.4
>>
>> Thanks.
>>
>
>
>
> --
>   .~.
>   /V\
>  //  \\
> /(   )\
> ^`~'^





  .~.
  /V\--- Thanks...
 //  \\
/(   )\
^`~'^

On Wed, Aug 22, 2018 at 11:41 PM Emmanuel Gelati <emi2fast@gmail.com> wrote:
>
> If you want to print the bigger then 101 on the column
>
> awk '$1 > 100' num                                                                                                                                                                               2.4.2
> 715 1.1.1.1
> 322 2.2.2.2
> 152 3.3.3.3
>
>
> 2018-08-22 22:33 GMT+02:00 Gokan Atmaca <linux.gokan@gmail.com>:
>>
>> Hello
>>
>> I have a list like the one below. I want to separate those bigger than 101. How can this be done ?
>>
>>     715 1.1.1.1
>>     322 2.2.2.2
>>     152 3.3.3.3
>>      61 4.4.4.4
>>
>> Thanks.
>>
>
>
>
> --
>   .~.
>   /V\
>  //  \\
> /(   )\
> ^`~'^

[toc] | [prev] | [next] | [standalone]


#199261

FromDavid Christensen <dpchrist@holgerdanske.com>
Date2018-08-23 03:40 +0200
Message-ID<wpMLn-6j1-7@gated-at.bofh.it>
In reply to#199249
debian-user:

Please ignore previous post.


David



On 08/22/2018 01:33 PM, Gokan Atmaca wrote:
> I have a list like the one below. I want to separate those bigger than 101. How
> can this be done ?
> 
>      715 1.1.1.1
>      322 2.2.2.2
>      152 3.3.3.3
>       61 4.4.4.4


2018-08-22 18:28:07 dpchrist@vstretch ~/sandbox/debian
$ cat gokan-atmaca-20180822-1333.txt
715 1.1.1.1
322 2.2.2.2
152 3.3.3.3
  61 4.4.4.4

2018-08-22 18:28:12 dpchrist@vstretch ~/sandbox/debian
$ perl -ae 'print if 101 < $F[0]' gokan-atmaca-20180822-1333.txt
715 1.1.1.1
322 2.2.2.2
152 3.3.3.3


David

[toc] | [prev] | [next] | [standalone]


#199262

FromDavid Christensen <dpchrist@holgerdanske.com>
Date2018-08-23 03:40 +0200
Message-ID<wpMLn-6j1-11@gated-at.bofh.it>
In reply to#199249
On 08/22/2018 01:33 PM, Gokan Atmaca wrote:
>      715 1.1.1.1
>      322 2.2.2.2
>      152 3.3.3.3
>       61 4.4.4.4

2018-08-22 18:28:07 dpchrist@vstretch ~/sandbox/debian
$ cat gokan-atmaca-20180822-1333.txt
715 1.1.1.1
322 2.2.2.2
152 3.3.3.3
  61 4.4.4.4

2018-08-22 18:28:12 dpchrist@vstretch ~/sandbox/debian
$ perl -ae 'print if 101 < $F[0]' gokan-atmaca-20180822-1333.txt
715 1.1.1.1
322 2.2.2.2
152 3.3.3.3


David

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web