Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6971025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:47:08+00:00 2026-05-27T16:47:08+00:00

I am trying to write data from three txt files in csv file. three

  • 0

I am trying to write data from three txt files in csv file.

three files contain below data

data in the file is in this format -server date filename number

first txt file as-

app1 11.12.16 name1 2
app1 11.12.17 name2 3

second as

app2 11.12.16 name1 2
app2 11.12.17 name2 3

and same for thrird file with server as app3

i want to put this data from these three files to one csv file using shell script. the data in the txt file is separated with space.

data should go in same manner just in different row.

One more thing can be put a heading in the first row as server date filename number and put filter? is it possible?

Thanks in advance…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T16:47:09+00:00Added an answer on May 27, 2026 at 4:47 pm

    This is a way to do it:

    (
        echo "server,date,filename,number"; sed 's/\s\+/,/g' file*
    ) >target.csv
    

    This doesn’t reorder rows, though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to write sql that produces the desired result from the data below.
I'm trying to load data from a .txt file with PHP, but I fail
I am trying to write data from form inputs to a text file using
I'm trying to write a query that extracts and transforms data from a table
I'm trying to write a javascript application that loads data from the openstreetmap API
I'm trying to read binary data from a specific offset. I write the data
I am trying to write our own RIA services provider to expose data from
I am trying to write data stored in a binary file using turbo C++.
I want to write data into the file in binary form. I was trying
I am trying to write a python script that takes record data like this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.