Hello, I am new at this forum so please bare with me on this.
Within a given directory, I have a list of files in which in each file, I would like to do a substitution. I would like to substitute the string mlcl to mll in each file using the foreach command. I dont quite get how to do that. If... (7 Replies)
Hi Guys,
I have a loop which uses a wildcard
i.e. foreach f (*)
but when I execute the tcsh file in unix then it gives me an error
->>>>>>>foreach: words not parenthesized<<<<<<<<<<-
Any help. (1 Reply)
Hi everyone
Does anyone know what is wrong with this script. i keep getting errors
foreach filename (`cat testing1`)
set string=$filename
set depth=`echo "$string"
echo $depth
end
the error is the following
testing: line 1: syntax error near unexpected token `('
testing: line 1:... (3 Replies)
Hi All,
Is there any problem with the below 'foreach' loop?
foreach risk_factor ($(cat "$rf_list"))
where "rf_list=$SCRIPT/Utility/rflist.txt "
I'm wondering, it is throwing below error message:
syntax error at line 34: `(' unexpected
Any idea/suggestions ?
Thanks in advance /... (7 Replies)
So I am back again beating my head against the wall with a shell script and getting a headache! I want to change each year in a file (1980, 1981, 1982, 1983, etc.) to the same year followed by a tab.
The input is "blah blah (1980) blah blah".
I want to get "blah blah (1980 ) blah blah".... (2 Replies)
I am trying to make a script for my Counter-Strike: Source servers. What i am wanting it to do is for it to restart each server, the only way i can think of doing this in through for each.
Years what i have at the moment.
server_start() {
START=`ps x | grep SCREEN | grep $SRV | cut -d '?' -f... (5 Replies)
Dear all,
I wrote a script to download files and move files in directories according to their name.
Now here is the problem:
Both p101 and p360 data download successfully, but when I move them according to the year and month, only p101 data can be placed at the right location, p360,... (1 Reply)
Hi everyone I'm new to unix and encountered a small problem i couldnt find out a reason why it doesn't work..please help..
in my csh script when i tried to use the foreach loop like this:
foreach x ( ls )
echo $x
end
when i tried to run it, it printed out 'ls' to the std out instead of... (3 Replies)
I need to put together a script that will take the contents of two different files (database name and database owner) and put them in two variables within a line:
foreach x (`cat /local/hd3/dba/tools/build_db_scripts/dbs`)
foreach z (`cat /local/hd3/dba/tools/build_db_scripts/dbas`)... (6 Replies)
Discussion started by: deneuve01
6 Replies
LEARN ABOUT DEBIAN
padre::constant
Padre::Constant(3pm) User Contributed Perl Documentation Padre::Constant(3pm)NAME
Padre::Constant - constants used by configuration subsystems
SYNOPSIS
use Padre::Constant ();
[...]
# do stuff with exported constants
DESCRIPTION
Padre uses various configuration subsystems (see "Padre::Config" for more information). Those systems needs to somehow agree on some basic
stuff, which is defined in this module.
CONSTANTS
"WIN32", "MAC", "UNIX"
Operating Systems.
"BOOLEAN", "POSINT", "INTEGER", "ASCII", "PATH"
Settings data types (based on Firefox types).
"HOST", "HUMAN", "PROJECT"
Settings storage back-ends.
"PADRE_REVISION"
The SVN Revision (when running a development build).
"PADRE_BLACK", "PADRE_BLUE", "PADRE_RED", "PADRE_GREEN", "PADRE_MAGENTA", "PADRE_ORANGE", "PADRE_DIM_GRAY", "PADRE_CRIMSON", "PADRE_BROWN",
"PADRE_WARNING", "PADRE_ERROR"
Core supported colours.
"CONFIG_HOST"
DB configuration file storing host settings.
"CONFIG_HUMAN"
YAML configuration file storing user settings.
"CONFIG_DIR"
Private Padre configuration directory Padre, used to store stuff.
"PLUGIN_DIR"
Private directory where Padre can look for plug-ins.
"PLUGIN_LIB"
Subdirectory of "PLUGIN_DIR" with the path "Padre/Plugin" added (or whatever depending on your platform) so that Perl can load a
"Padre::Plugin::" plug-in.
"LOG_FILE"
Path and name of Padre's log file.
"NEWLINE"
Newline style (UNIX, WIN or MAC) on the currently used operating system.
COPYRIGHT & LICENSE
Copyright 2008 - 2010 The Padre development team as listed in Padre.pm.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5 itself.
perl v5.14.2 2012-06-27 Padre::Constant(3pm)