Package: mc Version: 3:4.7.0.1-1 If I type the following string in a shell script:
valid=$(echo "$device" | awk '{ match($0, /^\/dev\/sd[a-z][0-9]$/); print RSTART }') mcedit will color all the following text as a character string (screenshot is attached) -- Regards, Krasu
<<attachment: снимок1.png>>