file A
file B
file C
Now I want to regroup the data in the following output format
OUTPUT FILE
GOOD
A B C
Strawberry 1 1 1
Banana 23 2 2
Plantain 0 0 5
Orange
BAD
A B C
Strawberry
Banana
Plantain
Orange
FAIR
A B C
Strawberry
Banana
Plantain
Orange
please anybody with an idea on how it can be achieved, while computing sum under each output file. The first column in in the input files is fixed for all.
Thanks.
Last edited by Yogesh Sawant; 04-10-2009 at 04:42 AM..
Reason: added code tags
I am running Solaris 9 and wanted the CDE stopped when my users login. Can this be done by adding something to the .profile? Basically when they login they should be at the command line and have to start the CDE themselves.
Thanks (11 Replies)
Hi all,
I'm trying to write a script that will turn off the network interface eth0 on a linux Gentoo machine and then turn it back on, any help?
Thanks,
Neked (1 Reply)
Hi,
Is there any way like in dos to turn the echo off in a script? i have some lines popping up that i dont wish to be viewed when i am unziping a file it brings up the message updating: log.txt (deflated 72%) and extracting: log.txt i dont want these be viewed.
Andy (4 Replies)
For two straight days someone was running in.ftpd in my server (apparently looking to break in) and when I would do "top" almost every line would read "in.ftpd". I had a unix sysadmin friend of mine shut it down and then start it back up in a day and a half and all seems OK for now.
Here's what I... (1 Reply)
Hi Guys,
I have a database server where we run AIX 5.3 on a power5 box and we just turned on CIO (concurrent I/O) for the database filesystems. Now my assumption is that enabling CIO the database basically will bypass the filesystem cache releasing some extra memory that can be allocated... (1 Reply)
Hi Guys,
I have a database server where we run AIX 5.3 on a power5 box and we just turned on CIO (concurrent I/O) for the database filesystems. Now my assumption is that enabling CIO the database basically will bypass the filesystem cache releasing some extra memory that can be allocated... (1 Reply)
I want to be able to convert the following data from a CSV into individual variables from the columns 2 4 and 8
I can use awk to grab the columns using var1=`cat text.csv | awk "," '{print $2}'` but how do I create separate variables for each line.
595358 ,ECON1010 ,THU ,08:00 - 10:00 ,11 Mar... (6 Replies)
I hope I can explain this correctly. I am using Bash-4.2 for my shell.
I have a group of file names held in an array. I want to compare the names in this array against the names of files currently present in a directory. If the file does not exist in the directory, that is not a problem.... (5 Replies)
OSR 5.0.7 patched with MP 5
The syslog is flooded with messages:
May 9 13:42:12 asiwc bootpd: IP address not found: 192.168.230.215
May 9 13:42:13 asiwc bootpd: IP address not found: 192.168.230.142
May 9 13:42:50 asiwc bootpd: IP address not found: 192.168.230.202
The system... (4 Replies)
i can probably script this in bash, but, i was wondering, does anyone know of a simple way to translate a given time to epoch?
date -d@"29/Oct/2013:17:53:11"
the user would specify the date: 29/Oct/2013:17:53:11
and the script will simply interpret that to epoch: 1348838383 (this is just... (4 Replies)