Setting Up Tclforawk

Create 2 folders in your home directory:

  • /home/yourloginame/Tclforawk
  • /home/yourloginame/Tclforawk/scripts

Download [Tclforawk.v2.tcl], [tclforawk.xbm] and place them in [/home/yourloginame/Tclforawk]. The [.xbm] is an icon image file.

Download [scripts.tar.gz] and unpack the scripts and input files into [/home/yourloginame/Tclforawk/scripts]. So that all AWK-script files [*.awk] and their associated input files [*.txt] are in the [/scripts] folder. Scripts must maintain the .awk extension and input files must maintain the .txt extension.

You may add any other awkscripts and their associated input files to the [/scripts] folder at any time. You may have any number of input files that are associated with each awkscript as you desire. Tclforawk simply opens that folder for you to select from.

Set permission on Tclforawk.v2.tcl to executable.

So your folders should look something like.....

/home/magicme/Tclforawk

  • Tclforawk.v2.tcl
  • tclforawk.xbm

/home/magicme/Tclforawk/scripts

  • notesandinfo.txt (this is just a blank note file at present)
  • flatplate.awk
  • flatplate.txt
  • lamplate.awk
  • lamplate.txt
  • lampipe.awk
  • lampipe.txt
  • internalpipe.awk
  • internalpipe.txt
  • etc etc etc

open a terminal window ("command line window") and cd (change directory) into /home/magicme/Tclforawk, and type in the command...

./Tclforawk.v2.tcl


Or .... double click the filename Tclforawk.v2.tcl in your file manager.

Or .... put a link to it on your desktop or panel.

The Tclforawk window should open and look approximately like this ....

tclforawk

Select an awkscript and an input file using the toolbar buttons, and edit the numeric input data as desired. Be sure not to edit the first field of any input line, because all the awkscripts in this package assign variable values according to the text in the first field. When you add awkscripts of your own, set them up as you wish.
You may add any other awkscripts and input files to the [/scripts] folder at any time, and these will be included in the Tclforawk callup dialogs, as long as they maintain the .awk and .txt extensions. If you must use different file extensions, then edit the Tclforawk.v2.tcl file in a text editor to include them in the callup dialogs.

You may add any amount of new text to these input files simply by starting each line with the # symbol to be sure that the awkscript doesn't read it as input data.

You may edit the file Tclforawk.v2.tcl in any text editor, if you are familiar with Tcl and desire to modify it.

tclforawk

then click the RUN button....


tclforawk

Then FILE > SAVE AS .... wherever.

The FILE > notefile operation quickly opens the text file ~/Tclforawk/scripts/notesandinfo.txt, which is simply a convenient place to store data you use often.

When you get bored, change colors as desired....

tclforawk


Tikmark Home Page