Logo 
Search:

Unix / Linux / Ubuntu Articles

Submit Article
Home » Articles » Unix / Linux / Ubuntu » Homework HelpRSS Feeds

Write a shell program to concatenate the contents of 2 files

Posted By: Jack Bouchard     Category: Unix / Linux / Ubuntu     Views: 7386

Write a shell program to concatenate the contents of 2 files.

Code for Write a shell program to concatenate the contents of 2 files in Unix / Linux / Ubuntu

echo Enter first filename
read first
echo Enter second filename
read second
cat $first > third
cat $second >> third
echo After concatination of contents of entered two files
echo ----------------------------------------------------
cat third | more
echo ----------------------------------------------------
  
Share: 



Jack Bouchard
Jack Bouchard author of Write a shell program to concatenate the contents of 2 files is from Montreal, Canada.
 
View All Articles

Related Articles and Code:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!