Various shell scripts for use on the RTC server. Not your official RTC stuff!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

23 lines
612 B

#! /bin/bash
# newgit - lists latest changes in gitea
# Author: samhunter@rawtext.club
# https://git.rawtext.club/samhunter/rtc-shell-scripts
readonly PROGNAME="${0##*/}"
readonly VERSION="1.0"
lynx -dump https://git.rawtext.club/explore/repos \
|awk '
/___.*Sear/,/First.*Prev/ {
if ($1 ~/\[[0-9].*\]/) {
l=$0;
gsub(/^[^\]].*\]/,"",l);
gsub(/ /,"",l);
split(l,la, /\//);
l = sprintf("%-20s\t%s",la[2],la[1])
next;
}
if($0 ~/Updated.*(seconds|minute|hour|day)/) {
printf("%-30s %s\n", $0,l);l="";
}
}'