How does && and || operators combination Work ?

commandline session $ 4.2.29 10 510—> [ -f wordmatc.c ] || echo hello hello $ 4.2.29 11 511—> [ -f wordmatc.c ] || cat baty && echo hello cat: baty: No such file or directory $ 4.2.29 12 512—> [ -f wordmatc.c ] && echo hello || echo kitten kitten $ 4.2.29 13 513—> [ …

& – Forking operator(AND operator)

commandline session $ 4.2.29 11 511—> ping -c5 google.com & [1] 4376 $ 4.2.29 12 512—> PING google.com (173.194.38.1100) 56(84) bytes of data. 64 bytes from sin04s02-in-f5.1e100.net (173.194.38.1100): icmp_req=1 ttl=54 time=75.8 ms 64 bytes from sin04s02-in-f5.1e100.net (173.194.38.1100): icmp_req=2 ttl=54 time=75.3 ms 64 bytes from sin04s02-in-f5.1e100.net (173.194.38.1100): icmp_req=3 ttl=54 time=75.4 ms 64 bytes from sin04s02-in-f5.1e100.net (173.194.38.1100): …

example working with scala 2 (declaring values and variables)

Get The Hang $ 4.2.29 1 501—> scala Welcome to Scala version 2.9.2 (OpenJDK 64-Bit Server VM, Java 1.6.0_24). Type in expressions to have them evaluated. Type :help for more information. scala> val stat = data + ticks :7: error: not found: value data val stat = data + ticks ^ scala> val stat = …

example working with scala 1 (include auto-completion)

Get The Hang $ 4.2.29 2 502—> scala Welcome to Scala version 2.9.2 (OpenJDK 64-Bit Server VM, Java 1.6.0_24). Type in expressions to have them evaluated. Type :help for more information. scala> 6/3 res0: Int = 2 scala> res0. % & * + – / > >= >> >>> ^ asInstanceOf isInstanceOf toByte toChar toDouble …

working with scala examples 1

commandline session $ 4.2.29 15 515—> scala Welcome to Scala version 2.9.2 (OpenJDK 64-Bit Server VM, Java 1.6.0_24). Type in expressions to have them evaluated. Type :help for more information. scala> 4*2-7 res0: Int = 1 scala> res0+1 res1: Int = 2 scala> 2*0.4 res2: Double = 0.8 scala> “hello” res3: java.lang.String = hello scala> …

GNU readline + bind + functions + keybinding

commandline session $ 4.2.29 57 557—> bind -P abort can be found on “C-g”, “C-xC-g”, “eC-g”. accept-line can be found on “C-j”, “C-m”. alias-expand-line is not bound to any keys arrow-key-prefix is not bound to any keys backward-byte is not bound to any keys backward-char can be found on “C-b”, “eOD”, “e[D”. backward-delete-char can be …