Sponsored Content
Top Forums Shell Programming and Scripting how to change working directories in perl? Post 88271 by megastar on Wednesday 2nd of November 2005 01:55:57 PM
Old 11-02-2005
how to change working directories in perl?

i am new to perl. i am writing a perl script. i want to know how to change the working directories? for ex. i have a perl script in c:\proj\ . i want to run this script in this directory but i need my script to change its working directory to D:\xyz\ dynamically in the script.
your help is appreciated.


10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Change permission for directories and files

Is there a way to change subdirectories permission plus the files in the subdirectories in a directory i specified without using the find command? (1 Reply)
Discussion started by: mingfei2006
1 Replies

2. Shell Programming and Scripting

Working with multiple home directories.

I need to rename a directory in every home directory on a given workstation. I am a newb to scripting so maybe thats why I cant exactly figure out how to correctly do this. The first thing I need to be able to do to write this script is figure out how to list all the directorys (these are not... (11 Replies)
Discussion started by: trey85stang
11 Replies

3. UNIX for Dummies Questions & Answers

how to change permissions only to files, not directories....?

Hi, I am really new to unix, any help is much appreciated. I need to change permissions of all files under several subdirectories to 700 but keep directories readable (755). Why ? Because I need a FTP user to only list his files and can't read them. But to browse to subfolder, the directories... (3 Replies)
Discussion started by: narrok
3 Replies

4. UNIX for Dummies Questions & Answers

using dots to change directories

how would i go down a directory using the ../.. (6 Replies)
Discussion started by: JamieMurry
6 Replies

5. Shell Programming and Scripting

Working with directories, need assistance

Hello there, I have the following issue and I need you assistance. I have created a script that searches for directories that have spaces, for example: ./assets/en/images/pricing/current offers/SIMPLE GRID ./assets/en/images/pricing/current offers/ADVERTISED PRICE But now the... (4 Replies)
Discussion started by: jpgleon
4 Replies

6. UNIX for Dummies Questions & Answers

How to get directories colored when doing change directory and tab

I am trying to navigate between directories using cd. However, the only way to distinguish directories now is by seeing the "/' after the directory names, which is quite inefficient. How can I make the directories look in color when typing cd and then using the tab key to list the files and... (1 Reply)
Discussion started by: genehunter
1 Replies

7. UNIX for Dummies Questions & Answers

Change chmod on files in diff directories

I am looking for a small script to crawl through several directories and change a couple of files in each directory to read write status. Anyone have any ideas ? (5 Replies)
Discussion started by: zapper222
5 Replies

8. Shell Programming and Scripting

Perl Script not working on all directories

Hi Folks, I have a script that I am using. The files are in Directory c:\files\change\options In that directory I have many other sub folders like R1 R2 R5 E4 etc... When I run this script in windows, It looks like its just changing the first folder R1 and not the rest. Can I get an... (6 Replies)
Discussion started by: richsark
6 Replies

9. Shell Programming and Scripting

How to change directories?

Hi, I am changing my directory structure /opt/multifamily/restatement/weblogic to /users/saanvi/weblogic Am using sed command to changing the directoried names Please hepme out on this. there is any script to change the directories. Thanks in Advance, (9 Replies)
Discussion started by: saanvi
9 Replies

10. Shell Programming and Scripting

Script to change Permissions on files and directories

Hey, It's me again. Have a problem, that's not really a problem. I have the below script, that goes to the directory I want it to go to. lists out the directories available, lets you choose the directory you want, then it changes the permissions on said directory. using chmod -R and chown -R. ... (2 Replies)
Discussion started by: gkelly1117
2 Replies
DPATCH(7)							      dpatch								 DPATCH(7)

debian/patches/script.dpatch - self applying patch SYNOPSIS
debian/patches/script.dpatch -patch [directory] debian/patches/script.dpatch -unpatch [directory] debian/patches/script.dpatch -pkg-custom [directory] DESCRIPTION
A dpatch is a program that modifies the source tree in a given directory. How it does that is entirely up to the person writing it. It can be a script that calls patch(1) with the appropriate options, a complicated perl script that does some deep magic, or anything else. The only requirement is that it MUST accept the -patch and -unpatch options, followed by the destination (or working) directory, when speci- fied. For the sake of compatibility, the second argument is only present when a working directory was explicitly set with dpatch --workdir. For some of the dpatch(1) features to work, the script should follow a common style: there should be a line near the top of the file with the following format: "filename -- author <email>". And one or more "# DP: description" lines. These will be used by dpatch cat for exam- ple. WARNING
dpatch is deprecated, please switch to the `3.0 (quilt)' Debian source package format instead. See http://wiki.debian.org/Projects/Deb- Src3.0#FAQ for a short guide on how to do it. EXAMPLES
One can find dpatch examples under /usr/share/doc/dpatch/examples/. AUTHOR
This manual page was written by Gergely Nagy. SEE ALSO
dpatch(1), dpatch.make(7), dpatch-edit-patch(1), dpatch-list-patch(1), dpatch-convert-diffgz(1) DPATCH 2 Dec 13 2011 DPATCH(7)

Featured Tech Videos

All times are GMT -4. The time now is 02:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy