Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

$ echo "foo\nbar" > input.txt に-eが必要かと。。。 #17

Open
k5jp1015 opened this issue Oct 29, 2016 · 1 comment
Open

$ echo "foo\nbar" > input.txt に-eが必要かと。。。 #17

k5jp1015 opened this issue Oct 29, 2016 · 1 comment

Comments

@k5jp1015
Copy link

「STEP 3: ファイルを扱おう」の実行例の通りにならない

$ echo "foo\nbar" > input.txt  
$ cat input.txt  
foo  
bar  

とあるが、

$ echo "foo\nbar" > input.txt  
$ cat input.txt  
foo\nbar  

となる。

以下なら上手くいく。

$ echo -e "foo\nbar" > input.txt  
$ cat input.txt  
foo  
bar  
@tenntenn
Copy link
Owner

ありがとうございます。助かります。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants