About 16,700,000 results
Open links in new tab
  1. How to create .txt and .csv files in Unix? - Stack Overflow

    Sep 19, 2022 · I'm learning how to use the terminal and manage unix and I was wondering what is the way to make a .txt and a .csv to store some text information. Run touch fileName.txt to …

  2. shell script - generate a csv file - Unix & Linux Stack Exchange

    I have a script that generates a .txt file. That file have tab-delimited columns. The number of columns vary depending on the input file. How can I convert that .txt file to csv format? I want to...

  3. command line - Create a CSV file from a TXT file - Ask Ubuntu

    It depends what you mean by a "word", and what you mean by a "CSV file". If you just want to convert horizontal whitespace to commas, you could use something like. tr -s '[:blank:]' , < …

  4. Reading and Writing CSV in Bash - Stack Abuse

    Mar 1, 2023 · In this tutorial, learn how to read and write CSV files in Bash, using `awk`, `sed`, `read` and `echo`, as well as best practices for working with CSV files.

  5. linux - Create a csv file - Super User

    Dec 16, 2022 · I want create a file with two tables. How to do this? although you ask for a csv, you are indeed asking for a pipe delimited file. you can achieve this with the paste command: …

  6. How to generate csv file by bash script - Supakon_k - Medium

    Feb 11, 2022 · echo "first_name,last_name,age" > test-gen.csv; \ echo "John,Wick,57" >> test-gen.csv echo : print the output > : write output to file (it will auto generate file if the file is not exist)

  7. How to create a CSV/Text file in linux terminal

    Jun 13, 2021 · Let’s start an empty file name data.csv and data.txt $ touch data.csv $ touch data.txt . Add data on this file simply $ echo 'This is text'>data.txt. Add more data on existing …

  8. FreeKB - Bash (Scripting) - Create Excel or CSV file

    The column command can be used to create a tab separated CSV file. In this example, the data in the example.csv file is comma separated, and then a new CSV file named tab.csv is created. …

  9. shell - How to create a csv file in unix - Stack Overflow

    Like Mark Setchell said echo Date,Count > file.csv is how you create the header. If you have a script that outputs the date and the count by parsing log files with a comma in between you …

  10. Shell commands for simple tasks of processing CSV file - Linux Tips

    Jan 6, 2020 · Use awk to get fields in CSV file: $ cat students.csv Alice,85,[email protected] Bob,92,[email protected] Chris,60,[email protected] # use `awk` to split each line and …

  11. Some results have been removed
Refresh