Corona688 and RudiC - thank you both so much for your time; cannot tell you how much I appreciate it. After wrestling with this for a while I am grateful that someone would be willing to lend me some assistance. So thank you thank you!!
Quote:
Originally Posted by RudiC
How far would
get you?
RudiC: I am *really* green to this, and unix terminal is not at all my forte. A couple of questions:
1) Where is the directory listing occurring in this script? I'm guessing it's at `[ -f $FN ]`
2) Can I pass an argument into this? Traditionally I've used $1, $2 etc. but I'm not intimately familiar with bash.
Quote:
Originally Posted by Corona688
You don't have to append each item to an array individually. And bash has a built in menu system.
Corona688: Thank you for the find syntax! I had completely forgotten the `type -f` argument for `find` :P Man pages for the win (Windows has broken my brain I think lol).
The simplicity of the "select" command is fantastic, and it may be the route I end up taking. I was hoping to use the Bash Dialog interface for consistency as I won't be the end user of this software. Currently I have a master menu (built statically) with common tasks. I am attempting to build this installer as a "sub" menu, or basically a bash script that gets invoked through one of the options in the main menu. A sudden change in the look & feel could confuse some users; they aren't the type that know anything about bash, linux or really much about software. Surge support we'll say.
I have the Tiny Core ncurses extensions remastered into my core file and would like to be able to use them.
But again, I appreciate all the help thus far! If an ncurses dialog is a no go then I'll give up on it. I just figured that it had to be possible...
Also, Python has been suggested but I need to keep the footprint of my OS as small as possible. My initrd is currently sitting around 13mb, compressed.
Does any one know how to get a recursive directory listing in long format (showing owner, group, permission etc) without listing the files contained in the directories.
The following command also shows the files but I only want to see the directories.
ls -lrtR * (4 Replies)
Hi,
I need a help. I want to see all the files in the directory with the Time Stamp. I use the following command.
$ls -lt
This displays the files with time stamp, but not all the files. Only last few months, the files are displayed with timestamp, the old files are only have dates.
... (2 Replies)
Is there a way of listing everything under a directory.
So for example if you wanted to know everything under the USR directory you would get all the sub directories and files in those directories as well as the file directly under the USR directory. I would imagine that you could do this... (5 Replies)
Hai friends is there any command in unix that display only directories...
(I have 5 directories in my home directory, and i also have some files along with directories...But when i tried to show the directory listing using the command ls -d i wasn't presented by the directory listing...Please... (2 Replies)
Hi,
example of Unix / Linux dialog utility is below.
I am going to use dialog as simple GUI for testing of a modem.
So I need to combine some dialog boxes into one.
I need to have input box, output box, info box, dialog box,
radiobox as in any standard program with graphical user... (2 Replies)
i have searched through this site and have found some useful information but i'm struggling with one thing. In my script i am created a start and end file so I can get a listing of the files within those two files. However I want to exclude any sub-directories in this listing. Below are the... (8 Replies)
Hi,
I have a directory with a bunch of files say around 150K.
I want the directory's path and the filenames printed to a text file.
Example:
If I am in the directory /path/test and the files in this directory are
My output file should be like this
Thanks in advance
----------... (4 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
A script that takes any number of directories as command line arguments and then lists the contents of each of... (3 Replies)
Hello,
I'm trying to build a small script to store a command into a dynamic variable, and I have trouble assigning the variable.
#!/bin/bash
declare -a var1array=("value1" "value2" "value3")
var1arraylength=${#var1array}
for (( i=1; i<${var1arraylength}+1; i++ ));
do
mkdir... (7 Replies)
Hello.
Any help would be greatly appreciated.
Right now I have the following input box that works fine and well, however I would like to wrap this is a loop that requires input. Right now the script will happily continue on if the user just hits enter. I'd like to require a minimum of a 5... (5 Replies)