Skip to main content
added 5 characters in body
Source Link
slm
  • 379.7k
  • 127
  • 793
  • 897

I have this csvCSV file:

"Product ID";"Product Name";"Price";"Description";
"11;"Example";"200";"Descripcion here...";
"21;"Example2";"300";"Some here...";

I want to split it line by line and save them into the file with the name of first column.

Example:

11.csv {"11;"Example";"200";"Descripcion here...";}
21.csv {"21;"Example2";"300";"Some here...";}

I use this comandcommand:

 $ split -l 1 file.txt new  

But this create newa ,newb,newc,newd, etc!?

I have this csv file:

"Product ID";"Product Name";"Price";"Description";
"11;"Example";"200";"Descripcion here...";
"21;"Example2";"300";"Some here...";

I want to split it line by line and save them into the file with the name of first column.

Example:

11.csv {"11;"Example";"200";"Descripcion here...";}
21.csv {"21;"Example2";"300";"Some here...";}

I use this comand

 split -l 1 file.txt new  

But this create newa ,newb,newc,newd, etc!

I have this CSV file:

"Product ID";"Product Name";"Price";"Description";
"11;"Example";"200";"Descripcion here...";
"21;"Example2";"300";"Some here...";

I want to split it line by line and save them into the file with the name of first column.

Example:

11.csv {"11;"Example";"200";"Descripcion here...";}
21.csv {"21;"Example2";"300";"Some here...";}

I use this command:

 $ split -l 1 file.txt new  

But this create newa ,newb,newc,newd, etc!?

added 106 characters in body
Source Link
Jess
  • 25
  • 1
  • 4

I have this csv file:

"Product ID";"Product Name";"Price";"Description";
"11;"Example";"200";"Descripcion here...";
"21;"Example2";"300";"Some here...";

I want to split it line by line and save them into the file with the name of first column.

Example:

11.csv {"11;"Example";"200";"Descripcion here...";}
21.csv {"21;"Example2";"300";"Some here...";}

I use this comand

 split -l 1 file.txt new  

But this create newa ,newb,newc,newd, etc!

I have this csv file:

"Product ID";"Product Name";"Price";"Description";
"11;"Example";"200";"Descripcion here...";
"21;"Example2";"300";"Some here...";

I want to split it line by line and save them into the file with the name of first column.

Example:

11.csv {"11;"Example";"200";"Descripcion here...";}
21.csv {"21;"Example2";"300";"Some here...";}

I have this csv file:

"Product ID";"Product Name";"Price";"Description";
"11;"Example";"200";"Descripcion here...";
"21;"Example2";"300";"Some here...";

I want to split it line by line and save them into the file with the name of first column.

Example:

11.csv {"11;"Example";"200";"Descripcion here...";}
21.csv {"21;"Example2";"300";"Some here...";}

I use this comand

 split -l 1 file.txt new  

But this create newa ,newb,newc,newd, etc!

edited tags
Source Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 264

Split into file whitwith first column Name

Hello iI have thisthis csv file:

"Product ID";"Product Name";"Price";"Description";
"11;"Example";"200";"Descripcion here...";
"21;"Example2";"300";"Some here...";

I want to split lineit line by line and save them into the file whitwith the name of first column.

Example:

11.csv {"11;"Example";"200";"Descripcion here...";}
21.csv {"21;"Example2";"300";"Some here...";}

Split into file whit first column Name

Hello i have this csv file

"Product ID";"Product Name";"Price";"Description";
"11;"Example";"200";"Descripcion here...";
"21;"Example2";"300";"Some here...";

I want to split line by line and save into the file whit the name of first column

Example

11.csv {"11;"Example";"200";"Descripcion here...";}
21.csv {"21;"Example2";"300";"Some here...";}

Split into file with first column Name

I have this csv file:

"Product ID";"Product Name";"Price";"Description";
"11;"Example";"200";"Descripcion here...";
"21;"Example2";"300";"Some here...";

I want to split it line by line and save them into the file with the name of first column.

Example:

11.csv {"11;"Example";"200";"Descripcion here...";}
21.csv {"21;"Example2";"300";"Some here...";}
Source Link
Jess
  • 25
  • 1
  • 4
Loading