sort with numeric secondary key

2006-12-18 Thread David Harel

Hi,


Until not too long ago I could use the sort command like:

sort +2 -3 +3 -4 -n

by doing that I defined primary key - third word and a numeric secondary 
key - forth word


Recently I noticed this format is no longer supported and I could not 
find the standard associated with the current sort implementation.


Trying the new way:

sort -k 3 -k 4 -n

should, to my understanding, have done the same however the -n option 
seems to take over the primary key. Any idea?



input example:

audi  sadan car 1000

layland roadrunner bus 3000

subaro turbo car 500

porsh  sadan car 1


Output example:

subaro turbo car 500
audi  sadan car 1000
layland roadrunner bus 3000
porsh  sadan car 1

--
Thanks.

David Harel,

==

Home office +972 77 4422234
Fax:+972 77 4422234
Cellular:   +972 54 4534502
Snail Mail: Amuka
   D.N Merom Hagalil
   13802
   Israel
Email:  [EMAIL PROTECTED]



=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: sort with numeric secondary key

2006-12-18 Thread Valery Reznic

--- David Harel [EMAIL PROTECTED] wrote:

 Hi,
 
 
 Until not too long ago I could use the sort command
 like:
 
 sort +2 -3 +3 -4 -n

You can specify 

sort -k3,3 -k4n,4n

Valery.

I don't familiar with a old sort, syntax, only with
new one, so i don't understand, what you trying to
achive.
If you explain it I can provide exact syntax (if it
still needed :)

Valery




 
 by doing that I defined primary key - third word and
 a numeric secondary 
 key - forth word
 
 Recently I noticed this format is no longer
 supported and I could not 
 find the standard associated with the current sort
 implementation.
 
 Trying the new way:
 
 sort -k 3 -k 4 -n
 
 should, to my understanding, have done the same
 however the -n option 
 seems to take over the primary key. Any idea?
 
 
 input example:
 
 audi  sadan car 1000
 
 layland roadrunner bus 3000
 
 subaro turbo car 500
 
 porsh  sadan car 1
 
 
 Output example:
 
 subaro turbo car 500
 audi  sadan car 1000
 layland roadrunner bus 3000
 porsh  sadan car 1
 
 -- 
 Thanks.
 
 David Harel,
 
 ==
 
 Home office +972 77 4422234
 Fax:+972 77 4422234
 Cellular:   +972 54 4534502
 Snail Mail: Amuka
 D.N Merom Hagalil
 13802
 Israel
 Email:  [EMAIL PROTECTED]
 
 
 

=
 To unsubscribe, send mail to
 [EMAIL PROTECTED] with
 the word unsubscribe in the message body, e.g.,
 run the command
 echo unsubscribe | mail
 [EMAIL PROTECTED]
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: preventing upgrade nightmare suggestions?

2006-12-18 Thread Henry Ficher

Peter wrote:



On Sun, 17 Dec 2006, Marc A. Volovic wrote:


Peter wrote:


What I wrote I wrote with the tongue planted in my cheek.


No! Really! Humour!? In Israel? On Linux-IL?

*THUD* (jaw strikes table)



RELAX. I had to explain it in a subsequent email. That means it was 
not funny for everyone (or they hid their LOL very well ...)


This comes to show the importance of using emoticons like :-) or ;-) 
in e-mails. Irony is mostly lost in transcription without them. I once 
had a big fight with a friend because of such omissions.



Cheers,

Henry

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: sort with numeric secondary key

2006-12-18 Thread Chaim Keren Tzion
Perhaps it barfed because you spelled Porsche wrong? ;-)  :-O
Garbage in garbage out...

On Monday 18 December 2006 12:56, David Harel wrote:
 input example:

 audi  sadan car 1000

 layland roadrunner bus 3000
Leyland

 subaro turbo car 500
Subaru

 porsh  sadan car 1
Porsche!!!


 Output example:

 subaro turbo car 500
 audi  sadan car 1000
 layland roadrunner bus 3000
 porsh  sadan car 1

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Keyboard shortcuts with Hebrew letters

2006-12-18 Thread Dotan Cohen

List newbie here, I've been using Fedora and Kubuntu for about a year
though. I live in Nesher, and attend the Technion University. Can I
post in Hebrew?

First, I'd like to note that the addresses
http://www.linux.org.il/linux-il-faq.html which new list subscribers
get gives a 404.

I've STFW and cannot find how to do what I need. I want that
CTRL-[HebrewLetter] give the same functionality that
CTRL-[EnglishLetter] gives. For instance, CTRL-ב should be copy,
because ב shares a key with C. I use the KDE desktop, but googling the
subject for a few hours makes me think that it needs to be configured
at the X level. I don't mind defining them one-by-one so long as I do
it only once, and I can save the definitions file for use on other
installations. I would of course publish it for everyone to use.

As much as I will be flamed, I must note that MS products work this
way. For instance, in Word on Windows CTRL-נ makes the text bold,
because נ shares a key with B.

Thanks from the head.

Dotan Cohen
http://what-is-what.com


[SOLVED] Re: Strange name for network interface (Debian 2.6.18-7)

2006-12-18 Thread Maxim Veksler

On 12/17/06, Maxim Vexler [EMAIL PROTECTED] wrote:

Hi List,

I've have 2 NIC's in my home machine, a Intel(R) PRO/1000GT and a
RealTek RTL8139

When the system boots it creates the following (odd) kernel naming
schema, I haven't messed with any of my udev.d rules.

# ls /sys/class/net/
eth0  eth1_rename_ren  lo  sit0



See #394047, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=394047

Following the input from the bug report, I looked at my
z25_persistent-net.rules and did found the borked config

cat /etc/udev/rules.d/z25_persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, probably run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.

# PCI device 10ec:8139 (8139too)
SUBSYSTEM==net, DRIVERS==?*, SYSFS{address}==00:40:f4:92:86:73,
NAME=eth0

# PCI device 0x8086:0x107c (e1000)
SUBSYSTEM==net, DRIVERS==?*, ATTRS{address}==00:0e:0c:b2:de:29,
NAME=eth0




I think this deserves a FAQ of it's in the faq section of linux-il's website ;)

For future searchers, and for google - a good work around and a
recommended(?) configuration is :


dynamic:~# cat /etc/udev/rules.d/010_nicinterface.rules
SUBSYSTEM==net, SYSFS{address}==00:40:f4:92:86:73, NAME=rtl8139
SUBSYSTEM==net, SYSFS{address}==00:0e:0c:b2:de:29, NAME=pro1000

dynamic:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.

# The primary network interface
allow-hotplug pro1000
iface pro1000 inet dhcp
   # Additional static address for this NIC
   # Workaround for iface pro1000:1 doesn't seem to work
   up ifconfig $IFACE:1 192.168.2.30 netmask 255.255.255.0


# Second network interface, backup
allow-hotplug rtl8139
iface rtl8139 inet dhcp




Thank you for your help.

--
Cheers,
Maxim Veksler

Free as in Freedom - Do u GNU ?

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]