User Tools

Site Tools


programming:bash

Get time from NTP

cat </dev/tcp/time.nist.gov/13

Download all docs

wget -O - -q http://www.tenox.net/docs/ | grep href=.*books | sed -e 's/^.*href=\"//g' -e 's/">.*$//g' | while read ln; do wget "$ln" ; done

Plain text from Word docx

unzip -p some.docx word/document.xml | sed -e 's/<[^>]\{1,\}>//g; s/[^[:print:]]\{1,\}//g'
programming/bash.txt · Last modified: 2020/11/13 08:29 by Jan Forman