sed to insert a separator

My txt file consists of records with 6 numbers followed by 3 characters.
Is there a simple �sed� which will insert a | separator between the 6th and 7th position ?
Many thanks

sed 's/ /|/6' yourfile 

How does your input file look like ? pls provide a sample of input and expect output

depending on what you want to do

# echo '1 2 3 4 5 6 a b c' | sed 's/ /|/6'
1 2 3 4 5 6|a b c
# echo '123456ABC' | sed 's/^....../&|/'
123456|ABC
# echo '123456ABC' | sed 's/...$/|&/'
123456|ABC
#
sed -e 's/^....../&|/'

Merci ctsgnb
Thanks M D
Working fine now !
Sorry for the delay in getting back to you : illness & vacation