Comments (2)
I believe you can currently do this via multiple uses of the behead
subcommand. If you want to remove one header, then use
gocsv behead input.csv > output.csv
If you want to remove two headers, then
gocsv behead input.csv | gocsv behead > output.csv
etc.
We can add a -n
flag to the behead
subcommand though to provide a shorthand for doing the chained piping. With this, in order to remove N headers, you would use
gocsv behead -n N input.csv > output.csv
Would that be a good solution?
[Edit: Forgot to write gocsv behead
, not just behead
, in code snippets.]
from gocsv.
Yes that sounds like a great solution :)
from gocsv.
Related Issues (20)
- No windows binary HOT 2
- Add new empty columns HOT 1
- display info to user on which file's headers didnt match for stack subcommand HOT 1
- How to use sql subcommand exactly? HOT 6
- Allow setting a default delimiter HOT 4
- Grouping/stacking datasets HOT 1
- Directory mode [for stacking in particular]
- updates to tealeg/xlsx result in gocsv build errors HOT 4
- How to use unique then save as a csv name? HOT 2
- Improving the release practice HOT 3
- "gocsv sql" and column names that contain square brackets? HOT 1
- Convert csv to json HOT 1
- gocsv xlsx option does convert Exel date fields to numbers HOT 1
- add assumes the input has a header HOT 1
- Join Subcommand Problem HOT 1
- The .exe embedded in the installation zip file triggers malware detection in Sophos HOT 3
- Output column raw value HOT 5
- Update Sprig to v3.2.1 HOT 1
- Parse error with escaped quotes HOT 2
- View and getTruncatedLine() have problems
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gocsv.