I would like to have the Konsole title changed every time I run a loop, like this:while read line; do  echo $line $i/$numline  echo -ne \033]0;$line $i/$numline\007  commands  let i=i+1done<textI've found that the echo -ne \033]0;text\007command doesn't work.
How to change Konsole title in bash?
bash;konsole;window title
You need to first go to settings of konsole:settings -> configure current profile -> Tabs -> Tab title format = %wThe konsole by default ignores what is asked for, it does its own thing, as configured. %w tells is replaced by what ever the shell wants it to be. There are other codes, use the insert button it knows all the codes.A brief note on getting the shell to take over from what the terminal emulator was doing.I have this is my ~/.bashrc it updates the title. You may have to do more research into bash variable PS1, or look at variable PROMPT_COMMAND.case $TERM inxterm*|rxvt*)    PS1=\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1    ;;*)    ;;esac