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 bkrike 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: jjohnn
  • Content: Threads
  • Order by date
  1. jjohnn

    installing personal edition 10g

    I have a 9i client installed on my machine and I have downloaded the 10g personal edition files. Is there anything I need to do to prevent any collisions or problems when I install the personal edition? Thanks
  2. jjohnn

    "unexpected newline or end of string" in XP script

    dir | gawk "{sub(/n, ,$0}" on Win XP gives the error above. dir | gawk "{print $5}" lists the files, one to a line. I want to remove the newlines. Any suggestions?
  3. jjohnn

    Text table advantages and disadvantages

    I have need of a "read-only" set of tables, built from text files on the order of 10GB total. Other than the inability to perform DML on them, are there disadvantages to using Text Tables (i.e. is there is speed hit in queries)?
  4. jjohnn

    gawk with WinXP not sure where to post

    I am trying to run the first awk script in O'Reilly's Sed and Awk, using a .bat file instead of Unix shell script. The script only works if it is on a single line in the .bat file. Original unix script: gawk -F, '{ print $4 \", \" $0 }' $* | sort | gawk -F, '$1==LastState{ print...
  5. jjohnn

    multi line batch script problem

    I am copying an awk script from a book, trying to translate it to Windows XP from unix. It works if I put it all on one line in the script, but otherwise I get error messages referring to the line breaks. I tried ending the line with forward or backward slashes (a la C programming), but to no...
  6. jjohnn

    use case question for xsl fo

    I have a simple task that I believe can be accomplished with xml-fo. I hope somebody can shed some light on how to approach this, as I am newbie with XML I have a repository of excerpts, each a few paragraphs long, each with a title. I need to make custom documents, with formatting (bold, etc.)...
  7. jjohnn

    very puzzled; compiles but nothing happens

    I'm working through K&R C Programming Language, and wrote a program to remove comments from a C program. The other exercises from the book have been challenging, but I've done them all so far. I compile it with no complaints, and run it, but my shell comes back with no visible sign of anything...
  8. jjohnn

    simple makefile compilation question

    I am starting out in C (as well as Linux), and want to automatically use the -Wall and -pedantic in gcc, as I understand that can be useful. How do I do this more or less automatically? In other words, how can I not have to always type: gcc -o hello -Wall -pedantic hello.c
  9. jjohnn

    converting ut-8 (unicode) characters to an extended ascii

    I want to go through a text file coded in utf-8 and find the lines and words with occurences of non-ascii characters (codes > 127), and a table/hash of each character and how many times it appears. Then I want to convert the file to an extended ascii; three separate conversions are to: ISO...
  10. jjohnn

    [bold]FIle access times: printing name of stalest file [/bold]

    I want to print the name and age of the odest file entered on the command line: [code] my @oldest; foreach (@ARGV){ if (-A $_ > $oldest[1]){ $oldest[1] = -A $_; $oldest[0] = "$_".","; } print "@oldest "; }[\code] I expected only the oldest file (name and...
  11. jjohnn

    I/O oddity

    I am working through the exercises in Learning Perl which ask me to try some pattern matching on the perlfunc.pod file. I opened the file in vim to see what I was doing wrong, and noticed that perl and vim seemed not to be seeing *exactly* the same text. The perl began sooner in the text than...
  12. jjohnn

    per

    I wish to run my scripts by simply invoking the filenaem at the command line in Linux. My file is set with execute permission (700), my $PATH is set to my /home/john/scripts directory (where the file lies), and my first line is #!/usr/bin/perl, which is the first listing for $ wheris perl...
  13. jjohnn

    remembered expression in substitution

    # adds line #'s before every line that # match the expression at the command line, # putting parens around the matches # http://www.comp.leeds.ac.uk/Perl/sandtr.html $file = 'stam.txt'; open (TEXT, $file); my $linenum = &quot;000&quot;; while ($line = <TEXT>){ if($line =~/($ARGV[0])/g){...
  14. jjohnn

    formatting line numbers

    My task (from a perl tutorial http://www.comp.leeds.ac.uk/Perl/control.html) is to alter a program that prints line numbers on a file so that -> &quot;line numbers are printed as 001, 002, ..., 009, 010, 011, 012, etc. To do this you should only need to change one line by inserting an extra...

Part and Inventory Search

Back
Top