Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
davesavic committed Oct 18, 2023
1 parent a06d461 commit b02240d
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ Download the latest [release](https://github.com/davesavic/csvshift/releases) fo
```bash
csvshift --source large-file.csv --destination transformed-file.csv --path script.csvshift
```
#### Source.csv
```csv
id,first_name,last_name,address,dob
1,John,Smith ,"123 Something Street, Anytown, Queensland 4209 Australia",1980-01-01
2,Jane,Doe,"456 Something Street, Anytown, Queensland 4209 Australia",1950-01-01
3,John,Doe,"789 Something Street, Anytown, Queensland 4209 Australia",1970-01-01
```

#### Script.csvshift
```
Expand Down Expand Up @@ -45,18 +52,12 @@ Column dob
Output Columns id, full_name, street, city, state, postcode, country, dob, day, month, year
```

#### Source.csv
```csv
first_name,last_name,email,phone_number
John, Doe ,[email protected],1234567890
Jane,Smith ,[email protected],0987654321
```

#### Result.csv
```csv
full_name,handle,domain,phone_number
John Doe,johndoe,company.com,1234567890
Jane Smith,janesmith,company.com,0987654321
id,full_name,street,city,state,postcode,country,dob,day,month,year
1,John Lmith,123 Something Street,Anytown,Queensland,4209,Australia,01/01/1980,01,01,1980
2,Jane Doe,456 Something Street,Anytown,Queensland,4209,Australia,01/01/1950,01,01,1950
3,John Doe,789 Something Street,Anytown,Queensland,4209,Australia,01/01/1970,01,01,1970
```

### Syntax
Expand Down

0 comments on commit b02240d

Please sign in to comment.