Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

conversion.sh 409 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  1. #!/usr/bin/env bash
  2. # Test gmt convert with both -o and -b
  3. echo 1 2 3 4 5 > t.txt
  4. gmt convert t.txt -o0,1,4 -bo3d > d.b
  5. gmt convert t.txt -o0,1,4 -bo3f > s.b
  6. D=$(ls -l d.b | awk '{print $5}')
  7. S=$(ls -l d.b | awk '{print $5}')
  8. touch fail
  9. if [ $D -ne $S ]; then
  10. echo "db and sb differ in size" >> fail
  11. fi
  12. gmt convert d.b -bi3d > d.txt
  13. gmt convert s.b -bi3f > s.txt
  14. diff d.txt s.txt --strip-trailing-cr >> fail
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...