Em zsh, usando zmv
:
autoload zmv; alias zcp='zmv -C' # this can go into your .zshrc
zcp '/home/(*)/.bash_history' '~/user-bash/$1.txt'
Em outros shells:
for x in /home/*/.bash_history; do
u=${x%/*}; u=${u##*/}
cp "$x" ~/user-bash/"$u.txt"
done