Adding Commands
I will begin implementation of the Unix grep command shortly.
I have found several source documents that I can get a basic framework from and work from there. It shouldn't take more than 2 days to it functional and working within JNode.
However, due to school just passing the middle of the term, and teachers scrambling to be able to teach everything before the final it may be sometime I have the code finished.
Commands implemented so far:
grep: implement more parameters
delete: implement more parameters
Commands to implement:
awk
cal - 50% Complete
clear
cmp
cut
diff
find
free
head
less
more
motd - 75% Complete
mv
paste
printf
printenv
sed
sort
tail
time
uniq
vi
wc
whatis
- The Captain's blog
- Login to post comments
The more essential commands
commands to implement:
1)zip
2)jar
3)gzip
4)jar -install ==>for automated Plugin a jar file in JNODE
JAR command
The jar command was implemented by GNU Classpath and is included in JNode. You also might have a look which commands/tools are already implemented as opensource projects around the net and whether they are elligible to be included in a JNode dsitribution.
We should focus on the missing pieces.
Regards,
Levente
The problem with those
The problem with those commands is that they deal with compression algorithm's of which I haven't studied nor looked at yet. If anything, I wouldn't consider these until next summer.
Remeber, OS's where built over the span of years/decades, so in essents, JNode too will be built over time. With little bits of functionality added as someone creates it.
Not so much of a problem
Imho the commands tango suggested are very easy because of the huge java API. Zip and Jar are basically the same and they're allready implemented in java. So you only need a "command wrapper". The same applies to gzip, which is basically putting System.in or a FileInputStream in a GzipInputStream
Yes,Peter you right
hai
ye i am using the default GZipInputStream etc. Classes for the implementing of the commands.......
Tango
The Regular Expression's Handling
hai
Captain;
very nice....that you have started the "GREP" command......
To see your this blog entry one idea have came in my mind.....
and hence that i have started to setup a simple parser for the different "REGULAR EXPRESSION" handling in the command promt
JNODE.
as like \>delete *.jaj etc
tango