Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Bash / Shell Scripting (http://www.programmingforums.org/forum26.html)
-   -   Read Line By A Text File And Does A Jar (http://www.programmingforums.org/showthread.php?t=1066)

dilembo Nov 8th, 2004 2:43 AM

:unsure:
Hi all
I'd like to write a shell unix that read line by a text file and does a jar
package with all the lines/files gotten by the text file.
Any help on how to read lines by a file in a shell unix?
Please help :blink:

kurifu Nov 8th, 2004 11:25 AM

Sorry dude, but I really do not understand what you are asking.

sykkn Nov 8th, 2004 11:51 AM

maybe this is what you are looking for:

:

for EACHLINE in `cat some_file.txt`
do
    echo $EACHLINE
    # of course you'll probably want to do something more useful than just echo
done



that will get you started on reading a test file line by line in shell script.

Pizentios Nov 8th, 2004 11:54 AM

I think he wants to read a file line by line and then dump the output from that into a .jar file.

Is there a command prompt tool for creating jar files? i don't use java so i don't know. If there is you could use bash scripting (asuming that you have bash installed) to read the text file and then dump the output into a jar file using the command prompt tool. That's what'd i do. Not sure if there is such a tool though, so do some googling.

kurifu Nov 8th, 2004 6:15 PM

Isnt a JAR file a compiled set of java classes? Of all things, isn't it in binary format? Why would you want to dump line data from a console into a binary file?

Pizentios Nov 8th, 2004 7:00 PM

no idea, that's just how i read the question.


All times are GMT -5. The time now is 4:28 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC