12-26-2019
Apologies for any typos.
Quote:
Originally Posted by
zxmaus
I pass on this one. My brain is not made for programming. Though I think I can handle pretty much everything else pretty well, and I am now nearing 34 years working in various fields in IT, I just pass on scripting on everything longer than a very long one-liner. Not for lack of trying. I do understand scripts in various scripting languages well enough to debug them, to adjust them to my needs and to expand them if necessary. But I could not write one on my own if my life depends on it. Does this make me dumb?
No it doesn't make you dumb, it means you have not found your niche to create an "_app'_" to take on and maybe even excel at compared to your peers.
It also means that you probably have much more activity in other fields in your private life which would make you think a lot.
I found mine in the late 90s:
My programming niche...
This started me on the road to my multi language learning.
I hadn't ever seen a shell script until joining this site in January 2013 so I jumped in at the deep end bragging with an AudioScope.sh, a SINGLE "bash" script which has, and is, still being gently followed.
I deliberately placed limits on it and the biggest one was the I/O. ONLY the mic and ear are allowed for input and output. USB, Parallel, Serial and others are NOT allowed.
These had to deliver DC as well as AC components on input and output. I got a tremendous amount of help from the big guns on here and from these beginnings I have done some really strange things and most are POSIX compliant:
A DFT in a PURE ksh93 shell script.
A GOTO function.
A Fixed Point SQRT using integer maths.
And much more, all on this site. Most have been bettered by my peers who still know much more than I do about UNIX scripting.
Why?
As a pure learning task to see if it is possible and nothing more.
I am working on a POSIX compliant DFT using integer arithmetic ATM and it is seriously tough. I don't expect it to work but I do have a natural ability to think laterally/orthogonally hence my bizarre uploads to this site.
So GO FOR IT, even if it is something like a CrossStitch Program or calculating the minimum area for a _mains_ cable carrying large current loads.
You would be surprised what you learn by taking on such a task.
This User Gave Thanks to wisecracker For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have input file like
RDBMS FALIURE UTY8703 'USER_WORK.TEST' .HIghest return code '12'
I want to parse data which comed between first quote till next quote
USER_WORK.TEST
can you please suggest how to do that (4 Replies)
Discussion started by: scorp_rahul23
4 Replies
2. Shell Programming and Scripting
hey all,
i made a simple .sh like this:
echo "<style media="screen" type="text/css">@import url("main.css");</style>"
but the output is:
<style media=screen type=text/css>@import url(main.css);</style>
i want to keep double-quotes, can anyone help me?
thanks (3 Replies)
Discussion started by: indraf
3 Replies
3. Shell Programming and Scripting
The command line bellow works fine by itself.
/opt/csw/bin/rsync -azq --delete -e "ssh -i /.ssh/ss" /home/ me@myaccount.storage.com:/home/
Now I would like to introduce some variable into it and make a .sh file such as bellow and it does not work anymore. I guess the part -e "ssh -i /.ssh/ss" has... (4 Replies)
Discussion started by: ngungo
4 Replies
4. Shell Programming and Scripting
Hi,
I've been trying to write a regex to use in egrep (in a shell script) that'll fetch the names of all the files that match a particular pattern. I expect to match the following line in a file:
Name = "abc"
The regex I'm using to match the same is:
egrep -l '(^) *= *" ** *"$' /PATH_TO_SEARCH... (6 Replies)
Discussion started by: NanJ
6 Replies
5. Shell Programming and Scripting
i want to replace mistaken quotes in line starting with tag 300 and relocate the quote in the correct position so the input is
223;25
224;20100428064823;1;0;0;0;0;0;0;0;8;1;3;9697;18744;;;;;;;;;;;;
300;X;Event:... (3 Replies)
Discussion started by: wradwan
3 Replies
6. Shell Programming and Scripting
Hi Everyone hwo are you
i have one file "abc.txt" which contains record like this
"1","2","3"
"3","4","5"
now i want to change above 2 to 5
so i write the code as
awk ' BEGIN{FS=","} { if(NR==1) { print $1",5","$3 } else { print $0 } ' abc.txt
but the outpute is
"1",5,"3"... (5 Replies)
Discussion started by: aishsimplesweet
5 Replies
7. UNIX for Dummies Questions & Answers
My question is, "Do I not understand, or is my information out of date?"
I am trying to just be a student, rtfm'ing. I am working on my work systems. Is it simply that the book was printed in 2002 and a lot has changed since then, or did I miss something?
Working in Korn Shell.
I have been... (5 Replies)
Discussion started by: g.j.huebschman
5 Replies
8. Shell Programming and Scripting
Hi All ,
We have source data file as csv file and since data could contain commas ,each attribute is quoted into double quotes.However problem is that some of the attributa data also contain double quotes which is converted to double double quote while creating csv file
XLs data :
... (2 Replies)
Discussion started by: Shalini Badal
2 Replies
9. Shell Programming and Scripting
From:
1,2,3,4,5,This is a test
6,7,8,9,0,"This, is a test"
1,9,2,8,3,"This is a ""test"""
4,7,3,1,8,""""
To:
1,2,3,4,5,This is a test
6,7,8,9,0,"This; is a test"
1,9,2,8,3,"This is a ''test''"
4,7,3,1,8,"''"Is there an easy syntax I'm overlooking? There will always be an odd number... (5 Replies)
Discussion started by: Michael Stora
5 Replies
10. What is on Your Mind?
Enjoy folks...
AT&T Archives: The UNIX Operating System - YouTube (2 Replies)
Discussion started by: wisecracker
2 Replies
LEARN ABOUT DEBIAN
wiki::toolkit::plugin::categoriser
Wiki::Toolkit::Plugin::Categoriser(3pm) User Contributed Perl Documentation Wiki::Toolkit::Plugin::Categoriser(3pm)
NAME
Wiki::Toolkit::Plugin::Categoriser - Category management for Wiki::Toolkit.
DESCRIPTION
Uses node metadata to build a model of how nodes are related to each other in terms of categories.
SYNOPSIS
use Wiki::Toolkit;
use Wiki::Toolkit::Plugin::Categoriser;
my $wiki = Wiki::Toolkit->new( ... );
$wiki->write_node( "Red Lion", "nice beer", $checksum,
{ category => [ "Pubs", "Pub Food" ] }
) or die "Can't write node";
$wiki->write_node( "Holborn Station", "busy at peak times", $checksum,
{ category => "Tube Station" }
) or die "Can't write node";
my $categoriser = Wiki::Toolkit::Plugin::Categoriser->new;
$wiki->register_plugin( plugin => $categoriser );
my $isa_pub = $categoriser->in_category( category => "Pubs",
node => "Red Lion" );
my @categories = $categoriser->categories( node => "Holborn Station" );
METHODS
new
my $categoriser = Wiki::Toolkit::Plugin::Categoriser->new;
$wiki->register_plugin( plugin => $categoriser );
in_category
my $isa_pub = $categoriser->in_category( category => "Pubs",
node => "Red Lion" );
Returns true if the node is in the category, and false otherwise. Note that this is case-insensitive, so "Pubs" is the same category as
"pubs". I might do something to make it plural-insensitive at some point too.
subcategories
$wiki->write_node( "Category Pub Food", "mmm food", $checksum,
{ category => [ "Pubs", "Food", "Category" ] }
) or die "Can't write node";
my @subcats = $categoriser->subcategories( category => "Pubs" );
# will return ( "Pub Food" )
# Or if you prefer CamelCase node names:
$wiki->write_node( "CategoryPubFood", "mmm food", $checksum,
{ category => [ "Pubs", "Food", "Category" ] }
) or die "Can't write node";
my @subcats = $categoriser->subcategories( category => "Pubs" );
# will return ( "PubFood" )
To add a subcategory "Foo" to a given category "Bar", write a node called any one of "Foo", "Category Foo", or "CategoryFoo" with
metadata indicating that it's in categories "Bar" and "Category".
Yes, this pays specific attention to the Wiki convention of defining categories by prefacing the category name with "Category" and
creating a node by that name. If different behaviour is required we should probably implement it using an optional argument in the
constructor.
categories
my @cats = $categoriser->categories( node => "Holborn Station" );
Returns an array of category names in no particular order.
SEE ALSO
o Wiki::Toolkit
o Wiki::Toolkit::Plugin
AUTHOR
Kake Pugh (kake@earth.li). The Wiki::Toolkit team (http://www.wiki-toolkit.org/)
COPYRIGHT
Copyright (C) 2003-4 Kake Pugh. All Rights Reserved.
Copyright (C) 2006-2009 the Wiki::Toolkit team. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2009-10-25 Wiki::Toolkit::Plugin::Categoriser(3pm)