Created
May 11, 2022 20:32
-
-
Save AkshatGiri/4a6dfdcd018ca7f0fcd3bd7de55ef5a3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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