What do you mean by 'delete the top ten rows'? Do you mean physically remove the rows from the file, or just not put them in your output?
* matches anything, two *'s in a row is redundant.
If there's few enough files, it could be as simple as
Thanks! But the output file looks like it is just listing the names of the csv files. I have 150 subdirectories, so I would love to be able to automate it instead of doing this for each of the subdirectories.
Hi! Suppose I have a directory (no symbolic links) called /WORK that contains 3 subdirectories:
/A
/B
/C
My problem is this: I want to look for a file that contains an order number. So far, I obtain what I want by doing this
/home/acb% cd /WORK/A
/home/acb/WORK/A% grep '093023553' *.*... (3 Replies)
I wrote a shell script (AIX) to extract the file "/rep1/toto" from all the hosts referred in a list and send them to one local directory named ~/$host-$file with the hostname as prefix
rcp -p user@host:/rep1/$file ~/$host-$file
where file = toto ==> it works !
I would do the same thing... (6 Replies)
Hi all,
I have a running process that will spawn a large number of perl processes. How can I set that these all get spawned with a low priority nice value? I don't mind if all perl related processes take this level.
Note, the executing script is compiled and can not be altered at a code... (1 Reply)
cat myname.txt
John Doe I
John Doe II
John Doe III
-----------------------------------------------------------------------
for i in `cat myname.txt`
do
echo This is my name: $i >> thi.is.my.name.txt
done
-----------------------------------------------------------------------
cat... (1 Reply)
Hello,
So I sorted my file as I was supposed to:
sort -n -r -k 2 -k 1 file1 | uniq > file2
and when I wrote
> cat file2
in the command line, I got what I was expecting, but in the script itself
...
sort -n -r -k 2 -k 1 averages | uniq > temp
cat file2
It wrote a whole... (21 Replies)
Hi all,
I need to count the number of lines in all the files under a directory (several levels deep). I am feeling extremely dumb, but I don't know how to do that. Needless to say, I am not a shell script wiz... Any advice?
thanks in advance! (13 Replies)
I want to download every page on a particular website that has: "http://www.website.com/dir/?function=" as the beginning so any page that begins with that will be downloaded, so for example "http://www.website.com/dir/?function=summary&cat=1" and "http://www.website.com/dir/?function=detail&id=1"... (1 Reply)
before posting, I have tried to find my answer elsewhere. no luck.
I need to find a file buried in a folder somewhere.
Master folder has 10 sub folders.
each sub folder has folders too.
I found this but it does nothing
I am on Mac and use Applescript.
do shell script "find... (2 Replies)
Discussion started by: sbrady
2 Replies
LEARN ABOUT DEBIAN
gdal_retile
gdal_retile(1) General Commands Manual gdal_retile(1)NAME
gdal_retile - gdal_retile.py gdal_retile.py retiles a set of tiles and/or build tiled pyramid levels
SYNOPSIS
gdal_retile.py [-v] [-co NAME=VALUE]* [-of out_format] [-ps pixelWidth pixelHeight]
[-ot {Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/
CInt16/CInt32/CFloat32/CFloat64}]'
[ -tileIndex tileIndexName [-tileIndexField tileIndexFieldName]]
[ -csv fileName [-csvDelim delimiter]]
[-s_srs srs_def] [-pyramidOnly]
[-r {near/bilinear/cubic/cubicspline/lanczos}]
-levels numberoflevels
[-useDirForEachRow]
-targetDir TileDirectory input_files.fi
DESCRIPTION
This utility will retile a set of input tile(s). All the input tile(s) must be georeferenced in the same coordinate system and have a
matching number of bands. Optionally pyramid levels are generated. It is possible to generate shape file(s) for the tiled output.
If your number of input tiles exhausts the command line buffer, use the general --optfile option
-targetDir directory:
The directory where the tile result is created. Pyramids are stored in subdirs numbered from 1. Created tile names have a numbering
schema and contain the name of the source tiles(s)
-of format:
Output format, defaults to GeoTIFF (GTiff).
-co NAME=VALUE:
Creation option for output file. Multiple options can be specified.
-ot datatype:
Force the output image bands to have a specific type. Use type names (ie. Byte, Int16,...)
-ps pixelsize_x pixelsize_y:
Pixel size to be used for the output file. If not specified, 256 x 256 is the default
-levels numberOfLevels:
Number of pyramids levels to build.
-v:
Generate verbose output of tile operations as they are done.
-pyramidOnly:
No retiling, build only the pyramids
-r algorithm:
Resampling algorithm, default is near
-s_srs srs_def:
Source spatial reference to use. The coordinate systems that can be passed are anything supported by the OGRSpatialReference.SetFro-
mUserInput() call, which includes EPSG PCS and GCSes (ie.EPSG:4296), PROJ.4 declarations (as above), or the name of a .prf file
containing well known text. If no srs_def is given, the srs_def of the source tiles is used (if there is any). The srs_def will be
propageted to created tiles (if possible) and to the optional shape file(s)
-tileIndex tileIndexName:
The name of shape file containing the result tile(s) index
-tileIndexField tileIndexFieldName:
The name of the attribute containing the tile name
-csv csvFileName:
The name of the csv file containing the tile(s) georeferencing information. The file contains 5 columns: tilename,minx,maxx,miny,maxy
-csvDelim column delimiter:
The column delimter used in the csv file, default value is a semicolon ';'
-useDirForEachRow:
Normally the tiles of the base image are stored as described in -targetDir. For large images, some file systems have performance
problems if the number of files in a directory is to big, causing gdal_retile not to finish in reasonable time. Using this parameter
creates a different output structure. The tiles of the base image are stored in a subdirectory called 0, the pyramids in subdirectories
numbered 1,2,.... Within each of these directories another level of subdirectories is created, numbered from 0...n, depending of how
many tile rows are needed for each level. Finally, a directory contains only the the tiles for one row for a specific level. For large
images a performance improvement of a factor N could be achieved.
NOTE: gdal_retile.py is a Python script, and will only work if GDAL was built with Python support.
AUTHORS
Christian Mueller christian.mueller@nvoe.at
GDAL Tue Sep 18 2012 gdal_retile(1)