10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Is there a way I can specify the name of a list as an argument to a shell script and then use the values of that list name in the script?
I need to do this WITHOUT using case statements.
Something like this:
check.sh list1
#!/bin/bash
list1="www.amazon.com www.google.com"... (9 Replies)
Discussion started by: gctaylor
9 Replies
2. Shell Programming and Scripting
Hi all,
I have a PLSQL script which has a IN list where it takes some ids as input. For example
SELECT * FROM EMPLOYEE WHERE EMPLOYEE_ID IN (comma separated list )
I want to run this quest inside a shell script but I would like to prepare the IN list dynamically where the employee ids... (1 Reply)
Discussion started by: LoneRanger
1 Replies
3. Shell Programming and Scripting
Hello everyone - I have the task to create a file list script that will list files in directory based on the parameters passed to the program.
It has to be a C Shell - I mentioned that before but I got closed :) - the company only allows this shell for security purposes I guess.
Anyway, here is... (4 Replies)
Discussion started by: adrianvas12
4 Replies
4. Shell Programming and Scripting
Hello All,
ksh script.
Please consider the following case .
$ ls -l
-rw-r----- 1 100 400 405143552 Mar 21 2010 bz_1_0000063547_561428818.arc
-rw-r----- 1 100 400 404148224 Feb 19 09:55 bz_1_0000079359_561428818.arc
-rw-r----- 1 100 400 405625856 Feb 19 14:30... (2 Replies)
Discussion started by: yoavbe
2 Replies
5. Shell Programming and Scripting
EDIT : This is for perl
@data2 = grep(/$data/, @list_now);
This gives me @data2 as
Printing data2 11 testzone1 running /zones/testzone1 ***-*****-****-*****-***** native shared
But I really cant access data2 by its individual elements.
$data2 is the entire list, while $data,2,3...... (1 Reply)
Discussion started by: shriyer
1 Replies
6. Shell Programming and Scripting
Hi Friend,
I have a small script to list all file FFAAAAABBBBB00001 and FFAAAAABBBBB00001.repaired (when I run another script, the orginal file will output another *.repaired file) in my unix directory, and reaname the output file FFAAAAABBBBB00001.repaired back to FFAAAABBBBB00001. However, it... (2 Replies)
Discussion started by: happyv
2 Replies
7. Shell Programming and Scripting
Hi All I have two scripts which i used to try and list all the directories one using 'function', which only lists the first directory and does not show directories within directories.
function ListDir ()
{
for arg in $(ls $HOME)
do
if
then
echo $arg
... (2 Replies)
Discussion started by: chassis
2 Replies
8. Shell Programming and Scripting
Hi all,
First of all compliments on the forum here. Looks great and has lots of information, some of which I have been able to use. I am a relativ noob when it comes to Unix but already I have been fooling around with scripts for the company I work for here in switzerland!
Thanks to this... (2 Replies)
Discussion started by: swissman24
2 Replies
9. UNIX for Dummies Questions & Answers
hey, im trying to write a script that will list all the .c files, and give me the first 10 lines of code in them. I think ive got that bit working, but i want to make it use friendly so i can select whether i want to modify a .c file or delete it. (7 Replies)
Discussion started by: Saggas
7 Replies
10. Shell Programming and Scripting
Hello guys it's me again, I need some help. What I'm doing is listing all the file and directories Recusively and using it a a master file. Then I need to do the same the nest day to make sure nothing was deleted or modified. What happen is file in one of out major directories was deleted without... (2 Replies)
Discussion started by: aojmoj
2 Replies