Hi guys! I am new here. Just recently go into doing arrays and scripting. I'm a little stuck on creating a script that can read the files of your home directory into an array by using the code arrayx=( $( ls. ) )
It also has to display only empty files, only directories, and only files that are not empty. Sorry I am new to this, and this just stumped me. I have been looking for a while and have not found anything. I also have to create a backup script that will copy a directory that we input to the script to another location that we input to the script. If that makes sense. Thanks in advance!