Unfortunately, I don't have a local Linux environment to test the software. I've been developing on Windows. However, since this is Java, it should be straightforward to execute it in a similar manner to Windows.
Installation on a Linux environment takes on several flavors: system-wide or as a single user. If you require installation for your user environment, only, then it's relatively simple. Install the JAR files into $HOME/lib or $HOME/jar and modify the .bashrc or .kshrc or whatever shell you use to include a line like:
where bcel.jar is the Apache/Jakarta Byte Code Engineering Library JAR file. Spawn a new shell and try it out. If you require a simple "jawk" command to behave like "awk", then write a simple shell script and put it in your $HOME/bin directory:
#!/bin/ksh
set -x
java -ea org.jawk.Awk $*
If $HOME/bin is not in your PATH, then add it in a similar way to the export lines above.
To set it up system-wide, this depends on how Red Hat deploys additional packages, of which I am unfamiliar. Back in the day, I remember additional software going into /usr/local/lib or /usr/local/bin. If you're brazen enough, then install Jawk in these directories. Put the JAR files into /usr/local/lib and write a simple "jawk" shell script to access the JAR file from /usr/local/lib:
If demand calls for it, I could look into automatically building Jawk that fits nicely into Red Hat's software packaging mechanism. However, it doesn't look like this will be anytime soon.
I hope this helps.
Regards,
Dan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have downloaded all the packages from the download-site !
How do i install them in LINUX as above ;
please tell me steps in detail !
Thanks !
MML Verma
Hello and thanks for your interest in Jawk!
Unfortunately, I don't have a local Linux environment to test the software. I've been developing on Windows. However, since this is Java, it should be straightforward to execute it in a similar manner to Windows.
Installation on a Linux environment takes on several flavors: system-wide or as a single user. If you require installation for your user environment, only, then it's relatively simple. Install the JAR files into $HOME/lib or $HOME/jar and modify the .bashrc or .kshrc or whatever shell you use to include a line like:
export CLASSPATH="$CLASSPATH:$HOME/lib/jawk.jar"
If you require compilation, then use
export CLASSPATH="$CLASSPATH:$HOME/lib/jawk.jar:$HOME/lib/bcel.jar"
where bcel.jar is the Apache/Jakarta Byte Code Engineering Library JAR file. Spawn a new shell and try it out. If you require a simple "jawk" command to behave like "awk", then write a simple shell script and put it in your $HOME/bin directory:
#!/bin/ksh
set -x
java -ea org.jawk.Awk $*
If $HOME/bin is not in your PATH, then add it in a similar way to the export lines above.
To set it up system-wide, this depends on how Red Hat deploys additional packages, of which I am unfamiliar. Back in the day, I remember additional software going into /usr/local/lib or /usr/local/bin. If you're brazen enough, then install Jawk in these directories. Put the JAR files into /usr/local/lib and write a simple "jawk" shell script to access the JAR file from /usr/local/lib:
#!/bin/ksh
set -x
java -ea -cp "$CLASSPATH:/usr/local/lib/jawk.jar" org.jawk.Awk $*
If demand calls for it, I could look into automatically building Jawk that fits nicely into Red Hat's software packaging mechanism. However, it doesn't look like this will be anytime soon.
I hope this helps.
Regards,
Dan