This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class HelloWorld | |
def initialize(myname='Ruby') | |
@name = myname | |
end | |
def hello | |
puts "Hello ,world. I am #{@name}." | |
end | |
def hello2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#日付をテキストファイルに保存 | |
cd ~/Desktop | |
date >> sample.txt | |
NewerOlder