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 > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Replace columns from File1 with columns from File2 seijihiko UNIX for Dummies Questions & Answers 1 04-22-2009 04:34 AM
Line editing king87 UNIX for Dummies Questions & Answers 6 03-04-2009 03:07 AM
editing a file Aditya.Gurgaon Shell Programming and Scripting 2 02-17-2009 04:16 AM
3 columns to 10 columns convertion aloctavodia Shell Programming and Scripting 4 02-14-2009 12:51 AM
Hex editing Swanie UNIX for Dummies Questions & Answers 3 12-08-2007 01:11 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 3 Weeks Ago
kylle345 kylle345 is offline
Registered User
  
 

Join Date: May 2009
Posts: 47
Editing columns

Hi, I have a file with a title for some rows but not all. I tried looking for examples of this but I am not sure what its called.

The file looks something like this:

Code:
name date 1 2 3
2 3 4
5 6 7
3 4 6
title author 1 3 5
2 3 5
2 3 2
Its hard to describe what I want to do with it but I want it to look like this:

Code:
name date 1 2 3
name date 2 3 4
name date 5 6 7
name date 3 4 6
title author 1 3 5
title author 2 3 5
title author 2 3 2
So basically adding the first two columns so the rows below until a different title appears...

kylle
 

Bookmarks

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:32 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