1

Grep output problem

view story
linux-howto

http://www.unix.com – Hi all, Here is my problem: I'm testing a login script for our mac Machines. This script output's in a csv file. The login script looks like this: echo "${computername}|${data1}|${data2}|${data3}" >> file.csv The csv file looks like this: Computername1|data1|data2|data3 Computername2|data1|data2|data3 Computername2|data1|data2|data3 Computername2|data1|data2|data3 Computername3|data1|data2|data3 Now I want to erase the data from computername2 because I only want to see the last output from every computernameX. So before the login script output's the "Compu (HowTos)