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. 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
  16. sunixadm

    pkginfo question

    Hi, if you know the name of the package, you can do: pkgchk -v PKGNAME for example: pkgchk -v SMCrsync /usr/local/bin /usr/local/bin/rsync /usr/local/doc /usr/local/doc/rsync /usr/local/doc/rsync/COPYING /usr/local/doc/rsync/INSTALL /usr/local/doc/rsync/NEWS /usr/local/doc/rsync/OLDNEWS...
  17. sunixadm

    How do you set a timeout for YP (NIS) in Solaris 9?

    Hi, I would edit /etc/init.d/inetsvc to not start NIS (bind to the NIS server). Hope this helps! -Joe
  18. sunixadm

    Getting the right output

    Thanks to everyone who responded. I've not only found a solution to my problem, I've also learned something new! Thanks! -Joe
  19. sunixadm

    Getting the right output

    Hi Paul, I tried your code and got: Bareword found where operator expected at ./new.pl line 2, near ""<"files" (Missing operator before files?) String found where operator expected at ./new.pl line 2, near "txt" or die "" Bareword found where operator expected at ./new.pl line 2, near...
  20. sunixadm

    Getting the right output

    Hi, I have a text file with this content: vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool (C) Copyright 2001 Microsoft Corp. Contents of shadow copy set ID: {bcfa443a-2977-4ca1-880b-2403044e9b84} Contained 1 shadow copies at creation time: 8/2/2005 7:45:01 AM...

Part and Inventory Search

Back
Top