Off topic:print file name having particular extension located in numerous subdirectory
3
0
Entering edit mode
7.1 years ago
vmicrobio ▴ 290

Hello!

I want to print the name of file having '.gbk' extension located in numerous subdirectory within my directory 'test'. However I have an issue with my bash code

#!/bin/bash
files='$.gbk'
if [ "-e home/ha/desktop/test/*/$files" ];
then
echo "$files"
fi

any suggestions?

bash • 955 views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 1778 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6