Skip to content

Instantly share code, notes, and snippets.

@shnhrtkyk
Created December 27, 2019 19:41
Show Gist options
  • Save shnhrtkyk/39ce4efd5364c4927e296340a169eda7 to your computer and use it in GitHub Desktop.
Save shnhrtkyk/39ce4efd5364c4927e296340a169eda7 to your computer and use it in GitHub Desktop.
macでtxt2las 一括
for file in `\find . -name '*.txt'`; do
echo $file
tonnage=${file##*/}
echo ${tonnage/.txt/.las}
/path/to/LAStools-master/bin/txt2las -i $file -o ../train_las/${tonnage/.txt/.las} -parse xyzc
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment