Skip to content

Commit b02240d

Browse files
committed
Updated readme
1 parent a06d461 commit b02240d

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

README.md

+11-10
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ Download the latest [release](https://github.com/davesavic/csvshift/releases) fo
1414
```bash
1515
csvshift --source large-file.csv --destination transformed-file.csv --path script.csvshift
1616
```
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+
```
1724

1825
#### Script.csvshift
1926
```
@@ -45,18 +52,12 @@ Column dob
4552
Output Columns id, full_name, street, city, state, postcode, country, dob, day, month, year
4653
```
4754

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-
5555
#### Result.csv
5656
```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
6061
```
6162

6263
### Syntax

0 commit comments

Comments
 (0)