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

Shrink you container size up to 95%.

alma linux: dnf Module yaml error: Unexpected key in data