Replace the first instance of foo with bar:sed 's/foo/bar/'Replace the fourth instance of foo with bar:sed 's/foo/bar/4'Replace all instances of foo with bar:sed 's/foo/bar/g'Get all mounted folders:mount | sed s/.*on\ // | sed s/\ type.*//