- Navigate the filesystem in bash
- View files and folders in bash
- Create and Delete Files and Folders in bash
- Move and Copy Files and Folders with bash
- Find Files and Folders with
find
in bash - Search for text with
grep
- Make HTTP requests in bash with
curl
- Create and run bash scripts
- Store and Use Values with bash Variables
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/bash | |
# Copy the script inside a folder who contains all folder you want to zip and run it | |
ls -d */ | cut -f1 -d'/' | while read folder_name;do zip -r "${folder_name}.zip" "${folder_name}"; done |
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
FILES=./*; for f in $FILES; do ditto -ck "$f" "$f.zip"; done |
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 | |
## | |
# Check for Film | |
# - A script to check for films in a directory, | |
# - and move them to another directory. | |
# | |
## | |
CHECKDIR="/Volumes/Media/Downloads" # Directory to check for videos. |