0

I have AWS Lambda function , whom for example returns "hello World" , Then I execute my code:

curl -H "Content-Type: application/json" -X POST https://xxxxxx.execute-api.eu-west-1.amazonaws.com/statusok/xxxxxx -d @keyValue.json

I get response in terminal:

"Hello World!"andrejka@root:~/Desktop/Darbas/KeyValue$ 

The question is how i can change my code or execution script to get response in new line, like :

"Hello World!"
andrejka@root:~/Desktop/Darbas/KeyValue$ 

I already try /n but nothing. Please suggest!

Андрей Ка
  • 756
  • 4
  • 14
  • 33

1 Answers1

1

Probably the easiest solution would be simply executing an echo statement after your curl-call like:

curl -H "Content-Type: application/json" \
     -X POST https://xxxxxx.execute-api.eu-west-1.amazonaws.com/statusok/xxxxxx \
     -d @keyValue.json; echo
Dunedan
  • 7,848
  • 6
  • 42
  • 52