Tuesday, December 19, 2017

Change Remote Window Password VPN via Mac

To Change Password on Window

Press fn-control-option-del

Extract range of lines from a text file in Unix

Input File    : orig-data-file
OutPut File : new-file

Line range 100 to 110



sed -n '100,110 p' orig-data-file > new-file
awk 'NR>=100&&NR<=110' orig-data-file > new-file
perl -ne 'print if 110..110' orin-data-file > new_file
-- get alert.log file for particular day
awk '/Jun 26/{c=6}c&&c --' alert_demo.log
grep -B1 -A1 'Jun 26' alert_demo.log