Search Results

Search: Posts Made By: semaler
19,972
Posted By semaler
There was a bug in my code :) The correct one is:...
There was a bug in my code :) The correct one is:

for file in $dir/lcc*; do
echo "Processing file: $file"
IFS=$'\;'
while read -a val
do
if [ "${val[1]}" == "2" ]; then
...
19,972
Posted By semaler
Thank you very much for your kind contributions....
Thank you very much for your kind contributions. They helped me a lot, although I couldn't get the 'multiple variable' while to work.

However I found out that by using IFS and 'read -a' the...
19,972
Posted By semaler
[BASH] mapping of values from file line into variables
Hello,

I've been struggling with this for some time but can't find a way to do it and I haven't found any other similar thread.

I'd like to get the 'fields' in a line from a file into variables...
Showing results 1 to 3 of 3

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