sed [options] sed-command [input-file]
Option | Description | Example |
---|
#!/bin/sh | |
# "include: /var/unbound/etc/ad-blacklist.conf" in /var/unbound/etc/unbound.conf | |
# run script as daily cron | |
TMPFILE=$( mktemp get_dns_blacklists-XXXXXXXXX ) | |
trap 'rm -f $TMPFILE; exit 1' EXIT KILL INT QUIT TERM | |
( | |
ftp -VM -o- https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts | grep ^0.0.0.0 | awk '{ print $2 }' |
#!/usr/bin/lua | |
-- load the http socket module | |
http = require("socket.http") | |
-- load the json module | |
json = require("json") | |
api_url = "http://api.openweathermap.org/data/2.5/weather?" | |
-- http://openweathermap.org/help/city_list.txt , http://openweathermap.org/find | |
cityid = "5128581" |
#!/bin/sh | |
deadlink() { | |
local NO_ABS=false | |
local NO_REL=false | |
while [ $# -gt 0 ]; do | |
case "$1" in | |
('-h'|'--help') | |
echo "Usage: $0 [--na|--no-absolute]|[--nr|--no-relative] [--] <directory>"; | |
exit 0; |
### extract videos as mp3 files | |
youtube-dl -x --audio-format mp3 <video link> | |
### get highest resolution audio & video | |
To download a video, you type the URL after the command like so: | |
youtube-dl <video link> | |
To select the video quality, first use the -F option to list the available formats, here’s an example, |