These are chat archives for bangorunix/2015

23rd
Mar 2015
deliriou
@deliriou
Mar 23 2015 12:47 UTC
Hey, When I try to dynamically insert the text into the readme file, it doesnt let it. The line of my script is echo readmeexample.txt |(cd $para)README.txt where $para is the parameter received from a user. How would you recommend I change it?
Dan Prince
@danprince
Mar 23 2015 12:49 UTC
Ok, so if you use the pipe operator, whatever is on the right side of the pipe needs to be a command
So, if you wanted to insert the tech readmeexample.txt into the readme file for a given project you would probably want to use the redirect operator instead
Which expects a filename on the right hand side
echo readmeexample.txt > $para/README.txt
deliriou
@deliriou
Mar 23 2015 12:51 UTC
ok, thank you for a quick responce
Dan Prince
@danprince
Mar 23 2015 12:51 UTC
No worries