Finns det någon som fått detta att fungera?
Hittade detta scriptet på nätet som jag modifierat något så blir det åtminstonde a istället för å osv
#!/bin/sh
# Original news.sh script by Rodolfo Novak.
# News.sh website: sh-rss-feed - Project Hosting on Google Code.
# Edited to become Tweets.sh by SphereCat1.
# Version 1.4.1: Got rid of extra space on the left & now replaces all unknown characters with ?. (Fixed it temporarily to work with multiple lengths. Working on figuring out a permanent solution.)
# Here are the variables you can edit safely:
# Feed URL, with username & password in the correct spots:
URL="http://mytwittername:[email protected]/sta..."
# Number of updates to display:
HOWMANY="8"
# K, now no more editing unless you know what you're doing.
# (Or you have a backup copy)
headarg="-$HOWMANY"
curl --silent "$URL" > /Users/myname/tweets.txt
if [[ `cat /Users/myname/tweets.txt` == *\<error\>* ]]; then
grep -E '(error>)' /Users/myname/tweets.txt | \
sed -e 's/<error>//' -e 's/<\/error>//' |
sed -e 's/<[^>]*>//g' |
head $headarg | sed G | fmt
else
grep -E '(description>)' /Users/myname/tweets.txt | \
sed -n '2,$p' | \
sed -e 's/<description>//' -e 's/<\/description>//' |
sed -e 's/<[^>]*>//g' |
sed -e 's/\&\;/\&/g' | # Amperstand
sed -e 's/\<\;/\</g' | # Less-than
sed -e 's/\>\;/\>/g' | # Greater-than
sed -e 's/\"\;/\"/g' | # Double quoted
sed -e 's/\å\;/\a/g' | # å
sed -e 's/\ä\;/\a/g' | # ä
sed -e 's/\ö\;/\o/g' | # ö
sed -e 's/\Å\;/\A/g' | # Å
sed -e 's/\Ä\;/\A/g' | # Ä
sed -e 's/\Ö\;/\O/g' | # Ö
head $headarg | sed G | fmt
fi
Tacksam för tips.