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
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
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...
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!
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...
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.