If you would like to keep everything is a shell context and avoid the outside use of cut to enhance performance you can do it this way in bash ksh zsh and newer sh(posix) shells:
#!/bin/bash
parse()
{
count=0
var_in=$1
IFS='~'
for value in $var_in
do
arrayval[$count]=$value
((count =...
Here is a simple script to get you started on your way to doing what you want.
This works in ksh sh bash and zsh
# start script
while read line
do
if echo $line | grep "^[0-9]" > /dev/null
then
fout=`echo $line | awk ' {print $1} '`
fileout=acct_${fout}
fi
echo...
Whitestar software is owned by "John Campbell" in Palo Alto, Ca. Here is the link. http://www.wss.com/ John's books on progress are considered the "bibles" for progress. Check out his articles on his website too.
Don't hesitate to send John an email if you have...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.