I looked some other posts and learnt to match file extension in the following way but why my code is not working? Thanks.

I looked some other posts and learnt to match file extension in the following way but why my code is not working? Thanks.

<br>

  1 #!/bin/sh
  2 
  3 for i in `ls`
  4 do
  5     if [[ "$i" == *.txt ]]
  6     then
  7         echo "$i is .txt file"
  8     else
  9         echo "$i is NOT .txt file"
 10     fi
 11 done


Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Linux Tutorial - Shell Bash Commands from the Beginning with Examples

Linux Tutorial - Shell Bash Commands from the Beginning with Examples. Learn BASH command interpreter explained step by step and with examples. Learn what Linux is and how the command interpreter fits into the operating system. Get and install Linux. Understand the structure and syntax of Linux commands. Learn to manage the elements of the filesystem: files and directories. Learn to install software from official servers or from any compatible file.

Bash alias to wrap around Git commit

I am trying to write a bash alias to wrap around a Git commit command.

Remove Database settings of django using bash script

I am trying to create a bash script to create a boilerplate django project that suits for my company. I need to delete the DATABASES in settings and append new one. The DATABASES is a python dictionary with structure