writing bash

Table of Contents

Backlinks

bash

#!/bin/bash
cd ~/Dropbox/Notes/RoamNotes
array=()
filtered_array=()
mapfile -d $'\0' array < <(find . -print0 )

for (( i=0; i<${#array[@]}; i+=1 )); do
filtered_array+=$(stat "${array[$i]}")
done



echo ${array[2]}
echo ${filtered_array[2]}

Author: Linfeng He

Created: 2024-04-03 Wed 20:16