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: ooids
  • Order by date
  1. ooids

    Simple counter

    Many thanks!
  2. ooids

    Simple counter

    Hi Feherke, No typos. The first new occurrence of a number = 1 Subsequent occurrences of the same number = 2 The last occurrence of the number = 3 Hope that makes sense - what I am struggling with is being able to compare the current line with the previous one so I know when the number changes...
  3. ooids

    Simple counter

    Hi, I have a simple input file: 1 1 1 1 2 2 2 2 3 3 3 I need to create an additional column in the file which is based on the first columns numbers: 1 1 1 2 1 2 1 3 2 1 2 2 2 2 2 3 3 1 3 2 3 3 etc Any ideas would be great! Many Thanks
  4. ooids

    Decimate a file

    Many Thanks ALL!
  5. ooids

    Decimate a file

    Hi All, Anybody know of a command (or simple script) to decimate a file by a user specified amount? e.g. I have a file that has 24 million lines and I only want to keep every 10th line. Many Thanks, James
  6. ooids

    Mounting a USB flash drive on Solaris 8

    I have nothing in /vol/dev/dsk /vol/dev exists but not the dsk directory... ls -l /dev/dsk/c* | grep stor gives me: lrwxrwxrwx 1 root root 55 Apr 11 08:25 /dev/dsk/c3t0d0s0 -> ../../devices/pci@8,700000/usb@5,3/storage@1/disk@0,0:a lrwxrwxrwx 1 root root 55 Apr 11...
  7. ooids

    Mounting a USB flash drive on Solaris 8

    Here we go: c3t0d0 Soft Errors: 1 Hard Errors: 0 Transport Errors: 0 Vendor: Generic Product: Flash Di Revision: Serial No:  Size: 0.07GB <65536000 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 1 Predictive Failure Analysis: 0 c1t1d0...
  8. ooids

    Mounting a USB flash drive on Solaris 8

    Good question - i haven't installed anything extra on the machine - i assumed that because the messages file was spilling out with lots of USB related messages, and it seemed to recognize the device, that they were already installed. How do i check this? Cheers
  9. ooids

    Mounting a USB flash drive on Solaris 8

    Thanks, I tried the suggestions but got the same results as before - do you think that i need to stop/start the volume manager with the device attached?
  10. ooids

    Mounting a USB flash drive on Solaris 8

    Thanks - but if i run format, won't that destroy data on the drive?
  11. ooids

    Mounting a USB flash drive on Solaris 8

    Hi All, I am trying to mount a USB flash drive onto a Sunblade running Solaris 8 In /var/adm/messages it appears that the device is being picked up but i am getting an error: "corrupt label - wrong magic number" Doing the following appears to list the device correctly: > ls -l...
  12. ooids

    File decimation

    I was more after an example of decimation using your notation as it differs from the previous example that worked... Cheers!
  13. ooids

    File decimation

    Thanks, Can you expain "n" and "p" - i have rarely used sed...
  14. ooids

    File decimation

    Update to my last post - the sed command runs on my Linux (Redhat) box - just not on my Sun (Solaris 2.8). Thanks for the help!
  15. ooids

    File decimation

    Thanks feherke, The sed command fails - "Unrecognized command: 3~3p" - any ideas why? I can get the awk to work but only using "nawk" so thanks for that. Cheers!
  16. ooids

    File decimation

    Hi, I need to write a script that decimates a file by a user specified amount. e.g. Keep every 5th, 10th, 30th line etc. Is there a standard unix command that i can use to do this or should i be looking at sed or awk? Any ideas would be great. Cheers!
  17. ooids

    Linux install partition problem

    Thanks for the help Are you sure SWAP has to be primary - can it not be a logical partition? Is it possible to "move" a partition from primary to logical - i have used Acronis Disk director recently and that has a move option but this feels like a dangerous thing to do! Cheers
  18. ooids

    Linux install partition problem

    Hi All, I am trying to install RHEL WS3 on a machine that is already dual booted with XP and RH 7.3 This is what i get when i choose Manual partition mode: /dev/hda1 ntfs /dev/hda2 ext3 (/boot) # Used for RH 7.3 /dev/hda3 swap /dev/hda4 Extended /dev/hda5 ext3 (/) # Used for RH 7.3 Free...
  19. ooids

    Variable Substitution - floating point numbers

    Thanks a lot for the help - just what i need...
  20. ooids

    Variable Substitution - floating point numbers

    Thanks.. Would either of you be able to give me an example of using bc on my script? I'm a newbie, not used bc before..

Part and Inventory Search

Back
Top