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

    How do I connect my laptop directly to my desktop

    I have been at it for 3 days straight and it just does not work. I have googled and read several detailed threads, and followed along. Still I cannot get the ping to go through. I will just have to break down and buy the hub or switch. What do those things cost anyway (in US$)?
  2. rufflocks

    How do I connect my laptop directly to my desktop

    smah the color sequence is different.
  3. rufflocks

    How do I connect my laptop directly to my desktop

    If I take the cable that connects to the cable modem and run it between the desktop and laptop, will that suffice as a crossover cable?
  4. rufflocks

    How do I connect my laptop directly to my desktop

    smah, 1. yes 2. yes - desktop is 192.168.0.227, laptop is 192.168.0.228 3. firewall disabled on both machines 4. selected "turn on file sharing ...." with network setup wizard on both machines.
  5. rufflocks

    How do I connect my laptop directly to my desktop

    I did everthing someone suggested on the second website. Nothing worked. I am at the same spot I was yesterday, where the laptop can ping itself but the desktop cannot. I am thinking the problem lies witth the desktop, but I am just not sure.
  6. 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?
  7. rufflocks

    need help with summarizing

    Thank you all for your input. Krunek, I did try your solution but got: awk: syntax error near line 1 awk: bailing out near line 1 I probably would have to tweek something. PHV's solution worked for me. Thanks. Someone pointed me to unix line command "unique -c" that gave me similar results...
  8. 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 -...
  9. rufflocks

    Supressing spaces in pipe-delimited field

    if field is numerics (all 5 digits) write field to file1 write field to file2. if field is alpha-numeric (some alpha, some numeric, or all apha, not spaces) write field to file1 write "1111" to file2. if field has leading/trailing spaces (remaining vales are numerics)...
  10. rufflocks

    Supressing spaces in pipe-delimited field

    Thanks. That works if I want to print the field without leading and trailing spaces. How about if I want to do some work with the non-space value digit/characters of this field?
  11. 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
  12. rufflocks

    test field for numeric or alpha-numeric

    Thank you. Tell me, though, why is it necessary to have two [0-9]'s? I tried the script as: "if ($2 ~ /^[0-9]*$/) {doNumeric }" and it seems to give the results I want.
  13. 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?
  14. rufflocks

    adding trailing spaces

    Thank You. That worked.
  15. 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?
  16. rufflocks

    Insertng date in output records

    Thanks. It seems to work.
  17. 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?
  18. rufflocks

    Removing trailing spaces within delimited file

    Thanks. The final script took the following form, and it works: cat infile1 | nawk -F ',' '{gsub(" *, *",",");print $0}' > filename
  19. rufflocks

    Removing trailing spaces within delimited file

    I tried the function as a stand-alone. The results were that 1 trailing space was left before the comma. eg: first name,last name ,address1 ,address2, produced: first name,last name ,address1 ,address2, instead of: first name,last name,address1,address2,
  20. rufflocks

    Removing trailing spaces within delimited file

    I was hoping for something simplier. But while I wait, can I include that function within an awk script that will be used to eventaully process the file?

Part and Inventory Search

Back
Top