I am really newbie of csh and I am stuck with a script.
Basically what I want to do is assign to a variable (array) the output of "ls". Then look at this array and if there is the word "my_file", delete it from the array and echo the new array.
Moreover, I would like to have that every single item of my array is the input of a program.
Well I am stuck with both things. This is what I thought:
I don't know how to find the index of an item in the list and delete exactly that item.
Please help...
Thanks guys.
Last edited by fpmurphy; 12-05-2011 at 10:59 AM..
Reason: Code tags please!
Hello,
I have a unique situation where I must pass along critical & time-sensitive emails to a group of seven different people. Every person with whom I communicate EXCEPT ONE uses a standard IP based ".com" email address. The one exception is a gentleman who will NOT budge and create a... (1 Reply)
I am extremely desperate for help with this menu coding problem I'm having. Whenver I go to execute my script file, I keep getting an error message that says the following:
option: Undefined variable.
I implore someone to PUH-LEEZE point me in the right direction. I can't stress my... (21 Replies)
I've got a really weird situation here.... the same IP address keeps popping up in porn spam that I have rec'd in 2 different email accts. It looks to me like it's coming from UC Davis, and I suspect someone there, so I am hoping you all can verify the same thing before I call the person on this... (0 Replies)
Hey guys:
Can anyone show me , how I can update mulitple fields in a database (sample Informix) using Win32::ODBC ?
I'm creating a script that accepts an array as the value and then inserts these values into all the table fields in a particular database...
Thanks for anyone who can... (2 Replies)
I know pipelined processors have issues with interupts.... but why? And does the architecture of the CPU affect the kind of software that can run on it?
If someone could help me out that would be awsome. My boss came to me with this question and I can't find anything on the web helping me out.... (1 Reply)
Hello,
For a time now I have this problem which I cannot solve and this bothers me cause it seems so simple.
I have to change an existing (ftp only)user to create a timeslot for this user. (e.g. he can only login between 8 and 10 PM).
Facts:
- I can only use a terminal client (no gui)
-... (1 Reply)
suspend(1) User Commands suspend(1)NAME
suspend - shell built-in function to halt the current shell
SYNOPSIS
sh
suspend
csh
suspend
ksh
suspend
DESCRIPTION
sh
Stops the execution of the current shell (but not if it is the login shell).
csh
Stop the shell in its tracks, much as if it had been sent a stop signal with ^Z. This is most often used to stop shells started by su.
ksh
Stops the execution of the current shell (but not if it is the login shell).
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO csh(1), kill(1), ksh(1), sh(1), su(1M), attributes(5)SunOS 5.10 15 Apr 1994 suspend(1)