Search Results

Search: Posts Made By: ProGrammar
11,825
Posted By jim mcnamara
Your read command is backwards - echo...
Your read command is backwards -

echo "${TEMPFILE:14:2} ${TEMPFILE:16:3} ${TEMPFILE:19:4}" | read a b c

IFS sets the record separator for a read, by default it is space(s). This means the...
Forum: Linux 09-12-2010
7,865
Posted By jim mcnamara
All you need to know about playing with strings...
All you need to know about playing with strings in bash:

Manipulating Strings (http://tldp.org/LDP/abs/html/string-manipulation.html)
Forum: Linux 09-11-2010
7,865
Posted By Scott
Hi. It's a shell construct. It's...
Hi.

It's a shell construct.

It's described under the "Parameter Expansion" section of the shell's man page. So it's fair to assume that "Parameter Expansion" is a good name for it.
Forum: Linux 09-11-2010
7,865
Posted By frank_rizzo
here is one way to do it in shell. starts at 0 ...
here is one way to do it in shell. starts at 0


var=abcdefgh
echo ${var:3:3}
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 03:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy