Snippets
# Sudo a long command line
sudo bash -c "
# Get 16th field
cut -f16 -d\| /data/sample.csv |
# Render unicode as ASCII
iconv -f utf8 -t ascii//TRANSLIT |
# Drop empty lines
sed '/^$/d' |
# Filter for lines longer than 30 characters
awk 'length(\$0) > 30' > /data/sample.out"
No comments:
Post a Comment