const age = 20 + "";
console.log(typeof age); // string
This file contains 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
(aside>ul>li*3>a[href=#]{link})+.primary | |
<aside> | |
<ul> | |
<li><a href="#">link</a></li> | |
<li><a href="#">link</a></li> | |
<li><a href="#">link</a></li> | |
</ul> | |
</aside> | |
<div class="primary"></div> |
find / -size +1M
List all files' name inside a directory and subdirectories
find . -type f -printf '%f\n' | sort
This file contains 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 | |
mapfile -t episodes < <( find . -name "*.mp4" ) | |
for episode in "${episodes[@]}"; do | |
echo "$episode" | |
ffmpeg -v error -i "$episode" -map 0:1 -f null - | |
# Check resolution | |
ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0 "$episode" | |
done |