Search Results

Search: Posts Made By: nano2
5,977
Posted By Shell_Life
See if this works for you: col1=$(echo $output...
See if this works for you:
col1=$(echo $output | cut -d'|' -f5)
col2=$(echo $output | cut -d'|' -f6)
col3=$(echo $output | cut -d'|' -f7)
5,984
Posted By Skrynesaver
#!/bin/bash IFS=" " while read var1 var2 var3...
#!/bin/bash
IFS=" "
while read var1 var2 var3
do
echo "$var1 , $var2, $var3 "
done < "config_file"
Separating on spaces rather than commas and closing the quotes around the echoed string...
Showing results 1 to 2 of 2

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