I have a pipe(|) seperated string, I need to find the first chracter in the 7th column of that pipe seperated stringAAAAAA|04|XXXXXXX|20170210-163119|||2.0|20170208||Expected output : 2
Finding a character from a column
text processing;awk
This will do the job:awk -F | '{print(substr($7,1,1))}' input.file.txt