Sorted! The printer problem was in the BIOS.
I finally remembered that I had a copy of the Administration Guide for SuSE 8.1 and dug it out. This tells me that the IO address for the parallel port should be 378, the interrupt is irrelevant, mode should be Normal, SSP or Output-Only and that...
Thanks for the help. I believe the distributions are currently running the XFree - everything seems to be marked XF - I'll soldier on with the other stuff
duncan_mk
I been playing around w. open source *nixes since the mid 90's and have been using Linux as the system running my home computer since 2000/2001. During all of that time I have used a trackball attached to my serial port and (for most of it) an HP Deskjet 540C attached to a parallel port. I...
I haven't tested this - and I have to confess that it is unusual for my scripts to run straight out of the box - but something like this ought to work (where "input.file" is the name of your data file):
BEGIN {
tcount = 0
while ((getline < "input.file") > 0) {
if...
ANSI code has always been pretty much of a minority interest and
(slightly old fashioned) black art, but it is useful & can be
very effective in conjunction with Awk. This FAQ just covers the
graphics parameters that allow coloured text, reverse video etc -
it does not cover the parameters...
This is by way of a tip. I have always used ANSI codes to display colour
error messages or warning signals in batch files etc. When I moved to
Linux I was looking for a way to continue using them. There is plenty of
good stuff on the internet (a search on Google using "\330 ANSI"...
If what your looking for is just some printed information about Linux I can recommend the Petersen book on Linux in the Complete Reference series published by Osborne/McGraw-Hill. These books used to be fairly keenly priced - my 3rd edition from 1999 cost £27 which, even then, wasn't bad for a...
Given that I have the folloiwing chunk of program:
BEGIN {
FS = ":"
print "\n AWKSEARCH - Start:
for (i=2; i < ARGC; i++) {
if (ARGV[i] == "-d") {disponly = "y"}
else if (ARGV[i] == "-f") {fileonly = "y"}
else if (ARGV[i] ==...
Oh wow! Slightly more complicated than I hoped. Part of the problem is that the script is already very large. It is designed to take the result of
ls -aR1
convert it into a nice clean list, pump it through <file> to check which files are text files and then check these for the occurence...
Unfortunately, this doesn't quite cut the mustard. The exact nature of the problem is that I have a script which I need to call with certain command line arguments giving (amongst other things) the search text + any files or directories to exclude. eg:
awktest -x /bin -x .bash_history -t...
Some languages allow you to put a command into a variable which will then run when the variable is called. eg:
print_field = "print $1' '$2' '$4"
might be put away at some point in a script and called later to output the contents of these fields.
It appears that this is not so...
Yes, that's great. Actually, I feel a bit of an idiot, it is very similar to an example in the Gawk Info file with which I had already been (unsuccessfully) experimenting.
Thanks for the help!
I have a script which has got so far:
file .* | awk -F: '/text/ {print $1}'
as you can see, it hasn't got very far - but it does output a list of the filenames of files identified as text files (rather than directories, binaries or etc). The next thing I need Awk to do is open each of...
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.