Re: bash prompt, problem mit awk
Hallo Christoph!
Christoph Kaminski schrieb am Samstag, den 16. Juni 2007:
> $RED"Size:"\$(find . -maxdepth 1 -type f | xargs du -hsc | awk '/total/
> { print $1 }')\
Bei mir funktioniert es, wenn ich $( durch Backticks ersetze:
$RED"Size:"`find . -maxdepth 1 -type f | xargs du -hsc |awk 'END { print $1 }'`\
Anmerkungen:
Ich habe END genommen, weil ich so keine Abhängigkeit zu $LANG habe.
Außerdem würde ich überlegen, ob ich find nicht noch den Parameter
-print0 und xargs den Parameter -0 spendieren würde.
Grüße
Christian
--
hundred-and-one symptoms of being an internet addict:
138. You develop a liking for cold coffee.
Reply to: