0

Im new in Linux command and trying to follow a tutorial to find matching string in csv in this tutorial https://github.com/maxharlow/tutorials/tree/master/find-connections-with-fuzzy-matching.

$ csvmatch \
    forbes-billionaires.csv \
    forbes-china-billionaires.csv \
    --fields1 name \
    --fields2 name \
    > billionaires-from-china.csv

Im getting this error message:

-bash: billionaires-from-china.csv: Permission denied

What Im doing wrong?

4
  • you have no write permissions at the location you do the redirection, use /tmp for instance and it should work: /tmp/billionaires-from-china.csv Commented Jul 8, 2018 at 9:13
  • Try with sudo or change permissions of the current directory. Commented Jul 8, 2018 at 9:24
  • @selmansamet? can you give me details? Im newbie to this :/! Commented Jul 8, 2018 at 9:25
  • sudo chmod -R 0755 /path/to/your-csv-directory Commented Jul 8, 2018 at 10:06

1 Answer 1

1

You can rewrite your code on this way to write in directory where everyone have permissions:

csvmatch \
    forbes-billionaires.csv \
    forbes-china-billionaires.csv \
    --fields1 name \
    --fields2 name \
    > /tmp/billionaires-from-china.csv
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.