Hey, geniuses of the world (no--facetious is NOT the word of the day
)!
I was wondering if there's a way to extract a specific portion from a string of characters in UNIX/LINUX. Give me the generic capabilities (assuming they exist) and I'll figure out the small details.
But if you know the unique syntax, I'd prefer to do it in bourne shell and I'm using Linux RedHat Enterprise ver 2.6.9-55.ELsmp (if that makes a diff).
e.g. in SQL Server and I know this is a far cry from Linux, but this is just to demonstrate what I hope to achieve:
they have a substring function:
SELECT SUBSTRING(abcdefgh,4,3)
which produces "def" as a result
abcdefgh = expression, 4 specifies the starting character position, and the three specifies how many characters to extract FROM the starting character position
how, if desired, could I accomplish similar results using UNIX/LINUX?!
Thanks for your time/attention in advance!!
your friendly-neighborhood ProGrammar.