This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat file.txt | tail -n 1 | bash - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# give it executable permission | |
# `chmod +x filename.sh` | |
echo "Total arguments : $#" | |
echo "1st Argument = $1" | |
echo "2nd argument = $2" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// for : | |
// by keys | |
for (String i : capitalCities.keySet()) { | |
System.out.println("key: " + i + " value: " + capitalCities.get(i)); | |
} | |
NewerOlder