Last active
June 28, 2022 22:52
-
-
Save johsjohsjohs/b9331da52afb04abcc453917220eecef to your computer and use it in GitHub Desktop.
This script will sort 1.md 2.md 3.md than head all the files and get the first line
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
| #!/bin/sh | |
| ls -1 *.md | sort -n|xargs head -1|less |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment