Hi All,
I have a list of directories like below
Folder Path is
$GLOG_HOME/web/htdocs/js
Folders are
rateservice
ratepreference
ratefactor
dev123
I want to omit all folders and select only dev123 folder,
I have tried
#!/bin/bash
. $HOME/.profile
cd $GLOG_HOME/web/htdocs/js
touch custom_js_files.txt
ls -p grep -v 'rateservice'| grep-v 'ratepreference'| grep-v 'ratefactor'> custom_js_files.txt
I have tried grep -R for directories also. Please suggest on it.
Thanks,
Dev Rishi
I have a list of directories like below
Folder Path is
$GLOG_HOME/web/htdocs/js
Folders are
rateservice
ratepreference
ratefactor
dev123
I want to omit all folders and select only dev123 folder,
I have tried
#!/bin/bash
. $HOME/.profile
cd $GLOG_HOME/web/htdocs/js
touch custom_js_files.txt
ls -p grep -v 'rateservice'| grep-v 'ratepreference'| grep-v 'ratefactor'> custom_js_files.txt
I have tried grep -R for directories also. Please suggest on it.
Thanks,
Dev Rishi