Skip to content

Instantly share code, notes, and snippets.

@MuhammadHasham23
Last active April 12, 2020 14:22
Show Gist options
  • Save MuhammadHasham23/5a7778518fdddda0ad5630d40a04ef75 to your computer and use it in GitHub Desktop.
Save MuhammadHasham23/5a7778518fdddda0ad5630d40a04ef75 to your computer and use it in GitHub Desktop.
1. ```ls -a -lh -t --color=always```
2. ###macro.sh:
```
!/bin/bash
cwd=$(pwd);
```
###polo.sh:
```
!/bin/bash
cd $cwd;
```
3. ``` /script.sh>>stdout.txt 2>>stderr.txt```
4. ``` find . -name "*.html" -type f | xargs -d '\n' zip -r all_html.zip```
5. ``` find . -type f -printf '%TT %p\n' | sort -r```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment