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
That does not seem to work for me:
Q:\scripts\scrap>type dir2.bat
dir | gawk "{printf \"%s \",$5}"
Q:\scripts\scrap>dir2.bat
Q:\scripts\scrap>dir | gawk "{printf \"s \",$5}"
s s s s s s s s s s s
Q:\scripts\scrap>
Removing the format specifier does work in this case:
Q:\scripts\scrap>type...
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)?
never mind:
http://groups.google.co.uk/group/alt.msdos.batch.nt/browse_thread/thread/cee296a194e4d7d4/40cd46e53f973c09?q=multiple+lines&rnum=2#40cd46e53f973c09
never mind:
http://groups.google.co.uk/group/alt.msdos.batch.nt/browse_thread/thread/cee296a194e4d7d4/40cd46e53f973c09?q=multiple+lines&rnum=2#40cd46e53f973c09
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 tried this:
TARGET=a.out
DEPEND=printf.c
GCC=gcc -Wall -pedantic
$(TARGET):$(DEPEND)
$(GCC) -o$@$^
and ran
make printf.c
my shell returned:
make: ***No rule to make target 'printf.c'. Stop.
shell returned 2
Any hints
Got it to work. Thanks for your help, everyone.
/*removecoms.c
* K&R exercise from first chapter*
* removes c comments from a program
*/
#include <stdio.h>
#define BUFFSIZE 1000
int getline(char line[], int maxline);
int endcomm(char s[], int ind, int len);
int startcomm(char s[], int...
Thanks, tbushmaker.
My understanding of scoping is that the "i" inside the subroutine getline() will not clash with the "i" in main().
Am I misunderstanding you to say that they do clash, or do I misunderstand teh scoping rules?
Appreciate the help,
John
Thanks. Is the alias possible in Windows NT (which is where I do most of my work)? I looked in the help screen of teh command prompt window and the general NT help, but couldn't find anything.
John
I didn't initialize "i" at top of the program.
I have other problems, (an infinite loop) but at least I am getting output now. Thanks for the help.
Thanks, that helps.
The other exercises in the book all took input from stdin, and this one was to act similarly. The getline() method is using getchar() to presumably wait for user input and feed it to the string (until \n or BUFSIZE is reached).
My other uses of this subroutine had exactly...
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...
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.