spread a file into multiple .csv files per each line of inputfile read

J Free

I have .csv file with over 1000 rows that contains on each row a number ie, "2224441214" that is the only value on the row. I need to break that file up into a .csv file named "2224441214.csv" for each row.

ie, "2224441214.csv" "22655443.csv" "2222211564.csv"

αғsнιη

It can be done with below awk command,

awk '{print > $0".csv"}' infile.csv

This will create multi .csv files named with numbers read from infile.csv

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

How to Remove last comma of each line on csv using linux

분류에서Dev

how can read files in directory and write to file

분류에서Dev

Read and Append List From Multiple Files

분류에서Dev

How would I read the contents of a text file and run a command for each line?

분류에서Dev

VB.NET read only some cells for each row from csv file

분류에서Dev

Read text file in Perl word by word instead of line by line

분류에서Dev

Importing a CSV file into postgres - skip the first line

분류에서Dev

Read any column from csv file

분류에서Dev

Parsing xml file that comes in as one object per line

분류에서Dev

Read files with fileinput.input() from X line

분류에서Dev

Read several numpy array from csv in one line

분류에서Dev

Java how to read a txt file and make each line it's own string array

분류에서Dev

Frequency of specific symbols on each line of a text file

분류에서Dev

Grep last N characters of each line in a file

분류에서Dev

How to Remove last comma of each line on csv using linux

분류에서Dev

Bash - pair each line of file

분류에서Dev

How to Read string from file and compare to each line of second file

분류에서Dev

How to [constantly] read the last line of a file?

분류에서Dev

MS Access 2016 Import multiple CSV files

분류에서Dev

File read and write while reading the file line by line

분류에서Dev

Read file, line by line, and store values into a array/string?

분류에서Dev

Running multiple command line after each other linux python

분류에서Dev

How to read a text file from a url line by line

분류에서Dev

How to write a dictionary with multiple keys, each with multiple values to a csv in Python?

분류에서Dev

Batch file to rename files by adding different suffix to each file

분류에서Dev

Can't read first row of CSV file

분류에서Dev

Number of same line in each text file

분류에서Dev

Python write to file : TypeError : one per line how?

분류에서Dev

Add and number blank line above each line in a file

Related 관련 기사

  1. 1

    How to Remove last comma of each line on csv using linux

  2. 2

    how can read files in directory and write to file

  3. 3

    Read and Append List From Multiple Files

  4. 4

    How would I read the contents of a text file and run a command for each line?

  5. 5

    VB.NET read only some cells for each row from csv file

  6. 6

    Read text file in Perl word by word instead of line by line

  7. 7

    Importing a CSV file into postgres - skip the first line

  8. 8

    Read any column from csv file

  9. 9

    Parsing xml file that comes in as one object per line

  10. 10

    Read files with fileinput.input() from X line

  11. 11

    Read several numpy array from csv in one line

  12. 12

    Java how to read a txt file and make each line it's own string array

  13. 13

    Frequency of specific symbols on each line of a text file

  14. 14

    Grep last N characters of each line in a file

  15. 15

    How to Remove last comma of each line on csv using linux

  16. 16

    Bash - pair each line of file

  17. 17

    How to Read string from file and compare to each line of second file

  18. 18

    How to [constantly] read the last line of a file?

  19. 19

    MS Access 2016 Import multiple CSV files

  20. 20

    File read and write while reading the file line by line

  21. 21

    Read file, line by line, and store values into a array/string?

  22. 22

    Running multiple command line after each other linux python

  23. 23

    How to read a text file from a url line by line

  24. 24

    How to write a dictionary with multiple keys, each with multiple values to a csv in Python?

  25. 25

    Batch file to rename files by adding different suffix to each file

  26. 26

    Can't read first row of CSV file

  27. 27

    Number of same line in each text file

  28. 28

    Python write to file : TypeError : one per line how?

  29. 29

    Add and number blank line above each line in a file

뜨겁다태그

보관