How do I print only the json file?
echo-e "$STR" | tee$date.json
I think I can do something about the echo here.
But I'm still a beginner, so I don't know exactly what commands to use, so please let me know.
Since the tee
command outputs both standard output and files, you should simply redirect using >
.
echo-e "$STR" > $date.json
© 2024 OneMinuteCode. All rights reserved.