Simon GIS
Simon GIS

Reputation: 1055

Bash command with LInux

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?

Upvotes: 0

Views: 100

Answers (1)

Romeo Ninov
Romeo Ninov

Reputation: 7215

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

Upvotes: 1

Related Questions