Sunday, July 10, 2016
Visit to Parvati Hill, Pune
Tuesday, June 28, 2016
Under the Cot
'Sssh.. ' said the maid to 8 year old Abhay. 'Sleep tight, or else Kosh will get angry. He will crawl out from the cot's underneath and take you... '
Abhay looked at her with a reddened face. "I am scared". He said
"Then sleep".. she commanded.
"Ok auntie.. " he mumbled and pulled his bed sheet over his face, closing his eyes forcibly. 'Wish father and mother were at home' he thought tears rolling from his eyes.
Both his parents were out for a one week business trip and had left him under the maid's care. 'I don't like her' he spoke to himself. 'She keeps telling about
Kosh under the cot and I get scared. '
The huge grandfather clock in the hall stuck 12:00 am.
A heavy wind blew outside enough to shatter the window panes. The trees in the compound of the villa swayed as though they were in trance. The moon struggled out of the clouds casting shadows of the trees on the building.
Then there was lightning follows by a distant rumble.
Abhay woke up with the thunder. The maid would be downstairs in her room..
He started shivering.
Then he heard the sound.. it started as a hiss and was resonating from the cot underneath...
Koshhhh... koshhhhh...
He could see a small shadow emerging..
Wednesday, May 18, 2016
Matching every instance of a pattern in UNIX
We can use the below variant of grep
echo raghuraghuraghuhello|grep -o raghu|wc -l
| hadoop@ubuntu:~$ echo raghuraghuraghuhello|grep -o raghu raghu raghu raghu hadoop@ubuntu:~$ echo raghuraghuraghuhello|grep -o raghu|wc -l 3 |
Note: When in the first command it just printed out the instances of the pattern, hence we piped it to wc -l
Tuesday, April 12, 2016
Monday, April 11, 2016
Saturday, April 9, 2016
The FLASH
Was searching Youtube for check for any interesting series (the last series that I watched till end was Breaking Bad) when I found the series "The Flash". Though this series premiered in 2014, I never heard of this series.
The trailer is pretty interesting, with the new concept for the super hero. Looking forward to watch the series!
Unix: Alias
To know the aliases currently, just type alias at the prompt and hit enter
hadoop@ubuntu:~$ alias
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
alias l='ls -CF'
alias la='ls -A'
alias ll='ls -alF'
alias ls='ls --color=auto'
The above gives the list of aliases that we currently have in the system.
To create an alias,
total 224
-rw-r--r-- 1 hadoop hadoop 8445 Feb 21 2015 examples.desktop
drwxr-xr-x 2 hadoop hadoop 4096 Feb 21 2015 Videos
drwxr-xr-x 2 hadoop hadoop 4096 Feb 21 2015 Templates
drwxr-xr-x 2 hadoop hadoop 4096 Feb 21 2015 Public
drwxr-xr-x 2 hadoop hadoop 4096 Feb 21 2015 Music
-rw-rw-r-- 1 hadoop hadoop 14904 Feb 22 2015 pig_1424592579651.log
-rw-rw-r-- 1 hadoop hadoop 11738 Feb 23 2015 pig_1424676723694.log
-rwxrwxr-x 1 hadoop hadoop 6 Mar 1 2015 cls















