Re: Remember your pearls [was grep, maybe]
(My email backlog is pretty long...) I have several scripts in $HOME/bin or /usr/local/bin, but for commands used in a particular directory, I usually just add the line to a plain text file cmd in that directory. Sometimes it will be convenient to execute the whole file as a script, but more often I'll cat to the screen, then cut and paste what I want. For example, I have a directory /debian/images where I put files related to burning CDs. I have a file cmd there with the appropriate commands for mkisofs, cdrecord, wodim, growisofs, etc. It's sort of a middle ground between developing a fully working command script and just reading the manpages. - Jim Van Zandt From: Ben Scott dragonh...@gmail.com Date: Fri, 30 Oct 2009 08:32:46 -0400 Content-Type: text/plain; charset=iso-8859-1 On Thu, Oct 29, 2009 at 11:01 PM, Greg Rundlett (freephile) g...@freephile.com wrote: So, you've worked out a magnificent one-liner solution to a interesting and recurring task. How do you 'remember' your solution? They get saved in a file under $HOME/bin under an appropriate name, with appropriate comments. Ideally, I turn them into a working command I can then use as needed. (Occasionally they get turned into shell aliases or functions, if the mood strikes me.) Or I forget about them and have to re-invent the wheel next time. :) -- Ben ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/ ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: Remember your pearls [was grep, maybe]
On 10/30/2009 08:32 AM, Ben Scott wrote: They get saved in a file under $HOME/bin under an appropriate name, with appropriate comments. Ideally, I turn them into a working command I can then use as needed. (Occasionally they get turned into shell aliases or functions, if the mood strikes me.) same here - any conclusions as to whether they should be named 'verbnoun' or 'nounverb'? I'm inconsistent and constantly confuse myself. :) The x2y scripts are a nice dodge. -Bill -- Bill McGonigle, Owner BFC Computing, LLC http://bfccomputing.com/ Telephone: +1.603.448.4440 Email, IM, VOIP: b...@bfccomputing.com VCard: http://bfccomputing.com/vcard/bill.vcf Social networks: bill_mcgonigle/bill.mcgonigle ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: Remember your pearls [was grep, maybe]
On Tue, Nov 3, 2009 at 5:09 PM, Bill McGonigle b...@bfccomputing.com wrote: same here - any conclusions as to whether they should be named 'verbnoun' or 'nounverb'? You could do both with a hard link. (I'm not sure if I'm kidding or not.) -- Ben ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: Remember your pearls [was grep, maybe]
On Thu, Oct 29, 2009 at 11:01 PM, Greg Rundlett (freephile) g...@freephile.com wrote: Not an answer to the OP, but a follow-on. So, you've worked out a magnificent one-liner solution to a interesting and recurring task. How do you 'remember' your solution? Do you create a file with scripts and comments? Do you post it in a wiki? A blog? An IDE with snippets? Do you remember it in your head? I used to store my good one-liners in Konsole as 'bookmarks' because you could put anything into a bookmark. Until KDE4. They improved the bookmark system which now only knows telnet:// and ssh:// URLs. Konsole even re-writes your bookmarks as you save them by url-encoding them. The issue is apparently due to reliance on Kurl - a core class in KDE, and so not a problem with Konsole. http://bugs.kde.org/show_bug.cgi?id=185962 http://bugs.kde.org/show_bug.cgi?id=88867 Greg Rundlett Nice. I keep text files. I have some going back to 1996 when I used exmh email. I wonder how much data got lost because it was kept in a format that changed. Like Wordperfect, dbase, etc... ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: Remember your pearls [was grep, maybe]
On Thu, Oct 29, 2009 at 11:01 PM, Greg Rundlett (freephile) g...@freephile.com wrote: So, you've worked out a magnificent one-liner solution to a interesting and recurring task. How do you 'remember' your solution? They get saved in a file under $HOME/bin under an appropriate name, with appropriate comments. Ideally, I turn them into a working command I can then use as needed. (Occasionally they get turned into shell aliases or functions, if the mood strikes me.) Or I forget about them and have to re-invent the wheel next time. :) -- Ben ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: Remember your pearls [was grep, maybe]
On Fri, Oct 30, 2009 at 8:32 AM, Tom Buskey t...@buskey.name wrote: I wonder how much data got lost because it was kept in a format that changed. Like Wordperfect, dbase, etc... ... the original video of the first moonwalk ... HHOS. -- Ben ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: Remember your pearls [was grep, maybe]
Ben Scott writes: On Thu, Oct 29, 2009 at 11:01 PM, Greg Rundlett (freephile) g...@freephile.com wrote: So, you've worked out a magnificent one-liner solution to a interesting and recurring task. How do you 'remember' your solution? They get saved in a file under $HOME/bin under an appropriate name, with appropriate comments. Ideally, I turn them into a working command I can then use as needed. (Occasionally they get turned into shell aliases or functions, if the mood strikes me.) aolMe too!/aol This scheme really works for me. For example, later this afternoon I'm going to use a snippet of code I wrote in 2003 to analyze a ~1GB logfile that I have been generating for over a week now. It pays to write clean and flexible code in the first place, and it pays to be semi-organized as well. Regards, --kevin -- GnuPG ID: B280F24EGod, I loved that Pontiac. alumni.unh.edu!kdc-- Tom Waits http://kdc-blog.blogspot.com/ ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Remember your pearls [was grep, maybe]
Not an answer to the OP, but a follow-on. So, you've worked out a magnificent one-liner solution to a interesting and recurring task. How do you 'remember' your solution? Do you create a file with scripts and comments? Do you post it in a wiki? A blog? An IDE with snippets? Do you remember it in your head? I used to store my good one-liners in Konsole as 'bookmarks' because you could put anything into a bookmark. Until KDE4. They improved the bookmark system which now only knows telnet:// and ssh:// URLs. Konsole even re-writes your bookmarks as you save them by url-encoding them. The issue is apparently due to reliance on Kurl - a core class in KDE, and so not a problem with Konsole. http://bugs.kde.org/show_bug.cgi?id=185962 http://bugs.kde.org/show_bug.cgi?id=88867 Greg Rundlett nbpt 978-225-8302 m. 978-764-4424 -skype/aim/irc/twitter freephile http://profiles.aim.com/freephile ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/