02-10-2005
thanx moxxx68.....
cheers.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to pass a filename parameter in shell script and then need to validate same name in the folder, Can any one help what would be piece of code to do so.
Lets folder is a and file with a is test.dat
and i want to pass this parameter against the file name file_name and then want to compare... (5 Replies)
Discussion started by: u263066
5 Replies
2. Shell Programming and Scripting
Say I write something like the following:
var1=1
var2=2
for int in 1 2
do
echo "\$var$int"
done
I want the output to be:
1
2
Instead I get something like:
$var1
$var2 (2 Replies)
Discussion started by: Awanka
2 Replies
3. Shell Programming and Scripting
Hi,
I have a script and I'm passing in a parmeter $1, and I only what to pass this $1 parmeter into another script.
Please see below for details for help :
virtual_gateway="$1"
YYYYMMDD="`date +%Y%m%d`"
... (7 Replies)
Discussion started by: venhart
7 Replies
4. UNIX for Dummies Questions & Answers
Hi,
i am trying to convert windows path to linux and do some action on equivalent mounted one for the same in linux.
echo '\\server1\source\path\needed_files' | sed -e 's!\\!/!g' | sed -e 's!^//!/!' | sed -e 's!\(/server1/source/path\)\(.*\)!/home/$USER/mount/server1\2!'output: ... (5 Replies)
Discussion started by: greet_sed
5 Replies
5. Shell Programming and Scripting
Hi
I am looking for a unix command or a small shell script which can takes one parameter and then searches for the passed in the parameter in any or all files under say /home/dev/
Can anyone please help me on this? (3 Replies)
Discussion started by: pankaj80
3 Replies
6. Shell Programming and Scripting
i am passing input parameter 'one_two' to the script , the script output should display the result as below
one_1two
one_2two
one_3two
if
then
echo " Usage : <$0> <DATABASE> "
exit 0
else
for DB in 1 2 3
do
DBname=`$DATABASE | awk -F "_" '{print $1_${DB}_$2}`
done
fi (5 Replies)
Discussion started by: only4satish
5 Replies
7. Shell Programming and Scripting
hi all,
i have a parameter file of following format, i want a method which can get the value of specific parameter.
parameter file format:
<Parameter Name="FileLocationWindows">
<Description>
The directory location of the logger file.
... (1 Reply)
Discussion started by: laxmikant.hcl
1 Replies
8. Shell Programming and Scripting
Hi,
I have the following files.
->cat scr.sh
export TMP_DIR=/home/user/folder1
export TMP_DIR_2=/home/user/folder2
while read line
do
cat "$line"
done<file_list.dat
------------------------
-> cat file_list.dat
$TMP_DIR/file1.txt
$TMP_DIR_2/file2.txt
---------------------------
-> cat... (6 Replies)
Discussion started by: barath
6 Replies
9. Shell Programming and Scripting
Hi.
How do I achieve this
sh /EDWH-DMT02/script/MISC/exec_sql.sh "@/EDWH-DMT02/script/others/CSM_CKC/Complete_List.sql ${file_name}" Complete_List.txt
The /EDWH-DMT02/script/MISC/exec_sql.sh has two parameters and it's working fine with this
sh /EDWH-DMT02/script/MISC/exec_sql.sh... (7 Replies)
Discussion started by: aimy
7 Replies
10. Shell Programming and Scripting
Hello All,
Could you please do help me here as I would like to perform parameter expansion in shell over a parameter expansion.
Let's say I have following variable.
path="/var/talend/nat/cdc"
Now to get only nat I could do following.
path1="${path%/*}"
path1="${path1##*/}"
Here... (8 Replies)
Discussion started by: RavinderSingh13
8 Replies
LEARN ABOUT DEBIAN
catalyst::manual::tutorial::09_advancedcrud
Catalyst::Manual::Tutorial::09_AdvancedCRUD(3pm) User Contributed Perl Documentation Catalyst::Manual::Tutorial::09_AdvancedCRUD(3pm)
NAME
Catalyst::Manual::Tutorial::09_AdvancedCRUD - Catalyst Tutorial - Chapter 9: Advanced CRUD
OVERVIEW
This is Chapter 9 of 10 for the Catalyst tutorial.
Tutorial Overview
1. Introduction
2. Catalyst Basics
3. More Catalyst Basics
4. Basic CRUD
5. Authentication
6. Authorization
7. Debugging
8. Testing
9. 09_Advanced CRUD
10. Appendices
DESCRIPTION
This chapter of the tutorial explores more advanced functionality for Create, Read, Update, and Delete (CRUD) than we saw in Chapter 4. In
particular, it looks at a number of techniques that can be useful for the Update portion of CRUD, such as automated form generation,
validation of user-entered data, and automated transfer of data between forms and model objects.
In keeping with the Catalyst (and Perl) spirit of flexibility, there are many different ways to approach advanced CRUD operations in a
Catalyst environment. Therefore, this section of the tutorial allows you to pick from one of several modules that that cover different
form management tools. Select one or more options from the list below.
ADVANCED CRUD OPTIONS
o FormFu
o FormHandler
o FormBuilder
NOTE: Please contact the author if you would like to assist with writing a new module.
AUTHOR
Kennedy Clark, "hkclark@gmail.com"
Feel free to contact the author for any errors or suggestions, but the best way to report issues is via the CPAN RT Bug system at
https://rt.cpan.org/Public/Dist/Display.html?Name=Catalyst-Manual <https://rt.cpan.org/Public/Dist/Display.html?Name=Catalyst-Manual>.
Copyright 2006-2011, Kennedy Clark, under the Creative Commons Attribution Share-Alike License Version 3.0
(http://creativecommons.org/licenses/by-sa/3.0/us/ <http://creativecommons.org/licenses/by-sa/3.0/us/>).
perl v5.14.2 2012-01-20 Catalyst::Manual::Tutorial::09_AdvancedCRUD(3pm)