Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash for loop on folder items

#!/bin/bash
for filename in /Data/*.txt; do
    echo "$filename"
done



for d in /* ; do
    echo "$d"
done
Comment

PREVIOUS NEXT
Code Example
Shell :: ubuntu set current timezone asia/kolkata 
Shell :: git discard changes to one file 
Shell :: command to kill a process in windows 
Shell :: install homebrew on mac 
Shell :: linux bin to iso 
Shell :: bash cd or make dir if not exists 
Shell :: bash add new line to crontab 
Shell :: pause in bash 
Shell :: save output of command to variable bash 
Shell :: git diff with remote branch 
Shell :: change default kube editor nano 
Shell :: install adonisjs 
Shell :: git create branch with specific commit 
Shell :: bash alias function that accepts arguments 
Shell :: poython opencv pip 
Shell :: install i18next-browser-languagedetector 
Shell :: git display unrelated histories 
Shell :: One command to create a directory and file inside it linux command 
Shell :: how to switch php versions 
Shell :: sudo apt install ubuntu-desktop ? 
Shell :: pytorch for jetson nano 
Shell :: How to import a particular version of uuid 
Shell :: linux remove all from current directory 
Shell :: set zsh as default shell 
Shell :: heroku rebuild without commit 
Shell :: global configuration git 
Shell :: npm install typeorm 
Shell :: linux bash clear log file space 
Shell :: 7zip cmd 
Shell :: httpd https 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =