Search Results

Search: Posts Made By: vinzping
3,409
Posted By ahamed101
#!/bin/bash #Read the co-ordinates from the...
#!/bin/bash

#Read the co-ordinates from the infile
#i.e. A1,A3 etc
read val < f

#Remove the commas from the input
#i.e. A1,A3 will be A1 A3 etc
val=$(echo $val | sed 's/,/ /g')

#For each...
7,857
Posted By agama
I've never been a fan of echo | some-command when...
I've never been a fan of echo | some-command when it's not needed as it is very inefficient. This is a simple, yet hard coded approach that generates output exactly as you indicated:


...
Showing results 1 to 2 of 2

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