On 08/06/15 10:51, Stephane Chazelas wrote:
> 2015-06-08 11:16:37 +0200, Erik Auerswald:
> [...]
>> FWIW I use 'sort' to sort IPv4 addresses in my ping_scan[1] script.
>>
>> The info documentation for sort provides another example, log files
>> sorted by IP address and time stamp. That specific exa
Actually it would be great if one could just do
seq -f %d=0x%x 14484 1 34484
where seq could just take the standard printf arguments, and % could be
used more than once, as I don't think it could mean any second argument...
2015-06-08 08:14:20 -0600, Eric Blake:
> On 06/08/2015 05:14 AM, Stephane Chazelas wrote:
>
> > Maybe there's a way to allow that without having to implement
> > the specifics in sort.
> >
> > Like sort key flags to invoke commands:
> >
> >sort '-k1,1|ip2hex' '-k2,2n|roman2int' '-k3,3|iconv
On 06/08/2015 05:14 AM, Stephane Chazelas wrote:
> Maybe there's a way to allow that without having to implement
> the specifics in sort.
>
> Like sort key flags to invoke commands:
>
>sort '-k1,1|ip2hex' '-k2,2n|roman2int' '-k3,3|iconv -t us//TRANSLIT'
That would result in a LOT of process
2015-06-08 11:16:37 +0200, Erik Auerswald:
[...]
> FWIW I use 'sort' to sort IPv4 addresses in my ping_scan[1] script.
>
> The info documentation for sort provides another example, log files
> sorted by IP address and time stamp. That specific example even needs
> two runs of sort, because sort la
2015-06-08 12:43:32 +0200, Erik Auerswald:
[...]
> > I'm not even sure having a tool just for that specific task
> > would make sense though. Here, it sounds more like a job for a
> > high level language like perl/python... (what if I want to sort
> > on roman numerals now, week day names, astrolog
Hi,
On Mon, Jun 08, 2015 at 10:51:59AM +0100, Stephane Chazelas wrote:
> 2015-06-08 11:16:37 +0200, Erik Auerswald:
> [...]
> > FWIW I use 'sort' to sort IPv4 addresses in my ping_scan[1] script.
> >
> > The info documentation for sort provides another example, log files
> > sorted by IP address
2015-06-08 11:16:37 +0200, Erik Auerswald:
[...]
> FWIW I use 'sort' to sort IPv4 addresses in my ping_scan[1] script.
>
> The info documentation for sort provides another example, log files
> sorted by IP address and time stamp. That specific example even needs
> two runs of sort, because sort la
Hi,
On Fri, Jun 05, 2015 at 01:57:33PM -0600, Eric Blake wrote:
> On 06/05/2015 01:35 PM, Silverman, Jeffrey X. -ND wrote:
>
> >> This was previously discussed, and while has merit
> >> at the time it was thought not important enough to add:
> >>
> >> http://www.gnu.org/software/coreutils/reject
2015-06-08 07:28:25 +0800, 積丹尼 Dan Jacobson:
> On (info "(coreutils) seq invocation") perhaps mention if one needs to
> use two % items, a for loop might be required,
>
> $ for i in `seq 14484 1 34484`; do printf %d=0x%x\\n $i $i; done
> 14484=0x3894
> 24484=0x5fa4
> 34484=0x86b4
[...]
Runnin
10 matches
Mail list logo