How to search-replace content within files in Ubuntu Linux?
file, replace, ubuntu
Solution
sed -i 's/abc/def/g' xxx_*.in
should be enough
Problem
My platform: Ubuntu linux workstation In a directory, I havea series of files, with file name xxx_1.in to xxx_50.in For each file, I want to replace abc to def. If I do it individually, I should type :g/abc/s//def/g How to write a script to process all of the files at once?