UPTO 50% OFF on All Courses | Offer Ends at Midnight | Use Coupon Code - FLAT50 During Checkout |Enroll Now
The output of a program can be saved to a file:
myprogram > myfile
If "myfile" does not exist, it will be created. If it exists it will be overwritten.
Please follow these steps:
Run the following command to save the output of echo to a file:
echo "hello" > hello.out
Append world to it:
echo "world" >> hello.out
Check by typing:
Taking you to the next exercise in seconds...