Skip to main content
added 15 characters in body
Source Link
user88036
user88036

How can I delete the lines that exceed specific number of letters and characters from a text file ?

For example: In this text file :

         a;dskjshdkjhgsdlhbcandsncas;ldjch;sdkjncla;dskjshdkjhgsdlhb5451candsncas;ldjch;sdkjncl
         zdkcjsdczdkcjsd#c
         adsaskads;lad;sjdikm;adsaskad@#s;l35684ad;sjdikm;
         ;okjilhj;okjilh@j
         oieoigsbkdsjhcyavscjbkajlknscm;laoieoigsb53454kdsjhcyavscjbkajlknscm;la,

How can I delete automatically ( using a command line) all the lines that include only 8 letters and characters? I am asking this question because I have a sort of text files and I want to delete only the lines that have 8 letters(letters and characters) in it ( it is similar lines between all the files and have the same letters and characters).

How can I delete the lines that exceed specific number of letters from a text file ?

For example: In this text file :

         a;dskjshdkjhgsdlhbcandsncas;ldjch;sdkjncl
         zdkcjsdc
         adsaskads;lad;sjdikm;
         ;okjilhj
         oieoigsbkdsjhcyavscjbkajlknscm;la,

How can I delete automatically ( using a command line) all the lines that include only 8 letters? I am asking this question because I have a sort of text files and I want to delete only the lines that have 8 letters in it ( it is similar lines between all the files and have the same characters).

How can I delete the lines that exceed specific number of letters and characters from a text file ?

For example: In this text file :

         a;dskjshdkjhgsdlhb5451candsncas;ldjch;sdkjncl
         zdkcjsd#c
         adsaskad@#s;l35684ad;sjdikm;
         ;okjilh@j
         oieoigsb53454kdsjhcyavscjbkajlknscm;la,

How can I delete automatically ( using a command line) all the lines that include only 8 letters and characters? I am asking this question because I have a sort of text files and I want to delete only the lines that have 8 (letters and characters) in it ( it is similar lines between all the files and have the same letters and characters).

edited tags
Link
terdon
  • 252.3k
  • 69
  • 480
  • 718
Source Link
user88036
user88036

Revising text file

How can I delete the lines that exceed specific number of letters from a text file ?

For example: In this text file :

         a;dskjshdkjhgsdlhbcandsncas;ldjch;sdkjncl
         zdkcjsdc
         adsaskads;lad;sjdikm;
         ;okjilhj
         oieoigsbkdsjhcyavscjbkajlknscm;la,

How can I delete automatically ( using a command line) all the lines that include only 8 letters? I am asking this question because I have a sort of text files and I want to delete only the lines that have 8 letters in it ( it is similar lines between all the files and have the same characters).