I've read and tested several other posts about quote nesting, for my situation.
- How does bash deal with nested quotes?
- Expansion of variables inside single quotes in a command in Bash
Still I cannot figure out how to put the following into an alias. The command neatly spreads the output of my df command over longer lines. Something that's default on newer 'nixes and newer bash. But I still need it. Any new insights would be appreciated.
df -h | awk '!$2{getline x;$0=$0 x}{printf "%-35s %10s %6s %6s %4s %s\n",$1,$2,$3,$4,$5,$6}'
On (old) linux servers with 2.6.39-200.24.1.el6uek.x86_64 and GNU bash, version 4.1.2(1)-release
I want to have this in .bashrc as
alias df='...'