V
V
Vladislav Khvostov2016-10-04 19:04:31
linux
Vladislav Khvostov, 2016-10-04 19:04:31

How to filter extra words in bash?

There is a line -
```
lint.sh some.css some.js
```
from the line you need to remove everything except words that end in .css.
```
some.css
```

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RPG, 2016-10-04
@vlakhvo

echo "lint.sh some.css some.js somecss some.csss" | grep -owP "[^\s]+\.css"
some.css

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question