Search Results

Search: Posts Made By: balasubramani04
1,864
Posted By balajesuri
And slightly tweaking agama's solution, here's...
And slightly tweaking agama's solution, here's without the use of temp file.

#! /bin/bash

i=0
while IFS=, read a b
do
names[$i]=${a#*=}
locs[$i]=$b
(( i++ ))
done < inputfile
1,864
Posted By agama
This is straight forward and should work in both...
This is straight forward and should work in both Kshell and bash. After the loop executes two arrays (indexed 0 to n-1) will exist:


i=0
sed 's/.*=//; s/,/ /' your-file >/tmp/tfile.$$
while...
6,669
Posted By venky338
I got it to work...I changed the mode to binary...
I got it to work...I changed the mode to binary and it worked(duh!)
Thanks for the reply guys!
Showing results 1 to 3 of 3

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