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 TouchToneTommy 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
  • Content: Threads
  • Order by date
  1. 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
  2. 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
  3. 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...
  4. 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!
  5. 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...
  6. ooids

    Variable Substitution - floating point numbers

    Hi! I have a very basic script: #!/bin/ksh A=0.5 B=0.5 C=$((A * B)) echo $C It returns 0 - How do i get it to output to 2dp / control the precision of the variables? Many Thanks

Part and Inventory Search

Back
Top