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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by sunixadm

  1. sunixadm

    Join lines based on regular expression

    Thanks feherke, I haven't been using perl long and had never seen the -p option. Your recommendation works like a charm. -joe
  2. sunixadm

    Join lines based on regular expression

    Hi all, I have a file with data that looks like this CUSTID3478901 pono1 9876534 pono2 6345827 pono3 4567001 CUSTID7650943 pono1 0192835 pono2 6019834 pono3 8876123 pono4 9933457 pono5 7756382 pono6 8566123 The list contains thousands of "CUSTID"s and each CUSTID can have anywhere from 0 to...
  3. sunixadm

    Rows to columns

    Thanks feherke! This is a great start. Cheers, -Joe
  4. sunixadm

    Rows to columns

    Hi Gurus, I have worked on this all day and can't seem to find the answer. I have this in a file: ce0: ipackets 113961312 ipackets64 113961312 ierrors 0 opackets 80229294 opackets64 80229294 oerrors 0 collisions 0 rbytes...
  5. sunixadm

    Help with getline

    Thanks PHV! I guess I was trying to make it harder than it has to be! Cheers, -Joe
  6. sunixadm

    Help with getline

    Hello masters of awk, I am a basic user of awk and need some help using getline and would appreciate any help you could offer. I have a file name parts with this content: ABS1234 ABS5678 ABS9101 ABS2175 ABS8234 ABS9876 ABS0765 ABS9937 ABS2254 I am trying to get the file to look like this...
  7. sunixadm

    Case expression using %

    thanks Dagon. That hit the nail on the head. Cheers, -Joe
  8. sunixadm

    Case expression using %

    Hi masters of SQL, I can't seem to get this query right and would appreciate any help you might offer. I have an application that stores log data in a 10g db and want to get information regarding process starts and the completion status of the process. Here is what I have tried: select...
  9. sunixadm

    Print information between [ and ]

    Thanks PHV, That hit the nail on the head! Cheers, -Joe
  10. sunixadm

    Deleting Mail Files

    HI, instead of cp /dev/null /var/mail/userid I would do this: > /var/mail/userid This will also zero out the file. This method can be used to zero out any file and saves all that typing. ;-) -joe
  11. sunixadm

    Print information between [ and ]

    Hello masters of AWK, I've been trying for hours to solve this problem and need some help please. I have files with content similar to ---cut--- 5 1 0x406B01AC[free(0x406b0120)+0x8c] 0x405192BC[aaa_idb_name_cleanup(0x4051929c)+0x20] 0x4051F840[free_general_db(0x4051f828)+0x18]...
  12. sunixadm

    SAN & Power SNAP VS NDMP

    Hi, We use DDS (Dinamic Drive Sharing) for SAN attached systesm and NDMP for our Celerra (NAS). We also use check points on the Celerra and keep 4 check points for the current day and one check point from each of the last 7 days. The check points are great as they reduce the amount of time to...
  13. sunixadm

    Start/Stop Scripts in /etc/...?

    @franz You most certainly can hardlink a softlink, you could also softlink to a hardlinked soft link but, why would you want to do that. Although it is true that you can only hardlink in the same FS, we're talking about linking from /etc/init.d to the rc.* directories, these directories are...
  14. sunixadm

    Start/Stop Scripts in /etc/...?

    Hi, Why soft links? If the start script is deleted, you now have a dead link! I would recommend using hard links. This is also what is taught in sun's admin courses ;-) -Joe
  15. sunixadm

    Solaris swap question

    Hi, I would never set SWAP to more than 2GB and the inital SWAP space should be on the primary (system) disk. If, for some reason, you should need additional swap space and you have additional disks, put additional swap on a different disk. Hope this helps! -Joe

Part and Inventory Search

Back
Top