I have big number of exports. All files have same structure. I need to remove first 15 characters from each first line in each file in the same directory.
I tried this piece but this removed first 15 characters from every line:
#!/bin/bash
for file in *.json
do
sed 's/^.\{15\}//' "$file" > "$file".new
mv "$file".new "$file"
done
The line looks like this:
"dashboard": {
and I want the line to start with { .