Concatenate files and delete source files. Also have to add a comment. | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


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 !!

Concatenate files and delete source files. Also have to add a comment.

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-27-2013
eskay eskay is offline
Registered User
 
Join Date: Apr 2012
Last Activity: 8 July 2013, 2:42 PM EDT
Posts: 26
Thanks: 4
Thanked 0 Times in 0 Posts
Concatenate files and delete source files. Also have to add a comment.

- Concatenate files and delete source files. Also have to add a comment.

- I need to concatenate 3 files which have the same characters in the beginning and have to remove those files and add a comment and the end.

Example:


Code:
cat REJ_FILE_ABC.txt REJ_FILE_XYZ.txt REJ_FILE_PQR.txt > REJ_FILE.txt | xargs rm -f REJ_FILE_* /*this command concatenate the reject files*/

I need a one line command.

Last edited by vbe; 12-20-2013 at 03:14 PM.. Reason: restored the removed content
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Concatenate Several Files to One dirt1228 UNIX for Dummies Questions & Answers 6 03-20-2013 01:26 AM
need a shell script to extract the files from source file and check whether those files existonserve muraliinfy04 Shell Programming and Scripting 13 02-22-2012 07:14 AM
Any command to delete files from source dir after SFTP copy chetancrsp18 Shell Programming and Scripting 5 08-11-2011 09:27 AM
Concatenate files zhshqzyc Shell Programming and Scripting 6 02-19-2011 04:35 PM
How to concatenate all files. s80bob UNIX for Dummies Questions & Answers 1 08-22-2005 04:20 PM



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