ypcat passwd |sed 's/:.*/@domain.local/' [download]
In reply to Re^3: add text to each line of a file by mw in thread add text to each line of a file by stevenrh