Last active
July 21, 2017 02:16
-
-
Save MattMS/80ddc9baedc9e40a9d9b9b468b40934e to your computer and use it in GitHub Desktop.
Print file name (minus `.txt` extension), `=`, then file contents
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
#!/usr/bin/env fish | |
set ext '.txt' | |
for f in (ls | grep $ext) | |
echo (basename $f $ext)=(cat $f) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment