一番

saki14moro@DESKTOP-GI15UG8:~$ ls
hudousan.txt
life_time_data_header_tmp_google_ver4.dat
life_time_data_header_tmp_google_ver4.dat:Zone.Identifier
out.txt
test.sh
test2
test4.tx
test4.txt
課題不動産のファイル
saki14moro@DESKTOP-GI15UG8:~$ nano
saki14moro@DESKTOP-GI15UG8:~$ cat test.sh
echo "test"
ls
hako="konnitiha"
henuu="ohayou"
echo "昼は${hako}.夜は${hensuu}"
pwd

saki14moro@DESKTOP-GI15UG8:~$ sh test.sh
test
hudousan.txt
life_time_data_header_tmp_google_ver4.dat
life_time_data_header_tmp_google_ver4.dat:Zone.Identifier
out.txt
test.sh
test2
test4.tx
test4.txt
課題不動産のファイル
昼はkonnitiha.夜は
/home/saki14moro
saki14moro@DESKTOP-GI15UG8:~$ nano test.sh
saki14moro@DESKTOP-GI15UG8:~$ sh test.sh
test
hudousan.txt
life_time_data_header_tmp_google_ver4.dat
life_time_data_header_tmp_google_ver4.dat:Zone.Identifier
out.txt
test.sh
test2
test4.tx
test4.txt
課題不動産のファイル
昼はkonnitiha.夜はohayou
/home/saki14moro
saki14moro@DESKTOP-GI15UG8:~$ sh test.sh > test4.txt
saki14moro@DESKTOP-GI15UG8:~$ grep "ohayou" tedst.sh
grep: tedst.sh: No such file or directory
saki14moro@DESKTOP-GI15UG8:~$ sh test4.txt
test4.txt: 2: hudousan.txt: not found
test4.txt: 3: life_time_data_header_tmp_google_ver4.dat: not found
test4.txt: 4: life_time_data_header_tmp_google_ver4.dat:Zone.Identifier: not found
test4.txt: 5: out.txt: not found
test4.txt: 6: test.sh: not found
test4.txt: 7: test2: not found
test4.txt: 8: test4.tx: not found
test4.txt: 9: test4.txt: not found
test4.txt: 10: 課題不動産のファイル: not found
test4.txt: 11: 昼はkonnitiha.夜はohayou: not found
test4.txt: 12: /home/saki14moro: Permission denied
saki14moro@DESKTOP-GI15UG8:~$ grep "ohayou" test.sh
hensuu="ohayou"
saki14moro@DESKTOP-GI15UG8:~$ grep-v"test" test.sh
grep-vtest: command not found
saki14moro@DESKTOP-GI15UG8:~$ grep -v "test" test.sh
ls
hako="konnitiha"
hensuu="ohayou"
echo "昼は${hako}.夜は${hensuu}"
pwd

saki14moro@DESKTOP-GI15UG8:~$ grep -v "test" test.sh|head
ls
hako="konnitiha"
hensuu="ohayou"
echo "昼は${hako}.夜は${hensuu}"
pwd

saki14moro@DESKTOP-GI15UG8:~$ grep  “ohayou”  test.sh
saki14moro@DESKTOP-GI15UG8:~$ grep "ohayou" test.sh
hensuu="ohayou"
saki14moro@DESKTOP-GI15UG8:~$ sed "s/xxx/yyy/g" teset.sh
sed: can't read teset.sh: No such file or directory
saki14moro@DESKTOP-GI15UG8:~$ sed "s/xxx/yyy/g" test.sh
echo "test"
ls
hako="konnitiha"
hensuu="ohayou"
echo "昼は${hako}.夜は${hensuu}"
pwd

saki14moro@DESKTOP-GI15UG8:~$ sed "s/昼/牛/g" test.sh
echo "test"
ls
hako="konnitiha"
hensuu="ohayou"
echo "牛は${hako}.夜は${hensuu}"
pwd

saki14moro@DESKTOP-GI15UG8:~$ sed "s/=/牛/g" test.sh
echo "test"
ls
hako牛"konnitiha"
hensuu牛"ohayou"
echo "昼は${hako}.夜は${hensuu}"
pwd

saki14moro@DESKTOP-GI15UG8:~$ sed "s/=./牛/g" test.sh
echo "test"
ls
hako牛konnitiha"
hensuu牛ohayou"
echo "昼は${hako}.夜は${hensuu}"
pwd

saki14moro@DESKTOP-GI15UG8:~$ sed "s/=.*/牛/g" test.sh
echo "test"
ls
hako牛
hensuu牛
echo "昼は${hako}.夜は${hensuu}"
pwd

saki14moro@DESKTOP-GI15UG8:~$ grep "=" test.sh |sed "s/.*=/xxx/g"
xxx"konnitiha"
xxx"ohayou"
saki14moro@DESKTOP-GI15UG8:~$  grep "=" test.sh |sed "s/.*=/xxx/g" > out.txt
saki14moro@DESKTOP-GI15UG8:~$ sh out.txt
out.txt: 1: xxxkonnitiha: not found
out.txt: 2: xxxohayou: not found
saki14moro@DESKTOP-GI15UG8:~$ awk -F"=" '{print$1}'test.sh
awk: cmd. line:1: {print$1}test.sh
awk: cmd. line:1:              ^ syntax error
saki14moro@DESKTOP-GI15UG8:~$ awk -F"=" '{print$1}' test.sh
echo "test"
ls
hako
hensuu
echo "昼は${hako}.夜は${hensuu}"
pwd

saki14moro@DESKTOP-GI15UG8:~$ awk -F"=" '{print$2}' test.sh


"konnitiha"
"ohayou"