November 26, 200520 yr - For Linux users -Save the following script in a file. Dont forget to set this file executable:#!/bin/shCODE="$(fgfs --show-aircraft |awk 'NR>1{ s=$0 gsub("'"'"'","",s) sub("[ ]+[^ ]+[ ]+","",s) if (s=="") s = $1 n++ print "C[" n "]=" """ $1 """ print "L[" n "]=" """ s """ #print "C["" $1 ""] = " """ s """}')" eval "$CODE" PS3="Aircraft ? "select f in "${L[@]}"do echo $f exec fgfs --aircraft=${C[REPLY]}done
Create an account or sign in to comment