I have a file called updatelog where I would like to be adding new updates to it
I tried:
date; message >> updatelog.txt
date + message >> updatelog.txt
date & message >> updatelog.txt
date | message >> updatelog.txt
date && message >> updatelog.txt
But nothing seems to work, what I'm doing wrong?
这种方法怎么样?
date >> updatelog.txt && echo "A sample message" >> updatelog.txt
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.