Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about tac

Read more about tac

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - tac

Merging of two files with substitution

I need to merge two files, adding the contain of the file 2 directly to the end of the file 1. Notable the last line of the first file consist of the phrase "END". I need to remove it and ad...
test-img

Hot JAMS

bash

awk

sed

cat

tac

Votes: 0

Answers: 5

Latest Answer

Using sed: sed -e '${r file2' -e ';$d;}' file1 string 1 string 2 string N string 3 string 4 string M If you want to use shell variable instead of file names directly: sed -i.bak -e "\${r $f2&qu...
test-img

anubhava

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved