Skip to content

Instantly share code, notes, and snippets.

@AkshatGiri
Created May 11, 2022 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AkshatGiri/4a6dfdcd018ca7f0fcd3bd7de55ef5a3 to your computer and use it in GitHub Desktop.
Save AkshatGiri/4a6dfdcd018ca7f0fcd3bd7de55ef5a3 to your computer and use it in GitHub Desktop.
#!/bin/bash
for name in *.png; do
if ! test -f "${name%.*}.json"
then
echo "$name"
fi
done
# To run this script -
# 1. Creat a file called file-corresponder.sh in the working directory
# 2. run the command in terminal - chmod +x file-corresponder.sh
# 3. run the script in terminal with command - ./file-corresponder.sh
# 4. The printed out png files are missing a corresponding .json file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment