how to change only the 1st pattern column change

i have a file like file1 and it contain the data like
mohan mohan mohan
mohan mohan
mohan mohan
mohan mohan
Mohan MOHAN
MOHAN

but i want to chenge the pattern mohan to ram but only the 1 column patterns
please solve it the exact


Source: unix

Leave a Reply