We have moved to www.dataGenX.net, Keep Learning with us.

Wednesday, January 21, 2015

Get nth character in a file in Linux



=================================================================================================================================== 

# To get 7th char in a File
head -c7 FileName | tail -1
# To get 45th char in a File
head -c45 FileName | tail -1
# To get 55th and 56th char in a file
head -c56 FileName | tail -2
===================================================================================================================================



Like the Facebook Page & join Group
https://www.facebook.com/DataStage4you
https://www.facebook.com/groups/DataStage4you

https://twitter.com/datastage4you
https://groups.google.com/d/forum/datastage4you
For WHATSAPP group , drop a msg to 91-88-00-906098

No comments :

Post a Comment