Viewing a record of particular length

I have records with different lengths say 386, 387 and 388. Do i have any command to view all the records of the length 386 ? Please do advise.

Thanks

Not sure what OS you're running on, or what type of file, but you can use the following awk expression to print out lines of a specific length:

awk 'length == 386' file.txt

Hope this helps.

Thanks. Let me give a try.