This is a quick once over of some really common for looping uses and options. A small collection of commands that i found really useful in the early days.
# echo number of file we are on + name of file echo $x $f
# perform analysis, output to new file gdal_translate -of GTiff -outsize 31238 39915 $f res_$f
done
I need this script to loop through a folder of images on windows and change the pixels and format from .sid to .tif using Gdal but it run can use please help. I have python and cygwin on my pc but this is my first time using any of these programs.
I'm surprised you don't have 20 comments asking you how you got your shell to work like that (auto erasing echos and wget progress). Of course, I know you fudged it yourself. Probably a bit confusing for someone trying to learn.
Thanks for posting this. I was easily able to figure out how to download 26 embedded flash videos from a web site via the command line w/curl based on the example given at 1:13
#!/bin/bash
x=0
for f in $( ls *.sid); do x=`expr $x + 1`
# echo number of file we are on + name of file echo $x $f
# perform analysis, output to new file gdal_translate -of GTiff -outsize 31238 39915 $f res_$f
done
I need this script to loop through a folder of images on windows and change the pixels and format from .sid to .tif using Gdal but it run can use please help. I have python and cygwin on my pc but this is my first time using any of these programs.
MsHollandj 6 months ago
I'm surprised you don't have 20 comments asking you how you got your shell to work like that (auto erasing echos and wget progress). Of course, I know you fudged it yourself. Probably a bit confusing for someone trying to learn.
deltaray3 1 year ago
Thanks a lot!! pretty much helpful
saeed2008aae 1 year ago
Thanks for posting this. I was easily able to figure out how to download 26 embedded flash videos from a web site via the command line w/curl based on the example given at 1:13
sethfulton 2 years ago
ceauless bulaaaaaaan
dilibau 2 years ago
Thanks!
RoboOmega3 3 years ago