And please keep line lengths to less than approximately 80 characters.
Quote:
There's no need for command substitution which is slow in all shells except ksh93. The current directory is stored in the PWD variable:
Quote:
Quote:
Then that's the part you should post. Always post just enough of your code to demonstrate the problem. Use some simple statements to set things up if you have to.
This is kinda confusing on how this script works. If you don't know how it works, just paste the code and try it.
Okay, what I'm trying to accomplish is that when this script is executed ( usage : scriptname directory-name-in-the-current-directory ) the cursor is supposed to be on the first letter of the current directory's name.
Then when the user presses the "u" key, the cursor will go up, which is the parent directory of the current directory. So it will keep going up till it hits the root directory.
And same with the "d" key. When "d" is pressed, it will go down until it hits the current directory.
How is "d" going to affect anything? You don't have any code to deal with it.
Quote:
And finally, when the user enters the "q" key, the script will quit.
I would appreciate a lot if someone can fix the script.
Can anyone tell me how to ouput the current cursor coordinate? I have tried using tput sc and tput rc. However I want to know what the coordinate is.
Thanks. (1 Reply)
Hi,
I'm writing scripts in perl and shell and want to add the oprion of
scrolling cursor on the screen when there is no output to the screen for long time. I saw it in some script but I don't have the source code.
Are anyone know how can I perform this ?
Thanks (1 Reply)
hi all,
am trying to modify a ksh script to group server names together depending on the cluster they sit in. currently the script does a
find . -name '*.pid'
to find all running servers and prints out their pids and names.
current output looks something like this :
serverA ... (1 Reply)
Hi all
What I want?
I want in Insert mode, press Alt-hjkl move cursor, and then back to insert mode.
I know ctrl-o, hjkl can do the job. but everytime I want to move, i have to press ctrl-o, or I have to count how many hjkl I will do, do a C-O (n)hjkl.
What I tried (example only with 'j')... (2 Replies)
Hi,
I have a table in which i have the following data
JOB_NO FILE_ID FILE_NAME
1546148 1378788 PDF Sample -1.pdf
1546148 1378789 PDF Sample -2.pdf
1546149 1378790 PDF Sample -3.pdf
Now I would like use a cursor like thing in unix to download the files using the file ids and send... (1 Reply)
I need to get the cursor position, and put it inside a variable. Problem is, i don't have the tput command, or ncurses.
Apparently I was supposed to try the following:
echo -e '\E
But I don't get a value or anything. Please help. (3 Replies)
i have 2 cursors. i want to assign the value of first cursor(employee_id) to the where condition of cursor c2(please refer the bold statement).
how do i do if i want to assign the value of c1 to where condition of cursor c2?
declare
cursor c1 IS
select employee_id from employee
cursor c2... (1 Reply)