#!/bin/sh
#] 
#] *********************
#] $ bash "$d_bin"'van collision lawsuit processes.sh' 
# www.BillHowell.ca  03Mar2023 initial, testDevelop with geany, then bash
# view in text editor, using constant-width font (eg courier), tabWidth = 3


# neither [Python, QNial] can have empty lines in function bodies
#		this forces a "no empty lines" style, which I don't like, but there are compromises
#		eg put in [# for bash, % ; for QNial, ??? for Python]
# NOTE!!! : NOT used here - random 3-digit codes for varNames in each function
#		assumes that only library functions are called, which do have unique codes #24************************24



#24************************24
# List of operators, generated with :
# $ grep  "^#]"  "$d_bin"'van collision lawsuit processes.sh' |  sed "s/^#\]/  /" 
#



#24************************24
# Setup 

source  "$d_bin""standard header.sh"		# done by fileops.sh 


#************
# code 

#] van_collision_lawsuit_Arx()  - backup project files
	van_collision_lawsuit_Arx()
{  
	date_ymdhm=$(date +"%y%m%d %kh%Mm")
	dinn="$d_web"'Personal/210611 Hoffart lawsuit/'
	d_Arx="$dinn"'z_Archive/'"$date_ymdhm/"		# no trailing `/ ??
		echo  "date_ymdhm: $date_ymdhm"
		echo  "d_Arx:  $d_Arx"
	if  ! [ -d  d_Arx ];  then  mkdir "$d_Arx";  fi 
	find  "$dinn"  -maxdepth 1  -type f  -name "*.*"  |  tr  \\n  \\0  |  xargs -0  -IFILE  cp -p  "FILE" "$d_Arx"  
}  


#************
# tests 
#
# 	$ bash  "$d_bin"'van collision lawsuit processes.sh'  
# 	find  "$dinn"  -maxdepth 1  -type f  |  tr  \\n  \\0  |  xargs -0  -IFILE  |  cp -p  "$FILE" "$d_Arx"
# 	$ bash  "$d_bin"'van collision lawsuit processes.sh'  
# date_ymdhm: 230306 11h31m
# d_Arx:  /home/bill/web/Personal/210611 Hoffart lawsuit/z_Archive/230306 11h31m/
# cp: cannot stat '': No such file or directory
# xargs: echo: terminated by signal 13

# $ bash  "$d_bin"'van collision lawsuit processes.sh'  
# date_ymdhm: 230306 11h33m
# d_Arx:  /home/bill/web/Personal/210611 Hoffart lawsuit/z_Archive/230306 11h33m/
# cp: cannot stat 'FILE': No such file or directory
# xargs: echo: terminated by signal 13

#	find  "$dinn"  -maxdepth 1  -type f  |  tr  \\n  \\0  |  xargs -0  -IFILE  cp -p  "FILE" "$d_Arx"
#	cp -p "$dinn/*"  "$d_Arx"
#	cp -p "$d_web"'Personal/210611 Hoffart lawsuit/'	"$d_Arx"'???'
#	cp -p  "$dinn/"*.*"     "$d_Arx"  
#	cp -p  "$dinn"'/'"*.*"  "$d_Arx"  
#	cp -p  "$dinn*.*"  "$d_Arx"  
# 	find "$dinn" -type f -execdir cp -tp /"$d_Arx"/ {} +'/'"*.*"  
# >> I didn't try



#************
# run - first [, un]-comment line(s) of the list below

	van_collision_lawsuit_Arx





# $ bash  "$d_bin"'van collision lawsuit processes.sh'  

# enddoc
