if you want to change the file in place, you want this: sed -i 's/SHE-3/21/' sample.dat On 03/31/2020 07:38 AM, Rich Shepard wrote: > sed 's/SHE-3/21/' sample.dat