Skip to content

Instantly share code, notes, and snippets.

@jgomezdans
Created November 5, 2019 16:05
Show Gist options
  • Save jgomezdans/40dd3e85a3e073dc94f36da83bd11bd9 to your computer and use it in GitHub Desktop.
Save jgomezdans/40dd3e85a3e073dc94f36da83bd11bd9 to your computer and use it in GitHub Desktop.
#!/bin/bash
# This one fails!
cd /gws/nopw/j04/odanceo/jlgomezdans/flevo_out
ls -lht s2__lai_A2018001_0x* | awk '{print "/gws/nopw/j04/odanceo/jlgomezdans/flevo_out/"$9}' > flist.txt
gdalbuildvrt -input_file_list flist.txt testme.vrt
#!/bin/bash
# This script works. Files are located in /work/scratch
cd /work/scratch/jlgomezdans/flevo_out/
ls -lht s2__lai_A2018001_0x* | awk '{print "/work/scratch/jlgomezdans/flevo_out/"$9}' > flist.txt
gdalbuildvrt -input_file_list flist.txt testme.vrt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment