$times 0m0.348s 0m0.052s 0m0.560s 0m0.112s $ $times 0m0.348s 0m0.052s 0m0.560s 0m0.112s $times 0m0.348s 0m0.052s 0m0.560s 0m0.112s $times 0m0.348s 0m0.052s 0m0.560s 0m0.112s $times 0m0.348s 0m0.052s 0m0.560s 0m0.112s $times 0m0.348s 0m0.052s 0m0.560s 0m0.112s $times 0m0.348s 0m0.052s 0m0.560s 0m0.112s $times 0m0.348s 0m0.052s 0m0.560s 0m0.112s $times 0m0.352s 0m0.052s 0m0.560s 0m0.112s $times 0m0.352s 0m0.052s 0m0.560s 0m0.112s $times 0m0.352s 0m0.052s 0m0.560s …
Author Archives: jeffrin
commandline combination
commandline session $ls fell ls: cannot access fell: No such file or directory $cat fell || “echo no such file” ; touch fell cat: fell: No such file or directory bash: echo no such file: command not found $ls fell fell $rm fell $ls fell ls: cannot access fell: No such file or directory $cat …
example working with scala 4 ( Commonly Used Types )
commandline session $ 4.2.29 1 2—> 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> 1.toString res0: java.lang.String = 1 scala> 33.to(40).toString res1: String = Range(33, 34, 35, 36, 37, 38, 39, 40) scala> Jeffrin.intersect(Jose) :8: error: not found: …
Continue reading “example working with scala 4 ( Commonly Used Types )”
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—> [ …
Continue reading “How does && and || operators combination Work ?”
logical OR operator in shell
$ [ -f wordmatch.c ] $ [ -f wordmatchtest.c ] $ echo $? 1 $ [ -f wordmatch.c ] $ echo $? 0 $ [ -f wordmatch.c ] || echo hello $ [ -f wordmatchtest.c ] || echo hello hello $
& – 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): …
( GNU size ) examples
commandline session $ 4.2.29 2 502—> ./a.out found in: htop-0.9 found in: . $ 4.2.29 3 503—> size a.out $ 4.2.29 3 503—> size a.out text data bss dec hex filename 2401 608 16 3025 bd1 a.out $ 4.2.29 4 504—> man size $ 4.2.29 5 505—> size –format=SysV a.out a.out : section size addr …
example working with scala 3
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> va a, b = 10 :1: error: ‘;’ expected but ‘,’ found. va a, b = 10 ^ scala> val a, b = …
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 = …
Continue reading “example working with scala 2 (declaring values and variables)”
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 …
Continue reading “example working with scala 1 (include auto-completion)”