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

  • Users: jkluesner
  • Content: Threads
  • Order by date
  1. jkluesner

    line break every two fields

    Hello all, I know this is a simple question, however I haven't used awk in over a year and am having memory issues... (must be that I turned 30 last week). Anyway, I want to take a txt file with 8 fields on one line and add line breaks every two fields. For example the file looks like this...
  2. jkluesner

    printing the line only when a value changes

    Hello all, I have a file reformated to finally look like this: 26 05 2008 2153 22 49.9985-107 52.0001 26 05 2008 2153 22 49.9985-107 52.0001 26 05 2008 2153 22 49.9985-107 52.0001 26 05 2008 2153 22 49.9986-107 52.0001 26 05 2008 2154 22 49.9985-107 52.0001 26 05...
  3. jkluesner

    checking # of digits in feild and adding zeros

    Hello all, I am trying to edit some ship gps data and I am having a problem with getting the hour/minute gmt time in the format I need. This is how far I have been able to get the data: 02 05 2008 13 59 22.53617615 -106.69877400 02 05 2008 13 59 22.53617619 -106.69877400 02 05 2008 13 59...
  4. jkluesner

    usb storage Solaris 8 problems!!

    Hello all, I have been trying for the past week to mount a 2 TB usb storage device that I built (VENUS box with 4x 500 gb). It shows up when I type cd /dev/rdsk ls -l c*0 | grep usb I then tried to mount it with this command (vold turned off) mount -F pcfs /dev/dsk/c4t0d0s0:c /mnt it says...
  5. jkluesner

    remove after decimal place and switch fields

    Hello all, I am needing to take a data set (see below) and delete the decimal digits on the second field and then switch the two fields. Thanks!! 2.53993 6.65588 2.53591 43.4191 2.53671 63.2147 2.54153 94.3221 2.54876 136.741 2.55117 153.709 2.56000 184.816 2.56401 238.547 2.56722...
  6. jkluesner

    Reading only certian fields with substr and skipping the rest

    Hello agian, Thanks for the help on my last question. Ok, I have a printf statement that reads certian feilds using substr. I use this because the raw data has no spaces or commas....just a bunch of numbers. This is the printf I use: #!/usr/bin/awk -f { printf "%s %s %s %s%s %s%s"...
  7. jkluesner

    comparing values from different lines

    Hello all, I am a new (very new) user of awk and I am trying to write a if statement that will store a value in a variable, skip to the next line and store that same value (but different line) and then compare the two. If they are equal then loop again, if they are not equal then print the...

Part and Inventory Search

Back
Top