Created
September 25, 2020 11:50
-
-
Save kontza/c76405f1b28d8e831d99d05a730186b3 to your computer and use it in GitHub Desktop.
A sample Fish-script for processing a list file line by line and omitting lines starting with a '#'.
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
while read LINE | |
set -l LINE (string trim $LINE) | |
if string match -rqv '^#' $LINE | |
echo ">>> Processing line '$LINE'..." | |
end | |
end < list.file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment