8 lines
184 B
Bash
8 lines
184 B
Bash
|
|
#!/bin/bash
|
||
|
|
|
||
|
|
# Param1 -> name of the JSON-tag
|
||
|
|
# Param2 -> name of the input file
|
||
|
|
# Param3 -> name of the output file
|
||
|
|
|
||
|
|
grep "\"$1\":" "$2" | awk -F '"' '{ print $4; }' | base64 -d > $3
|