Terminalen i OS X och .command-filer
Visa nuvarande path
1pwd
Skapa en textfil med ändelsen .command:
1#!/bin/sh
2
3echo "****************************"
4echo "Hej hej"
5echo "****************************"
Gör en .command-fil körbar
1chmod -x ./path-to-file
Hämta resultat från curl i XML och formatera resultatet
1result=$(curl -X "GET" "https://api.fortnox.se/3/invoices" \
2 -H "Access-Token: xxx" \
3 -H "Client-Secret: xxx" \
4 -H "Content-Type: application/xml" \
5 -H "Accept: application/xml")
6
7echo "$result" | xmllint --format -