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

Popular posts from this blog

cognos content store database tables

How to fix: User, group, or role '*' already exists in the current database. (Microsoft SQL Server, Error: 15023)