How to get character string out from file in UNIX -


i have file on unix has line special characters pure character string. special character .,$%&*()-@. sample below
sample input

\302\275b\303\236gcl\302\275t erkatmbn;   jacob   chinese   39:00   language   53.00   

output:
jacob
chinese
language

i want pure character string lines out of file. have way read each line , compare each character alphabets if file big consume lot of time.

any better approach or suggestions?

your best bet grep utility.

grep -i '^[a-z]\+$' file.txt 

specifically, we're doing case-insensitive search (-i) lines contain characters [a-z], , characters start (^) finish ($).


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -