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: *

  • Users: LotoL
  • Order by date
  1. LotoL

    Syntax error at line 6 : `jd=$1' is not expected.

    Having problems create a function to convert julian date to a date format of YYYYMMDD. Not sure If im doing this right. I getting an error code ./j2g[3]: 0403-057 Syntax error at line 6 : `jd=$1' is not expected. #!/bin/ksh +2 +3 function juliandate_to_gregdate{ +4 +5...
  2. LotoL

    Julian date to YYYYMMDD

    Does anyone know how to convert a julian date to YYYYMMDD date. Julian date 04253 to greogian date 2004 09 09
  3. LotoL

    ASCII to EBCDIC

    Convert ASCII to EBCDIC is this possible with shell script See I have to develop a script that converts a file from ascii to ebcdic, do more functions to the file, then send it to the Host. But i'm not sure how to convert the file to ebcdic.
  4. LotoL

    help with white spaces

    Thank for all the help, your awesome!!!
  5. LotoL

    help with white spaces

    Good job Guys but when I use the input file below it does not work.. I only give me "DB: I34Q23SB - Node: I34Q23SB" Database 1 entry: Database alias = I34Q23SB Database name = I34Q23SB Node name = QIST23SB Database release level...
  6. LotoL

    help with white spaces

    Thanks for all the feed back guys... I'll try it some time next week...
  7. LotoL

    help with white spaces

    thanks rharsh, it still does not read the second line with the node name. the output is DB: IBSQ35 - Node: IBSQ35. it should be DB: IBSQ35 - Node: QIBS34. I tried changing the print "Node: $1\n"; to print "Node: $4\n"; and it still gives me the pattern "IBSQ35" btw, what is the debug...
  8. LotoL

    help with white spaces

    Ok. I tried it.. but got an error see below. here is my full code print ("Enter the search pattern:\n"); $pattern = <STDIN>; chop ($pattern); open(DB_list, "/home/GetNode/listdb.txt"); print ("Matches found:\n"); while (<DB_list>) { if (substr($_, "Database name") != -1) { #Database...
  9. LotoL

    help with white spaces

    PaulTEG, this what i have so far. I now that Im not going the right way.. Im to new at this. But here is what I have.. input file - Database name = IBSQ35 Node name = QIBS34 while (<DB_list>) { if (/\bDatabase name\s+=\s$pattern\b/) { print...
  10. LotoL

    help with white spaces

    Hello, I need help with white spaces. Im try to search for the input listed below called Database name. Im very new to all this. Also any clues on how to search for the first line then get the Node name called QIBS34. code - if (/\bDatabase name\s=\s$DB_Name/) input - Database name...
  11. LotoL

    problems with search

    Hi, Im getting this error.. Can't modify constant item in scalar assignment at ./pattern_search1.1 line 12, near """)" here is my code: print ("Enter the search pattern:\n"); $pattern = <STDIN>; chop ($pattern); open(FILENAME, "/home/x1207/GetNode/listdb.txt"); print ("Matches found:\n")...
  12. LotoL

    New with Perl search...

    thanks duncdue, but what does this line do $data =~ m|$request[^\d]+(\d+)|i; i know that $data will be assign, then it does a search for, then the next part I do not know and why if ($1).
  13. LotoL

    New with Perl search...

    the only code I have is to search for "Cars" Im not even sure it this will work... Just start writing perl 2 days ago. $record = <STDIN>; chop ($record); open (INPUT, "inventorylist.txt") or die "Nope!! $!\n"; while ($record = INPUT) { print $record; if ($record =~ "Cars") {...
  14. LotoL

    New with Perl search...

    Hello, What I need help with is to search an input file with a specific text givin by user (this is ok with me). The next step is what Im having problems with, see the user only know a certain input. Will call it Cars. What the user needs is how many car are available. usrer input-...
  15. LotoL

    Awk script does not work with huge files

    Excellent Work Guys, Thanks aigles(Jean) and futurelet. but Im still having problems with huge files :-(
  16. LotoL

    Awk script does not work with huge files

    Are you telling me that shell script and awk can not be together in one combine script?
  17. LotoL

    Awk script does not work with huge files

    Where do you think the problems is comming from? I get an error when running nawk -v find_db="$db" -f find_db.awk IQSB; Syntax Error The source line is 3. The error context is >>> dblist=/home/zzzzz/GetNode/listdb1. <<< txt awk: 0602-500 Quitting The source line is 3. #!/bin/ksh...
  18. LotoL

    print put with awk

    Does anyone know how to search and print out 10 or 20 lines. Just say I have a input file call A. In the input file I have numbers 1 - 100. Each number on a new line. What I want to do is search for a number say 20. Then printed out 20, 21, 22...., up to 30 or 40. is this possible with awk.
  19. LotoL

    Awk script does not work with huge files

    Thanks, But I have no clue on how to use nawk. I'm just a newbie with awk. How do I use my three input file on the the script you wrote and how do I run it.
  20. LotoL

    Awk script does not work with huge files

    Hello, I have develop a awk script to look into three files. Here is the problem. It works if for a 2 medium and 1 small input files, but it i use 3 medium files it does not come out.. the out is blank... Do you have any clues why??? see script at the bottom How the scripts work from command...

Part and Inventory Search

Back
Top