12-13-2012
if we use -i option, will it avoid the rename opion
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi there,
I am trying to call a shell script from a Perl script. here is the code:
@args = ("sh", "someshellprg.sh", "a file handler", "an array");
system(@args) == 0
or die "system @args failed: $?";
in the shell program, I examine if the arguments exits using:
if
then echo... (5 Replies)
Discussion started by: pinkgladiator
5 Replies
2. Shell Programming and Scripting
Hi:
I am trying to reuse an existing shell script foo1.csh to set environment variables inside a perl script and its childern processes.
Is it possible at all to make those environment variables persistent in the main perl process and its children processes?
Do I have to create a new... (4 Replies)
Discussion started by: phil518
4 Replies
3. UNIX for Dummies Questions & Answers
I searched the forum, but there was different type of rename.
Hello.
I have files in folder.
Like:
xxxxxxxx1.html
or
xxxxxxxx2.txt
or
xxxxxxxx3.tar.gz
and how to rename or change file extension case to
xxxxxxxx1.htm
or
xxxxxxx2.TXT
or (5 Replies)
Discussion started by: Sheldon
5 Replies
4. Shell Programming and Scripting
Hi,
I'm working on a script to make automatic the new releases of my website...
However in this script I put all the css script in a single one. There's no rpoblem for that.
My problem is when I want to change the header of my layout page to put instead of :
$header.="<link rel=\"stylesheet\"... (2 Replies)
Discussion started by: lahabana
2 Replies
5. Shell Programming and Scripting
Hi,
IŽd like to know how to program a shell script for know when a file changes and based on that make another tasks all this in real time.. Thanks (2 Replies)
Discussion started by: mrios7
2 Replies
6. Shell Programming and Scripting
This is the ldf file
dn: sdcsmsisdn=1000000049,sdcsDatabase=subscriberCache,dc=example,dc=com
objectClass: sdcsSubscriber
objectClass: top
postalCode: 29600
sdcsServiceLevel: 10
sdcsCustomerType: 14
givenName: Adelia
sdcsBlackListAll: FALSE
sdcsOwnerType: T-Mobile
sn: Actionteam... (1 Reply)
Discussion started by: LinuxFriend
1 Replies
7. Shell Programming and Scripting
I have a directory that contains several files, out of which some files are have an extra extension for example
file1.new.new.new
file2.new.new.new
file3.new.new.new
file4.new.new.new
i want to write a shell script that rename all such file with only single extension like
file1.new... (7 Replies)
Discussion started by: mukulverma2408
7 Replies
8. Shell Programming and Scripting
Hey,
So I have a shell script that outputs some variables, call them $a and $b. I know in shell scripting if I wanted to use the variables in another shell script I'd do
sh code.sh "$a" "$b"
How can I do something similar with perl? (2 Replies)
Discussion started by: viored
2 Replies
9. Shell Programming and Scripting
I have to increase the date by one week in an input when script is executed in solaris. I was able to acheive this using ksh script that is working in Linux enivironment, when i execute the same script in Solaris i am getting below error:
/var/tmp\n\r-> ./script.ksh
date: illegal option -- d... (3 Replies)
Discussion started by: sriramanaramoju
3 Replies
10. Shell Programming and Scripting
Hi---Is there's way can write small shell script or perl script open "abc.txt" file and create new "new_abc.txt" file with format output below? Thanks
cat abc.txt
###########################Readme###############################
Contained with this README.TXT file are all of the
file... (7 Replies)
Discussion started by: dotran
7 Replies
LEARN ABOUT DEBIAN
mtnopt
MTNOPT(1) monotone MTNOPT(1)
NAME
mtnopt - generate shell variables from monotone workspace options
SYNOPSIS
mtnopt [-s|-c|-v] [-d dir] [-k keys]
mtnopt -h
DESCRIPTION
mtnopt prints shell variable assignments for each value in the file of monotone workspace options, _MTN/options, in the current directory.
For instance, if _MTN/options contained this text:
database "/home/user/src/monotone.mtn"
branch "net.venge.monotone"
keydir "/home/user/.monotone/keys"
mtnopt would print:
MTN_database="/home/user/src/monotone.mtn";
MTN_branch="net.venge.monotone";
MTN_keydir="/home/user/.monotone/keys";
By default, mtnopt attempts to guess appropriate syntax from the value of the SHELL environment variable. This can be overridden with the
-s and -c command-line options.
OPTIONS
-s Print variable assignments in sh(1) syntax.
-c Print variable assignments in csh(1) syntax.
-v Print only the values, with no indication of the corresponding option keys.
-d directory
Look for _MTN/options in directory, rather than in the current directory.
-k keys
Print assignments for only those options that match the egrep(1) regular expression keys.
-h Print a help message and exit.
BUGS
mtnopt only looks in the current directory for the _MTN directory, so it will fail in a subdirectory of a workspace.
mtnopt should be aware of the set of possible options, rather than blindly printing whatever is in _MTN/options.
The behavior when there is no _MTN/options file to be found is less than helpful.
SEE ALSO
mtn(1), egrep(1), sh(1), csh(1)
monotone 2011-02-22 MTNOPT(1)