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
| alias lsf='f() { find "$1" -maxdepth 1 -type d | nl -w 2 -s ": "; }; f' | |
| set-before() { | |
| root=$1 | |
| row=$2 | |
| BEFORE=$(pwd)/$(lsf "$root" | awk -v n="$row" 'NR==n {print $2}') | |
| export BEFORE | |
| echo "BEFORE set to $BEFORE" | |
| } |