[plug] X script to accept nickname and modify file.

Weirdo linuxalien at optusnet.com.au
Sun Jul 27 13:45:23 WST 2003


Thanks for that
I will test it later ;)
Tim
At 13:26 26/07/2003 +0800, you wrote:
>On Sat, Jul 26, 2003 at 12:33:30PM +0800, Weirdo wrote:
>| I need a script that prompts for a nickname to input into my xchat prefs
>| file. It will only have to change 1 field (I=nickname). I would prefer
>| something that pops up a dialog but an xterm is fine as well. It would
>| modify the same file every time.
>
>Have a copy of the file called e.g. servlist.in that has the nickname
>set to @NICK@ then use sed and gmessage in a shell script to change it:
>
>NICK="`gmessage "IRC nickname" -entry -buttons "Okay"`"
>sed "s/@NICK@/${NICK}/g" <servlist.in >servlist.conf
>
>(NB Above is untested.)
>
>Cameron.

weirdo at linuxalien.tk
Dot TK ambassador #24084 - For a free .tk domain please contact me

ICQ# 255176389
MSN weirdo at linuxalien.tk

Riverton, Perth, WA



More information about the plug mailing list