Skip to content

creating readme through command line #2

Answered by ngljcb
superduppperme asked this question in Q&A
Discussion options

You must be logged in to vote

Yup! @superduppperme if you want to create a README file using the command line, you should use the > operator instead of >>.

Basically the difference between the two are as follows:

> : Redirects the output of a command and writes it to a file.
>> : Appends the output of a command to a file.

In your case, you should use > to create the file and write to it:
echo "# nvm-extension" > README.md

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@superduppperme
Comment options

Answer selected by oyepriyansh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants