Replace UUID value in fstab using sed

Viewed 2092

My fstab is somewhat like the following:

UUID=somevalue1  
UUID=somevalue2

I want to edit the 2nd UUID. How do I do that using sed?

So after editing the fstab would look like follows:

UUID=somevalue1
UUID=somevalue3

Any help would be really appreciated

1 Answers
Related