6for file in $(find -type f -name \*.md); do
7 [[ $file == *_index.md ]] && continue
8 echo $(grep -m 1 "weight = " $file | sed 's/^weight = //') $file
9done | sort -n > weights
13read -p "Edit weights and press enter to continue..."
15# for each line in weights file, read values weight and file, and update
17cat weights | while read weight file; do
19 sed -i'' "s/^weight = [.0-9]*/weight = $weight/" $file
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list