@@ -14,6 +14,13 @@ Download the latest [release](https://github.com/davesavic/csvshift/releases) fo
14
14
``` bash
15
15
csvshift --source large-file.csv --destination transformed-file.csv --path script.csvshift
16
16
```
17
+ #### Source.csv
18
+ ``` csv
19
+ id,first_name,last_name,address,dob
20
+ 1,John,Smith ,"123 Something Street, Anytown, Queensland 4209 Australia",1980-01-01
21
+ 2,Jane,Doe,"456 Something Street, Anytown, Queensland 4209 Australia",1950-01-01
22
+ 3,John,Doe,"789 Something Street, Anytown, Queensland 4209 Australia",1970-01-01
23
+ ```
17
24
18
25
#### Script.csvshift
19
26
```
@@ -45,18 +52,12 @@ Column dob
45
52
Output Columns id, full_name, street, city, state, postcode, country, dob, day, month, year
46
53
```
47
54
48
- #### Source.csv
49
- ``` csv
50
- first_name,last_name,email,phone_number
51
- John, Doe ,[email protected] ,1234567890
52
- Jane,Smith ,[email protected] ,0987654321
53
- ```
54
-
55
55
#### Result.csv
56
56
``` csv
57
- full_name,handle,domain,phone_number
58
- John Doe,johndoe,company.com,1234567890
59
- Jane Smith,janesmith,company.com,0987654321
57
+ id,full_name,street,city,state,postcode,country,dob,day,month,year
58
+ 1,John Lmith,123 Something Street,Anytown,Queensland,4209,Australia,01/01/1980,01,01,1980
59
+ 2,Jane Doe,456 Something Street,Anytown,Queensland,4209,Australia,01/01/1950,01,01,1950
60
+ 3,John Doe,789 Something Street,Anytown,Queensland,4209,Australia,01/01/1970,01,01,1970
60
61
```
61
62
62
63
### Syntax
0 commit comments