I need to replace one line in a ton of . json files

Ithorian [comrade/them, he/him]@hexbear.net to Linux@lemmy.ml – 33 points –

I'm updating foundry to a version 11 and it broke an ass ton of my assets cause they're all "verified version 10"

So all I have to do is change that number, they're just maps so no need to update anything else, but I have like 400+ files to convert all in individual folders.

Please tell me there's an easy way to do this. (I'm on Linux obviously)

33

You are viewing a single comment

With sed or awk, without a sample is hard to give a proper example.

sed -i 's/old/new/g' *.json 

That rhymes!

With sed or awk, without a sample
is hard to give, a proper example

Name checks out, this is the way

Our sedvior!