Linux nano cat
:
:
2017-10-12
, linux , . nano cat .
nano
nano linux . terminal , ~
touch Python . Python , nano .
nano t.py .
$ nano t.py
, , .
Ctrl + x . , y , , .
terminal , terminal python .
$ python t.py
This is a Python script!
( Python : Ubuntu Python2.7 Python3.5)
cat
cat (catenate) , . .
1
$ cat t.py
print("This is a Python script!")
2 >
$ cat t.py > t1.py
$ cat t1.py
print("This is a Python script!")
3 >
t.py t1.py t2.py,
t2.py , print.
$ cat t.py t1.py > t2.py
$ cat t2.py
print("This is a Python script!")
print("This is a Python script!")
4 >>
t3 , This is t3. t2.py .
>> t3 t2.py .
$ cat t3 >> t2.py
$ cat t2.py
print("This is a Python script!")
print("This is a Python script!")
This is t3.