Urgent Need your help --New to Unix


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Urgent Need your help --New to Unix
# 1  
Old 11-02-2005
Urgent Need your help --New to Unix

I am getting data like this in a flat file
seg No
Test A4 0000002595, A2, test ,Datatest
Test, A1 0000002595, A1,SELF , Employed,1,2,3,400.50
Test, A2 0000002595, A2, test ,Data,eurp
Test, A3 0000002595, A2, test ,Data

I need to produce a flat file so that output file will have only one line for the above four line based on Seg and no and comma seprated

i.e in output flat file from line will contain data in below fashion
1 to 60 (Test A4 data will come )
60 to 120 (Test A2 data will come )
120 to 180(Test A3 data will come )
180 to 240(Test A1 data will come )

Please help how to do this with unix Shell script

Regards
Nikhil
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Urgent: UNIX system does not boot

UNIX sco release 5.05 system does not boot: cannot open device hd(40)/boot stage 1 boot failure: error loading hd(40)/boot what to do? (1 Reply)
Discussion started by: Joaoalpande
1 Replies

2. UNIX for Advanced & Expert Users

UNIX ques!! Ans URGENT!!

hello guys!! need 1 favour from u all.. Can u jst tell me the answers for these ques?? 1. ls - l _____ : command to return all files that end with single digit and those with TXT extension 2. ls -l report* _______ : command to return all files that start with the word RPT except those with LOG... (1 Reply)
Discussion started by: Gan_7
1 Replies

3. UNIX for Dummies Questions & Answers

Unix Command Urgent Help!

Hi All, i am new on this forum, can someone please answer the following questions as i am also new for UNIX, you help would be much appreciated: 1. How do you delete the full directory hierarchy? 2. How do you find out all process run by user Kamran ? 3. how would you extract something... (1 Reply)
Discussion started by: kami151
1 Replies

4. Emergency UNIX and Linux Support

UNIX script URGENT!!!

#!/bin/sh INPUT () { echo "Please enter line number: " read LINE echo "Please enter column number that you want to modify: " read COLUMN head -$LINE dataf > line1; LINE=`expr $LINE + 1` head -$LINE dataf > line2; diff line1 line2 > tmp; sed -e... (18 Replies)
Discussion started by: beginner1988
18 Replies

5. UNIX for Advanced & Expert Users

Need a unix script - very urgent

Hi All, I need a script that invokes the sql query every 14 days and send email Very Very urgent this one to me.... (6 Replies)
Discussion started by: bujjisveeru
6 Replies

6. UNIX for Dummies Questions & Answers

Few general unix qns..URGENT!!

hey guys, I have a few general qns on unix, so I'd appreciate quick responses. 1. How do u read a file line by line and display its contents using KSH? 2. How to kill a process using only the name? 3. How to create an empty file with 1MB memory size? 4. How to append some content to an... (2 Replies)
Discussion started by: sasuke_uchiha
2 Replies

7. HP-UX

HP Unix | Urgent Need Help

Hi, I'm new to unix and i'm using HP Unix I tried the following and getting error like 1. $sam sh:sam not found 2.Also i want to monitor/trace other user's command what they are using when am in to the same server Appreciate if any one help on this (4 Replies)
Discussion started by: msgobinathan
4 Replies

8. Shell Programming and Scripting

[urgent need help] unix script....

hi experts, i'm new in scripting unix i have some problem with my script below is shown my script : #!/bin/sh BASEDIR=/export/home/mapadm BINDIR=$BASEDIR/bin LOGDIR=$BASEDIR/log TDRDIR=$LOGDIR/TDR BACKUPDIR=/data/log export BASEDIR BINDIR LOGDIR TDRDIR BACKUPDIR YEAR=`date '+%Y'`... (21 Replies)
Discussion started by: bucci
21 Replies

9. UNIX for Dummies Questions & Answers

UNIX linked to Windows Urgent

hey guys! I know this one is simple since you are the gurus. To make a long story short can i install an oracle database on a unix server and link to that server with a asystem that was written in Visual Basic 6? Please help (1 Reply)
Discussion started by: akrum
1 Replies

10. UNIX for Dummies Questions & Answers

I am in urgent need of all UNIX-derivates...

Hi, could anybody name all the different UNIX versions, producer, historie, etc? need a short briefing... THX a lot in advance... Greetings, PatrickXXO (2 Replies)
Discussion started by: PatrickXXO
2 Replies
Login or Register to Ask a Question
Bio::Chado::Schema::Test(3pm)				User Contributed Perl Documentation			     Bio::Chado::Schema::Test(3pm)

NAME
Bio::Chado::Schema::Test - Library to be used by Bio::Chado::Schema test scripts. SYNOPSIS
use lib qw(t/lib); use Bio::Chado::Schema::Test; use Test::More; my $schema = Bio::Chado::Schema::Test->init_schema(); DESCRIPTION
This module provides the basic utilities to write tests against Bio::Chado::Schema. METHODS
init_schema my $schema = Bio::Chado::Schema::Test->init_schema( deploy => 1, populate => 1, storage_type => '::DBI::Replicated', storage_type_args => { balancer_type=>'DBIx::Class::Storage::DBI::Replicated::Balancer::Random' }, ); This method removes the test SQLite database in t/var/BCS.db and then creates a new, empty database. This method will call deploy_schema() by default, unless the deploy flag is set to 0. This method will call populate_schema() if the populate argument is set to a true value. has_custom_dsn Returns true if the BCS_TEST_DSN environment variable is set. deploy_schema Bio::Chado::Schema::Test->deploy_schema( $schema ); This method does one of two things to the schema. It can either call the experimental $schema->deploy() if the BCSTEST_SQLT_DEPLOY environment variable is set, otherwise the default is to read in the t/lib/sqlite.sql file and execute the SQL within. Either way you end up with a fresh set of tables for testing. populate_schema Bio::Chado::Schema::Test->populate_schema( $schema ); After you deploy your schema you can use this method to populate the tables with test data. perl v5.14.2 2011-11-08 Bio::Chado::Schema::Test(3pm)