10/10
saki14moro@DESKTOP-GI15UG8:~$ sed 's/昼は/牛は/g' test4.txt
test
test.sh
test2
test4.tx
test4.txt
/home/saki14moro
“牛はkonnitiha。夜はohayou”
saki14moro@DESKTOP-GI15UG8:~$ sed 's/昼は/牛は/g' test4.txt
test
test.sh
test2
test4.tx
test4.txt
/home/saki14moro
“牛はkonnitiha。夜はohayou”
saki14moro@DESKTOP-GI15UG8:~$ sed 's/昼は/牛は/g' test4.sh
sed: can't read test4.sh: No such file or directory
saki14moro@DESKTOP-GI15UG8:~$ sed “s/=.*/xxx/g” test4.txt
sed: -e expression #1, char 1: unknown command: `�'
saki14moro@DESKTOP-GI15UG8:~$ sed 's/=.*/xxx/g' test4.txt
test
test.sh
test2
test4.tx
test4.txt
/home/saki14moro
“昼はkonnitiha。夜はohayou”
saki14moro@DESKTOP-GI15UG8:~$ ^C
saki14moro@DESKTOP-GI15UG8:~$ sed “s/=.*/xxx/g” test.sh
sed: -e expression #1, char 1: unknown command: `�'
saki14moro@DESKTOP-GI15UG8:~$ sed 's/=.*/xxx/g' test.sh
echo "test"
ls
hakoxxx
hensuuxxx
echo “昼は${hako}。夜は${hensuu}”
saki14moro@DESKTOP-GI15UG8:~$ grep '=' test.sh | sed 's/.*=/xxx/g' > out.txt
saki14moro@DESKTOP-GI15UG8:~$ out.txt
out.txt: command not found
saki14moro@DESKTOP-GI15UG8:~$ cat out.txt
xxx'konnitiha'
xxx'ohayou'