I wanted to print something like this on my gnome-terminal
[abc@host pwd]$ ************************************************************
using some manipulations in PS1 but the number of stars are dynamic depending on PS1 and terminal width. So can anyone plz suggest me the way to find out the length of PS1 i.e the actual string which will be displayed.