This commit is contained in:
2022-08-19 16:23:25 +01:00
parent 93ab7b3897
commit b9d124a5d2
2 changed files with 29 additions and 29 deletions

View File

@@ -225,6 +225,24 @@ rokuget()
wget --no-check-certificate --user=vkhachatryan --ask-password $1
}
###############################################################################
#
# Downloaded logs.
#
jfile()
{
local NTH_LOG_FILE=1
if [ "$1" != "" ]; then
NTH_LOG_FILE=$1
fi
echo $PWD/$(ls -t1 S0* | head -$NTH_LOG_FILE | tail -1)
}
jcat()
{
cat $(jfile $1)
}
###############################################################################
#
# Other helpers