The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Read words from file and create new file using K-shell. bsrajirs Shell Programming and Scripting 4 06-01-2007 12:15 PM
create a report using shell moco Shell Programming and Scripting 10 04-12-2007 06:01 AM
File Compare and Create New File with Diff guiguy UNIX for Advanced & Expert Users 7 02-28-2007 06:43 AM
help with awk to create report ghazi Shell Programming and Scripting 5 01-05-2005 10:47 AM
Problem getting data to a report file. Cameron Shell Programming and Scripting 4 12-24-2001 10:24 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-27-2008
cvvsnm cvvsnm is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 5
Thumbs up create data file from report file

Dear Ones,
kindly help me to create a data file from the report file as shown here under( i am new one to unix KNOW BASIC COMMANDS)

file:rama.prt

(ist record)(3 to 4 lines of text with different filed names)
Name :M.LALITHA DOB:12/11/45 DESG :JA(P)
STANO:300175 DOA:11/12/07 BASIC:3020.0

(2nd record)(same 3 to 4 lines of text with different DATA same filelds)
NAME :M. RAJA DOB:10/10/65 DESG:CLEANER
STANO:10045 DOA:10/10/07 BASIC:1000.0

I WANT OUTPUT LIKE THIS SO WE CAN USE THIS DATA FILE AT ANYWHERE AND ALSO IN FOX PRO

M.LALILTHA 12/11/45 JA(P) 300175 11/12/07 3020.0 (SO ON...)
M.RAJA 10/10/65 CLEANER 10045 10/10/07 1000.0 (SO ON..)
(THE OUTPUT MAY TAB SEPARATOR ARE DELIMITED WITH" ",OR COMMAS

ADVACE THANKS TO SENIORS AND REQUEST TO GIVE SOLUTION
URS FAITHFULLY
MURTHY
  #2 (permalink)  
Old 01-28-2008
vakharia Mahesh vakharia Mahesh is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 51
data from csv

give the exact details, from which field onward the name starts and
dob starts and from which line onward?? So that you can use different
commnd. Will you give real data starting from which line after the heading and the real data start point ??
  #3 (permalink)  
Old 01-31-2008
cvvsnm cvvsnm is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 5
create data file from report file

hello sir i have report file lilke this


some heading
1 Name:rama rao dob:20/11/07 doa:10/12/07
faname:raja rao basic:2000 .............
.................

2 Name:sita ........................................

like 4 to 5 lines of text for one record and then second recod continues.

we can grep every record name, dob, doa ....for one record

i want to create a data file like

name dob doa fname basic
rama rao 20/11/07 10/12/07 raja rao 2000
..............

kindly give me hlep
  #4 (permalink)  
Old 02-01-2008
vakharia Mahesh vakharia Mahesh is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 51
data from csv

dear friend why I have asked to give excat numbers of line of heading , b'coz the grep comd will start from that line onward only for that reason I have asked to give two records with the heading and can give solution .
Any way you can use grep comd with ~ (tilde) and also sed commd
for conveting the report file to data file say your particular digit's starting position is uniq than you can use either of the grep/sed and make data file.
Sponsored Links
Closed Thread

Bookmarks

Tags
unix commands

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:19 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0