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
#!/usr/bin/env bash | |
# tar command | |
# tar compress folder | |
tar -zcvf archive-name.tar.gz directory-name | |
# tar extract file | |
tar -zxvf archive-name.tar.gz -C /tmp |
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
#!/usr/bin/env bash | |
# tar compress folder | |
tar czf output_archive_file.tar.gz directory_name |
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
import os | |
from glob import glob | |
filename_list = glob(os.path.join("./image_folder", "*.jpg")) | |
for filename in filename_list: | |
print filename |