I am trying to remove the last char of the last line of a file using the
sed '$ s/.$//' tmp
Error
')' expected near '$'
local sys = require("luci.sys")
sys.call('sed '$ s/.$//' /var/log/message > /var/log/tmp')
Another issue that i had been facing if echo of "
( Double qoutes)
sys.call('echo " " ' )
sys.call('echo \" \" ')
None of the above would print a double qoute ( ")
Am i missing something?