Skip to main content

Posts

Showing posts with the label scripting

Scripting with Java

I think Java is quite verbose for scripting. However, it can also be fun. I wrote a very simple experiment of ls command. You should try it out. Download file ls and chmod +x ls then you can run ./ls . There are no flags/options supported.😆 - ninjahoahong

Bash script: "Hello world!"

Bash script is very nice and important if one is using Unix system. Planning on using bash scripts as much as posible, I would like to share a quick and easy example to start using it: Create a shell call  hello.sh Add the lines to the file: #!/bin/bash echo "Hello world!" Go to the folder contains the file. Type  bash hello.sh . The echo command will print out  Hello world! your terminal