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
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?
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)?
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...
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...
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.)...
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...
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
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...
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...
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...
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...
# 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 = "000";
while ($line = <TEXT>){
if($line =~/($ARGV[0])/g){...
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 ->
"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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.