0

For example, executing file styles.css outputs:

styles.css: asssembler source text

whereas file bar.css outputs:

bar.css: ASCII text

Even better, is there a way to convert my file styles.css to ASCII text?

1 Answer 1

1

The results from file are not perfect; the command looks for predictable patterns to determine file types. The file command is guessing. Apparently it has identified some keywords for assembly. The character encoding is almost certainly ASCII or UTF-8 already. But it can be checked:

file -bi $filename

Both recode and iconv can change the encoding of a file.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.