Skip to content
Advertisement

In output, echo command printed new line when after printed variable

This is my small bash script code and i want to print the number of files created in the directory :

JavaScript

My expected output is :

JavaScript

but i got the below output:

JavaScript

can you help what went wrong in my above code? Also please suggest if this is the correct way to print the number of files in the directory

Advertisement

Answer

This works for me:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement