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 gkittelson 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: *

  1. timdrake

    Hi all Can i put coloured value in

    ..one way to do this is to use "tput" and "terminfo" capabilities, if these are available. terminfo allows for the definition of colour attributes, and tput can access those definitions. "tic" and "infocmp" are the methods used to compile and discover...
  2. timdrake

    execv, execl

    from memory .. this works if file_name is fully qualified (such as /usr/local/bin/myprocess); if you want the shell to do a PATH search, then you probably need to use execvp. &argv[1] looks OK and can be any length, providing argv is terminated by a null pointer. This is true if you are simply...
  3. timdrake

    Using Awk to find a character in a file

    ..this is a bigger challenge than it first appears. On closer inspection, the real problem is that for a master file of 7,000 records and a data file of 1 million records, these solutions will produce 7 thousand million reads - a lot of activity and time whatever your cpu/disk combo. Perhaps a...
  4. timdrake

    Number of CPU's

    .. or psrinfo :)
  5. timdrake

    Using Awk to find a character in a file

    .. you could try grep (or one of it's flavours such as egrep or fgrep) which is a utility geared specifically to pattern matching: grep $i filename >resultfile see "man grep" for various interesting options
  6. timdrake

    Number of CPU's

    .. or you can run mpstat

Part and Inventory Search

Back
Top