Question: I've to make a folder contents list using `ls -alis` and using `awk` to filter the results.

I'm having some problems with `$11 != "." && $11 != ".."` . I don't want to display the folder `.` and the folder `..` but they are still here.

```
ls --color -alis /home/user/ | 
tr -s ' ' | cut -d " " -f11 |
awk '$1 !~"^/\./$" { print $1 }'

```

I've tried `$11 !~ "^/./$"` as well.

Answer: 
An other solution is adding the event to the button on the document.ready

```js
$( document ).ready(function() {
   var button = document.getElementsByClassName("btn")[0];

   button.onclick=function(){
      alert('Hi');
   };
});
```

```html
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<input type="button" class="btn btn-default" value="Kortingscode">
```
You can easily use jquery for that. 

First load the jquery script.

```
<script   src="https://code.jquery.com/jquery-1.12.2.min.js""></script>

```

Then

```
<input type="button" class="btn btn-default Kortingscode" value="Kortingscode">

```

The jquery:

```
   <script>
    $(".Kortingscode").click(function(){
        alert("The button was clicked.");
    });
   </script>

```