Identify the special characters in file in unix
Hi Friends ,
Need your help to solve this issue . Need to identify the special characters in a file . I tried the below way . Step 1 : Create data file test.txt Quote:
Steps 2 : run the syntax Quote:
104231840,475,20180115,20180331,192,Salt 2018 But it does not . Can you please let me know what is wrong in this |
probably you missed some chars, like space (from your regexp).
|
thats a tricky one,
Code:
$ egrep '[0-9A-z]@' findchars Code:
$ egrep '@' findchars |
This way i have to identify all the special characters and hard code them .It will not fulfill my requirement.
Quote:
Quote:
|
Quote:
|
Quote:
|
I think your best bet is to work on the basics. First figure out what a pattern is, or what does a pattern consist of,
or what qualifications does something have to have in order to be defined as a pattern? Whence you figure that out, then move onto the next step, finding a program that searches for patterns and learn how to use it to do just that. If you have any difficulties arise then seek guidance for same. |
All times are GMT -5. The time now is 11:35 PM. |