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
Convert Variable file to fixed file. abhi9845 UNIX for Dummies Questions & Answers 1 09-15-2008 07:07 AM
convert fixed length file to CSV tbtbs Shell Programming and Scripting 12 08-12-2008 09:54 AM
how to convert Fixed length file to delimited file. satyam_sat Shell Programming and Scripting 7 04-03-2008 02:41 AM
convert XML file into Text file(fixed length) ram2s2001 Shell Programming and Scripting 0 11-03-2005 01:28 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 09-15-2008
abhi9845 abhi9845 is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 8
Convert Variable file to fixed file.

I have a set of variable date log files

/tmp/test/test1_<YYYYMMDD>_A.log
/tmp/test/test2_<YYYYMMDD>_B.log
/tmp/test/test3_<YYYYMMDD>_C.log
/tmp/test/test4_<YYYYMMDD>_D.log
/tmp/test/test5_<YYYYMMDD>_E.log


which should be converted (should have content of all the above listed files) into a fixed file /tmp/test/static/test.log.
  #2 (permalink)  
Old 09-15-2008
kmuqalled kmuqalled is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 19
Try bellow command

cat /tmp/test/test[1-5]_*_[A-E].log >> /tmp/test/static/test.log
  #3 (permalink)  
Old 09-16-2008
abhi9845 abhi9845 is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 8
thank u so much
i will try the following and get back to u.
  #4 (permalink)  
Old 09-16-2008
abhi9845 abhi9845 is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 8
thanks for the info
but as i am executing this command it is saying that " file cannot be created"
I am working on HP UNIX Operating System.

Please help me dear
  #5 (permalink)  
Old 09-24-2008
abhi9845 abhi9845 is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 8
help me please

some body please reply and help me
  #6 (permalink)  
Old 09-24-2008
abhi9845 abhi9845 is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 8
some body please reply and help me
  #7 (permalink)  
Old 09-24-2008
danmero danmero is offline Forum Advisor  
  
 

Join Date: Nov 2007
Location: 45.48-73.63
Posts: 1,420
1. Do not bump your question, see The UNIX and Linux Forums - Forum Rules
2. Do you have write permissions on that directory?
Closed Thread

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 11:33 PM.


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