|
From: reverse on 22 Sep 2006 07:32 Like a subject. I'm writing a little script to manage mutt address book. Script: ---(code)--- #! /bin/bash MUTT_ALIAS="$HOME/Mail/.Mutt/mutt_aliases" awk -F" " '{print $2,$3,$4}' $MUTT_ALIAS | zenity --list \ --title "ADDRESS BOOK" \ --column "Mail" \ --width "400" \ --text "mutt alias" ---(end code)--- And then i have created a macro (.muttrc): macro generic \cO "! sh ~/Mail/.Mutt/rubrica.sh &\r" \ "Rubrica con (Zen)ity" Executing it (in GUI), i have: "name surname" nick <mail(a)address> "name surname" nick2 <mail(a)address2> "name surname" nick3 <mail(a)address3> The first thing is that the script works well :) But i wish to improve it, with your support, obviously. _1_ question: Now it's: - The first field: "nome - The second field: surname" and so on.. I wish instead: - The first field: "name surname" - The second: nick - The third: <mail(a)address> _stop_ _2_ question: When i call macro (^O), i wish that: - select field - returns value in vim when i compose (write) mail start script -> select field 1 -> mail To: 1 This is my best english, i'm working to improve it. Thanks a lot.
|
Pages: 1 Prev: multiply shell variables in one awk statement Next: remote ssh |