[PLUG] Sorting A Text File on Multiple Fields

2011-09-01 Thread Rich Shepard
I have a largish file with 4 fields, separated by the '|' symbol. Reading the sort man page suggests that I can sort on only the first field and I want to sort on the first field, then on the second field, then on the third field. Trying to sort just the first field causes bash to complain

Re: [PLUG] Sorting A Text File on Multiple Fields

2011-09-01 Thread wes
go go gadget SPREADSHEET -wes On Thu, Sep 1, 2011 at 10:41 AM, Rich Shepard rshep...@appl-ecosys.comwrote: I have a largish file with 4 fields, separated by the '|' symbol. Reading the sort man page suggests that I can sort on only the first field and I want to sort on the first field,

Re: [PLUG] Sorting A Text File on Multiple Fields

2011-09-01 Thread Rich Shepard
On Thu, 1 Sep 2011, Hal Pomeranz wrote: Your problem is that '|' is a shell metacharacter. You have to quote it or backwhack it for your command to work correctly: Thanks, Hal. I realized this, too. Now I need to understand how to apply the -k option so it sorts 1, 2 within 1, then 3

Re: [PLUG] Sorting A Text File on Multiple Fields

2011-09-01 Thread Rich Shepard
On Thu, 1 Sep 2011, wes wrote: go go gadget SPREADSHEET wes, In my experience spreadsheets are the absolute worst tool to do this job. If you sort column 1 and forget to highlight all the others, only column 1 is sorted. When trying to sort on internal columns it gets even worse. This is

[PLUG] SECOND ANNOUNCEMENT: September PLUG Meeting

2011-09-01 Thread David Mandel
                            MEETING ANNOUNCEMENT                        The Portland Linux/Unix Group                                  will meet                          7 PM Thursday Sep 1, 2011                                      at                          Portland State University            

Re: [PLUG] Sorting A Text File on Multiple Fields

2011-09-01 Thread Rich Shepard
On Thu, 1 Sep 2011, Hal Pomeranz wrote: Just adding -k1,3 should do what you want... Hal, Thank you. I tried -k1,2,3 and learned k takes no more than 2 values. Using 1,3 seems to do the trick. Rich ___ PLUG mailing list PLUG@lists.pdxlinux.org

Re: [PLUG] Sorting A Text File on Multiple Fields

2011-09-01 Thread wes
On Thu, Sep 1, 2011 at 10:52 AM, Rich Shepard rshep...@appl-ecosys.comwrote: On Thu, 1 Sep 2011, wes wrote: go go gadget SPREADSHEET wes, In my experience spreadsheets are the absolute worst tool to do this job. If you sort column 1 and forget to highlight all the others, only column 1

Re: [PLUG] Sorting A Text File on Multiple Fields

2011-09-01 Thread Rich Shepard
On Thu, 1 Sep 2011, wes wrote: odd. this seems like doing it wrong to me. maybe I'm just lucky. wes, I'm glad it works for you this way! Using the -k option works when used correctly. Rich ___ PLUG mailing list PLUG@lists.pdxlinux.org

[PLUG] VoIP group?

2011-09-01 Thread plugng3
Michael, I need help with a Digium TDM410P analog card configured with 2 FXS and 2 FXO ports. I have the O'Reilly book on Asterisk 1.8, but I don't know where to look in the book for how to configure outbound calling from an FXS connected handset. I haven't tackled 1.8, but it's probably

Re: [PLUG] Sorting A Text File on Multiple Fields

2011-09-01 Thread wes
On Thu, Sep 1, 2011 at 11:17 AM, Rich Shepard rshep...@appl-ecosys.comwrote: On Thu, 1 Sep 2011, wes wrote: odd. this seems like doing it wrong to me. maybe I'm just lucky. wes, I'm glad it works for you this way! Using the -k option works when used correctly. Rich likewise! -wes

Re: [PLUG] Sorting A Text File on Multiple Fields

2011-09-01 Thread John Jason Jordan
On Thu, 1 Sep 2011 10:52:08 -0700 (PDT) Rich Shepard rshep...@appl-ecosys.com dijo: In my experience spreadsheets are the absolute worst tool to do this job. If you sort column 1 and forget to highlight all the others, only column 1 is sorted. When trying to sort on internal columns it gets even

Re: [PLUG] Sorting A Text File on Multiple Fields

2011-09-01 Thread Paul Heinlein
On Thu, 1 Sep 2011, Rich Shepard wrote: On Thu, 1 Sep 2011, Hal Pomeranz wrote: Just adding -k1,3 should do what you want... Hal, Thank you. I tried -k1,2,3 and learned k takes no more than 2 values. Using 1,3 seems to do the trick. I wrote an article on sorting IP addresses that

Re: [PLUG] Sorting A Text File on Multiple Fields

2011-09-01 Thread Joe Shisei Niski
On 09/01/2011 12:58 PM, John Jason Jordan wrote: On Thu, 1 Sep 2011 10:52:08 -0700 (PDT) Rich Shepardrshep...@appl-ecosys.com dijo: In my experience spreadsheets are the absolute worst tool to do this job... I agree. That's why I always use a database for a task like this. ...and yet the

Re: [PLUG] Sorting A Text File on Multiple Fields

2011-09-01 Thread Rich Shepard
On Thu, 1 Sep 2011, Paul Heinlein wrote: I wrote an article on sorting IP addresses that provides a little example of field sorting in GNU sort: Of course you did, Paul. :-) http://www.madboa.com/geek/sort-addr/ Many thanks. This is one of many linux tools that I use

Re: [PLUG] Sorting A Text File on Multiple Fields

2011-09-01 Thread Hal Pomeranz
[rshepard@salmo ~/projects/nevada/queenstake/stats]$ sort -t=| streams.txt out.txt -bash: ./streams.txt: Permission denied Your problem is that '|' is a shell metacharacter. You have to quote it or backwhack it for your command to work correctly: sort -t\| streams.txt out.txt --

Re: [PLUG] Sorting A Text File on Multiple Fields

2011-09-01 Thread Rich Shepard
On Thu, 1 Sep 2011, Joe Shisei Niski wrote: ...and yet the *ix shell environments are chock full of underrated and underutilized tools such as sort, cut, grep, sed, awk, etc., etc. that are much quicker to pick up far more appropriate for working with flat files than a DBMS. For context,

Re: [PLUG] VoIP group?

2011-09-01 Thread Dave Poirier
You control the outbound by defining the context in chan_dahdi.conf Just make sure you have a corresponding context in your dialplan. The Digium user guide has great instructions... http://docs.digium.com/TDM410/analog410series_manual.pdf HTH, Dave On Wed, Aug 31, 2011 at 6:39 PM, Michael C.

Re: [PLUG] Monitor Hardware Question

2011-09-01 Thread Wayne E. Van Loon Sr.
Rich: I had a chance today to run a little test, and with my video card (evga GeForce GT 430), only operates an output (VGA, DVI or HDMI) if a cable and device is connected at boot. I am working with a Beowulf cluster. Some of the machines are on a KVM. If you don't have the KVM selecting a

Re: [PLUG] Monitor Hardware Question

2011-09-01 Thread Rich Shepard
On Thu, 1 Sep 2011, Wayne E. Van Loon Sr. wrote: I had a chance today to run a little test, and with my video card (evga GeForce GT 430), only operates an output (VGA, DVI or HDMI) if a cable and device is connected at boot. I am working with a Beowulf cluster. Some of the machines are on a

Re: [PLUG] Monitor Hardware Question

2011-09-01 Thread Russell Johnson
On Sep 1, 2011, at 6:01 PM, Wayne E. Van Loon Sr. wrote: Some of the machines are on a KVM. If you don't have the KVM selecting a machine when it boots, no video output should you later select that machine. There are KVMs out there that will send a return signal to the hosts even if the

Re: [PLUG] Monitor Hardware Question

2011-09-01 Thread Wayne E. Van Loon Sr.
Russell Johnson wrote: On Sep 1, 2011, at 6:01 PM, Wayne E. Van Loon Sr. wrote: Some of the machines are on a KVM. If you don't have the KVM selecting a machine when it boots, no video output should you later select that machine. There are KVMs out there that will send a return

[PLUG] Old television shows and Linux...

2011-09-01 Thread Michael C. Robinson
Star Trek Voyager ended in like 2001 or so. Star Trek Deep Space Nine was over about the same time or sooner than that. My dad has lots of recordings of episodes, but they are probably low quality and his collection is undoubtedly incomplete. I want him to throw them out, these VHS tapes take

Re: [PLUG] Old television shows and Linux...

2011-09-01 Thread Daniel Pittman
On Thu, Sep 1, 2011 at 21:32, Michael C. Robinson plu...@robinson-west.com wrote: Star Trek Voyager ended in like 2001 or so.  Star Trek Deep Space Nine was over about the same time or sooner than that.  My dad has lots of recordings of episodes, but they are probably low quality and his

Re: [PLUG] Monitor Hardware Question

2011-09-01 Thread Russell Johnson
On Sep 1, 2011, at 9:25 PM, Wayne E. Van Loon Sr. wrote: Thanks Russell. I quickly checked on them. The ones I saw look pretty expensive. Guess I'll just stick with sequentially starting up the cluster. You can usually find used on ebay for a fairly reasonable price. If you are using