#!/bin/bash IFS=$'\n' for proz in `ps -fu $1` do echo $proz echo '***' done