Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sed exercise #2

Open
morrowcj opened this issue Oct 2, 2018 · 0 comments
Open

sed exercise #2

morrowcj opened this issue Oct 2, 2018 · 0 comments

Comments

@morrowcj
Copy link
Owner

morrowcj commented Oct 2, 2018

@cecileane
@coraallencoleman

To fix the Minimum column:

sed -r 's/"([0-9]*),*([0-9]*),*([0-9]*),*([0-9]*)\"/\1\2\3\4/' tableofSNPs.csv > tableofSNPs_corrected.csv

To check that there aren't more than 3 commas:

## would print "more than 3" for each line that had more than 3: none
sed -n "s/.*,.*,.*,.*,.*/more than 3/p" tableofSNPs_corrected.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant