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
Need Help with Echo saintdesy UNIX for Dummies Questions & Answers 2 06-29-2008 10:11 PM
awk to echo ??? jisha Shell Programming and Scripting 2 04-11-2008 03:51 AM
echo $0 mainegate Shell Programming and Scripting 2 09-24-2007 02:34 AM
FTP--How to use echo?? rahul26 UNIX for Advanced & Expert Users 1 06-14-2006 10:47 AM
What does echo ^[[r do? hamsasal UNIX for Advanced & Expert Users 1 07-24-2005 02:14 PM

 
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 06-12-2009
jojo123 jojo123 is offline
Registered User
  
 

Join Date: May 2009
Posts: 51
Exclamation How To echo them....?

There is an output file which has been generted by Concatenating 4 differnt files.

like four files (a,b,c,d) contains output of different lenght and line number.
Suppose file a contains 10 records and all ten records are of constant varible lenght (let us say 12)

same is the case with rest of the files.

now i (cat) all those file in such a way that my desired sequences is printed accordingly as shown in last

cat a b c d > output.txt


I am getting the output as
Code:
Helloworld1a
Helloworld2a
Helloworld3a
Helloworld4a
Helloworld5a
Helloworld6a
Helloworld7a
Helloworld8a
Helloworld9a
Helloworld1b
Helloworld2b
Helloworld3b
65643534557
65466476576
78768776576
76587787878
45646765788
56678867676
65466586765
97564536675
00657657657
00657657657
78947594085
63598795095
46789665879
54356546766|65
65767657676|76
76576576767|76
76575675676|45
67657567567|78
64354364567|53
54354367235|24
68674565675|78
56544356567|43
78798098098|44
46546757768|24
34675876889|33
5454
3456
8768
4535
8667
8657
8367
6667
3668
8550
2227
Now i want the output as

Code:

Helloworld1a                65643534557             54356546766|65        5454
Helloworld2a                65466476576             65767657676|76        3456
Helloworld3a                78768776576             76576576767|76        8768
Helloworld4a                76587787878             76575675676|45        4535
Helloworld5a                45646765788             67657567567|78        4543
Helloworld6a                56678867676             64354364567|53        8667
Helloworld7a                65466586765             54354367235|24        8657
Helloworld8a                97564536675             68674565675|78        8367
Helloworld9a                00657657657             56544356567|43        6667
Helloworld1b                78947594085             78798098098|44        3668
Helloworld2b                63598795095             46546757768|24        8550
Helloworld3b                46789665879             34675876889|33        2227
Please post the complete script with a little description for my understanding i'll be grateful to you all.

Thnkz in Advance.
 

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 06:28 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