Quantcast
Channel: Active questions tagged bash+awk - Ask Ubuntu
Viewing all articles
Browse latest Browse all 102

What is a practical way to list every character used in a file (Bash) (Regex)

$
0
0

How can I turn this:

Johnny's penguin, (Tuxie), likes the following foods: French fries, and beef.

To this:

 abcdefghiklnoprstuwFJT',():.

(These are the total characters used in the input)

Please note that the small case characters "jmqvz" were not in the input sentence, therefore, not outputted.

The order is not important whatsoever, but lower case, then upper case, then special characters will be preferred.

I am certain I will need sed/awk/etc. for this, but I have not found anything similar after extensive searching.


Viewing all articles
Browse latest Browse all 102

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>