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 Chriss Miller 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: menski
  • Content: Threads
  • Order by date
  1. menski

    Problem with old(ish) devices on new(ish) distros

    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...
  2. menski

    Towards more colourful Awk scripting: using ANSI

    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&quot...
  3. menski

    On the curious behaviour of variables!

    Given that I have the folloiwing chunk of program: BEGIN { FS = &quot;:&quot; print &quot;\n AWKSEARCH - Start: for (i=2; i < ARGC; i++) { if (ARGV[i] == &quot;-d&quot;) {disponly = &quot;y&quot;} else if (ARGV[i] == &quot;-f&quot;) {fileonly = &quot;y&quot;} else if (ARGV[i] ==...
  4. menski

    Running a command from within a variable?

    Some languages allow you to put a command into a variable which will then run when the variable is called. eg: print_field = &quot;print $1' '$2' '$4&quot; 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...
  5. menski

    I would like to use a stream of filenames from a pipe

    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...

Part and Inventory Search

Back
Top