![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Nov 2004
Posts: 1
Rep Power: 0
![]() |
: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: |
|
|
|
|
|
#2 |
|
Expert Programmer
|
Sorry dude, but I really do not understand what you are asking.
__________________
Clifford Matthew Roche <geek@cliffordroche.com> Web Hosting: http://www.crd-hosting.com Consulting: http://www.crdev-consulting.com |
|
|
|
|
|
#3 |
|
Hobbyist Programmer
Join Date: Apr 2004
Location: Texas
Posts: 106
Rep Power: 5
![]() |
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
donethat will get you started on reading a test file line by line in shell script.
__________________
[ [ SykkN alloc ] initWithThePowerTo: destroyYouAll ]; /* Don't make me use it! */ |
|
|
|
|
|
#4 |
|
Programming Guru
![]() ![]() |
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.
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#5 |
|
Expert Programmer
|
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?
__________________
Clifford Matthew Roche <geek@cliffordroche.com> Web Hosting: http://www.crd-hosting.com Consulting: http://www.crdev-consulting.com |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|