Re: [PLUG] Bash variable substitutions for awk...

2017-03-29 Thread Scott Bigelow
I'm not super clear on what you're trying to accomplish, but I might suggest attacking the quoting instead of doing something awk-specific. awk -F "\",\"" '{ print '$each', $30, $33 }' ${input file} so long as you don't put a space between the end single quote and the beginning of a variable or o

Re: [PLUG] Sorting blocks of text

2016-11-22 Thread Scott Bigelow
Not sure if I understand your input format well enough, but I think awk can handle it, something like: awk 'BEGIN{RS="\n\n"} { v[$0]++ } END { n = asorti(v,copy); for(i=1;i<=n;i++){ print copy[i] } }' On Tue, Nov 22, 2016 at 7:44 PM, David Fleck wrote: > On Tue, 2016-11-22 at 18:50 -0800, Joh

Re: [PLUG] Mail rejected - advice to resolve?

2015-08-01 Thread Scott Bigelow
When I ran an e-mail server for a small company, MSN/Hotmail/Outlook was the worst for actually receiving e-mails. Even though we never sent spam, we had to go through this whole approval process, mostly tied to the IP. Periodically, we fell off for no reason and had to reapply, messages being reje

Re: [PLUG] We have an OSCONtest winner!

2015-07-19 Thread Scott Bigelow
Specific Ways to Improve Your Use of C++11 and > C++14 > Scott Meyers > http://www.goodreads.com/review/show/1326437454 > > Docker: Up and Running (Paperback) > Scott Bigelow > http://www.amazon.com/review/R3I23O2HMIQ6AX > > The panel of judges was disappointed by the

Re: [PLUG] Reminder: 2nd Annual Book Review/OSCON Pass Contest!

2015-07-12 Thread Scott Bigelow
I ended up picking "Docker: Up and Running" from the list and was very impressed with the depth of information and real-world experience the author brought to the topic. Here's the Amazon review I wrote for the contest: http://www.amazon.com/review/R3I23O2HMIQ6AX On Thu, Jul 2, 2015 at 10:08 AM,

Re: [PLUG] RHCSA/RHCE Exams + Getting Linux Experience

2014-01-25 Thread Scott Bigelow
I got my RHCE back in 2009 (for RHEL5, also in Kirkland) and was able to take the exam without taking the course, but it was a very strange circumstance. Apparently, 6 people from one company had signed up for the course WITHOUT the exam, and so they were able to sell those 6 exam slots a la carte.

Re: [PLUG] sorting by filename, when there's stuff before and after

2013-01-21 Thread Scott Bigelow
I like David's solution, and that's the general strategy I would try, but I would use grep, which offers a friendly option "-o", a shorthand for what he's trying to do: egrep -o '[^/"]+\.jsp' On Mon, Jan 21, 2013 at 3:20 PM, Rich Shepard wrote: > On Mon, 21 Jan 2013, MJang wrote: > > > My ob

Re: [PLUG] Text Reformatting

2012-12-13 Thread Scott Bigelow
Swap the order. You first need to define the correct type of data for that column (format cells), THEN "Text to Columns", which basically casts the value, if possible. On Thu, Dec 13, 2012 at 3:09 PM, Rich Shepard wrote: > On Thu, 13 Dec 2012, Scott Bigelow wrote: > > >

Re: [PLUG] Text Reformatting

2012-12-13 Thread Scott Bigelow
Oh hey, I just dealt with that a few weeks ago, too! If you're using OOO Data -> "Text to Columns", after you've set the data type for an entire column ("Format"->"Cells") On Thu, Dec 13, 2012 at 2:55 PM, Rich Shepard wrote: > On Thu, 13 Dec 2012, wes wrote: > > > another thought has occurred to

Re: [PLUG] Text Reformatting

2012-12-13 Thread Scott Bigelow
I think sed is up to the task, here's one way to do it without busting out a scripting language: sed -e 's#\([[:digit:]]\{2\}\)/\([[:digit:]]\{2\}\)/\([[:digit:]]\{4\}\)#\3-\1-\2#' It looks like a mouthful, but it's really quite simple; it just matches AA/BB/ and makes it -AA-BB. If you g

Re: [PLUG] Finding partial duplicate rows with uniq

2012-10-30 Thread Scott Bigelow
uniq also has the "-w" flag, which instructs it to only compare the first N characters in a line: -w, --check-chars=N compare no more than N characters in lines although if your fields are all significantly different in length, it probably won't work as well as Dale's soluti

Re: [PLUG] ssh pass-phrase to log on to a system???

2012-10-04 Thread Scott Bigelow
I wonder if perhaps Mint doesn't have a graphical ssh-agent manager installed? If you: ssh-add .ssh/${your_key_file} does that work for you? On Thu, Oct 4, 2012 at 9:35 AM, Roderick A. Anderson wrote: > Poor subject so I have to explain. > > I've moved to Linux Mint 13 on my netbook from Fedor

Re: [PLUG] Question on efficiently searching large files for a simple text match

2012-09-30 Thread Scott Bigelow
How about just: grep -f /tmp/sides.txt bigfile.txt Where sides.txt is a list of all items you'd like to search for, one per line. On Sun, Sep 30, 2012 at 12:53 PM, Robert Munro wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Sat, 29 Sep 2012 19:36:36 -0700 Eric Wilhelm wrote: >

[PLUG] SIP Providers with Asterisk/FreePBX

2012-08-21 Thread Scott Bigelow
There seems to be quite a bit of Asterisk and phone expertise in the meetings so I thought I'd reach out to the group to see if my SIP provider is being unreasonable. I have an outbound SIP trunk configured with our provider, nexVortex. On this SIP trunk, I have allowed the g729 codec and disabled