Skip to main content
Post Undeleted by schrodingerscatcuriosity
Post Deleted by schrodingerscatcuriosity
Post Undeleted by schrodingerscatcuriosity
added 32 characters in body
Source Link

The appropriate answer is @laktak. But here there's another approach:

for f in *.gz;"$sourceFolder"; do 
  echo "$" printing the file name ${f##*/}"; "
done

The appropriate answer is @laktak. But here there's another approach:

for f in *.gz; do 
  echo "${f##*/}"; 
done

The appropriate answer is @laktak. But here there's another approach:

for f in "$sourceFolder"; do 
  echo " printing the file name ${f##*/}"
done
Post Deleted by schrodingerscatcuriosity
edited body
Source Link

The appropiateappropriate answer is @laktak (using the extension *.gz). But here there's another approach:

for f in *.gz; do 
  echo "${f##f##*/*}"; 
done

The appropiate answer is @laktak (using the extension *.gz). But here there's another approach:

for f in *.gz; do 
  echo "${f##/*}"; 
done

The appropriate answer is @laktak. But here there's another approach:

for f in *.gz; do 
  echo "${f##*/}"; 
done
Source Link

The appropiate answer is @laktak (using the extension *.gz). But here there's another approach:

for f in *.gz; do 
  echo "${f##/*}"; 
done