Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. viclap

    FileToStr and StrToFile

    Million Thanks Olaf, Good suggestion to create a log for errors or something to track what going on COPY To. I think i didn't hit the 16 MB string limit. Also, very nice suggestion to try the low level file functions of VFP which is tremendously very fast..... Vic
  2. viclap

    FileToStr and StrToFile

    Hi All, I'm wandering this odd behaviour of VFP on how to solve this problem of mine. When the code below runs on the VFP IDE environment it works fine and generates an output of csv file. When the app was an exe file already, it hangs on the code of FiletoSr and StrToFile, it doesn't...
  3. viclap

    Loop and process csv files stored in an array list

    Hi All, I'm very new in python and trying to experiment on learning to process csv files and its contents. My main problem is that, it runs without an error but it only execute once meaning it process only one csv file containing in an array list. Upon checking the directory where the csv...
  4. viclap

    sed to divide a dec number by 10

    Thanks for the help. Have tried this solution through awk and it really works. awk -F ',' '{print $4/10'}' InputFile > OutputFile Tyvm.
  5. viclap

    sed to divide a dec number by 10

    I'd rather use awk if that would be the solution to my problem.... Thanks.
  6. viclap

    sed to divide a dec number by 10

    Hi to all, I'm new to sed and would like to know what would be the correct syntax on how to divide the a decimal number by 10 (2nd and 4th column) then the result would be on another file. Sample Data: John, 123 ,xxx, 100 David, 223, yyy, 145 Smith, 178, ccc , 240...
  7. viclap

    delete character in nth position

    hi Feherke, Thanks once again. solution 1 and 2 really works . Great!!!
  8. viclap

    delete character in nth position

    Hi to all, i have this kind of data: 60 , 70 , 90 , 27,345 , 10 30 , 40 , 100 , 38,900 , 12 41 , 23 , 98 , 21,200 , 09 I've wanted to remove the comma in 4th position to be able to come up with below output using perl: 60 , 70 , 90 , 27345 , 10 30 , 40 , 100 , 38900...
  9. viclap

    extract 3rd,4th and 5th element

    Sir feherke, Million Thanks for such a good advice. Now, the correct code would be: /usr/bin/perl -plaF\; -e '$_=join";",@F[0,3,4,5]' $INFLE > $OUTFLE Regards Vic
  10. viclap

    extract 3rd,4th and 5th element

    Hi All, Just a follow on this, I'm wondering why the above perl code doesn't work when the delimeter of the file is ; (semicolon)? It works well previously when the values in the file is seperated by ~ (tilde). Have tried to escape the ; but still it has no effect in the file. Is there...
  11. viclap

    extract 3rd,4th and 5th element

    Yup Got it...Thanks Feherke. Nice solution.
  12. viclap

    extract 3rd,4th and 5th element

    Hi Sir, It works with the above mentioned data but when I tried to execute it on the actual data, nothing happens, same output as with actual data. Sample contents of the actual data: LCNUTAG022_1/4/8~130~23288000~No...
  13. viclap

    extract 3rd,4th and 5th element

    million thanks feherke.
  14. viclap

    extract 3rd,4th and 5th element

    Hi All! I trying to execute this perl script to extract a particular field in a text file, luckily it works. But, right now I would to extract 3 more fields in the text file but couldnt get right syntax on how to do it. command is: perl -pe '$_ = (split(/[ \n]/)) [0] . "\n"' TestDoc.txt...
  15. viclap

    Running find command in Solaris using Runtime.exec

    Thank you very much. This such a big help for me.
  16. viclap

    Running find command in Solaris using Runtime.exec

    I'm very new in java and trying to figure out why i'm getting a standard error output of "/usr/bin/find: incomplete statement" --->"find /export/home -type f -mtime +30 -exec rm {} \;" } using java program but executing manually the "find" script command using CLI on solaris Unix os it works...
  17. viclap

    Deleting Files using date option

    Hi to all, I'm having a hard time figuring out on how to delete files (remove) from a directory wherein the scope is from current date to previous dates (30 days). The script will be used for file maintenance of log files which are not needed anymore. Any help will be highly appreciated...
  18. viclap

    Not getting the exact value

    sedj, Great! Million Thanks.I'm beginning to love Java....
  19. viclap

    Not getting the exact value

    Hi To all, I'm trying to extract the character one by one from a user input and check it if a digit or letter. If digit is found, store the value into a variable. But the problem is i am not getting the exact value (0-9)but the decimal value of the digit. Any help would be greatly...
  20. viclap

    Can't connect to derby database

    Hi to All, I'm new to Java and having an error in my database application using embedded derby database. I'm using netbeans 5 as my IDE. java.lang.ClassNotFoundException:org.apache.derby.jdbc.EmbeddedDriver java.lang.NullPointerException Code: private void ConnectToDatabase () {...

Part and Inventory Search

Back
Top