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

trailtext.sh 718 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
15
16
17
18
19
20
21
22
23
24
  1. #!/usr/bin/env bash
  2. # Another test from forum message
  3. # http://gmt.soest.hawaii.edu/boards/1/topics/6027
  4. # Expanded to test a few of the -o settings
  5. cat << EOF > line.txt
  6. 1 2
  7. 3 4
  8. EOF
  9. echo -e "0\t0\tnot important text" > input.txt
  10. gmt mapproject -Lline.txt input.txt > result.txt
  11. gmt mapproject -Lline.txt input.txt -on >> result.txt
  12. gmt mapproject -Lline.txt input.txt -ot >> result.txt
  13. gmt mapproject -Lline.txt input.txt -o2,4 >> result.txt
  14. gmt mapproject -Lline.txt input.txt -o2,4,t >> result.txt
  15. cat << EOF > answer.txt
  16. 0 0 246419.226859 1 2 not important text
  17. 0 0 246419.226859 1 2
  18. not important text
  19. 246419.226859 2
  20. 246419.226859 2 not important text
  21. EOF
  22. diff answer.txt result.txt --strip-trailing-cr > fail
Tip!

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

Comments

Loading...