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 bkrike 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: rufflocks
  • Content: Threads
  • Order by date
  1. rufflocks

    How do I connect my laptop directly to my desktop

    They both have the ethernet network card. I have the cable that runs between them. When I connect them, the netwok icons indicate that connections have been established. However, I cannot access any files. What am I missing?
  2. rufflocks

    need help with summarizing

    I want to read in an input file of numbers. I want the output to give me each unique number found and the count for each number found. Currently, my script prints all the numbers with the count ascending. sample output: 1 - 1 1 - 2 1 - 3 2 - 1 2 - 2 2 - 3 2 - 4 3 - 1 3 - 2 What I want is: 1 -...
  3. rufflocks

    Supressing spaces in pipe-delimited field

    I wish to suppress leading and trailing spaces in a pipe-delimited field so that: | 123| will become 00123, and |123 | will become 00123
  4. rufflocks

    test field for numeric or alpha-numeric

    The record is pipe-delimited. I want to check if a field is numeric or alpha-numeric. something like: if ($2 is numeric) { do something; } Any suggestions?
  5. rufflocks

    adding trailing spaces

    Input file is variable length. If record length is not 50 bytes I want to add trailing spaces to make the record 50 bytes. Any suggestions?
  6. rufflocks

    Insertng date in output records

    I want to use awk to insert system date in a pipe-delimited file, so the output looks like: firstname|lastname|20021203|address The other fields of records in the file is created by the same awk script. Thanks for any ideas?
  7. rufflocks

    Removing trailing spaces within delimited file

    The file is comma delimited. There are trailing spaces before the next comma. eg: first name,last name ,address1 ,address2, How do I remove these trailing spaces before the next comma so that the output looks as follows? eg: first name,last name,address1,address2,
  8. rufflocks

    Help in removing leading spaces in a field

    I have a pipe-delimited file that has 1 or more leading spaces. Do you know how to remove these leading spaces, using AWK, while I'm proceesing the file? ex: 987| 234| 2| 567
  9. rufflocks

    AWK error message "arg list too long"

    I wrote an awk script. It executed successfully untill I added quite a few lines of comments (for readability). The awk swcipt is 528 lines long with 17282 characters. Any idea how I can get successful execution without removing the comments?

Part and Inventory Search

Back
Top