From 5cb251577940c94e5f2be366bf5298a8e13fafe8 Mon Sep 17 00:00:00 2001 From: Marcin Wozniak Date: Sat, 13 Apr 2019 22:45:28 +0200 Subject: [PATCH] Version 1.0 --- rozklad | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100755 rozklad diff --git a/rozklad b/rozklad deleted file mode 100755 index 4049c40..0000000 --- a/rozklad +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -peka_vm_get() -{ - curl -H 'Content-Type:application/x-www-form-urlencoded; charset=UTF-8' \ - http://www.peka.poznan.pl/vm/method.vm \ - -d "method=$1" \ - -d "p0=$2" \ - -s -} - -peka_vm_get getTimes '{"symbol":"'$1'"}' | jq -r '.[] | [.times] | .[] | .[] | [.minutes,.line,.direction] | @csv' | awk -v FS="," 'BEGIN{print "Min\tLine\tDirection\t";print "==================================="}{printf "%s\t%s\t%s%s",$1,$2,$3,ORS}'