04-14-2008
Yes, except you mustn't have any spaces on either side of the equals sign. (Be bold -- try it :^)
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a program that searches for a particular string patten. I am however having difficulty passing the varible $i (in a loop) as the string pattern to replace. Using either perl or sed search and replace statements, I get the same kinda result. For example, using the perl:
for i in... (3 Replies)
Discussion started by: Breen
3 Replies
2. Shell Programming and Scripting
set filename $logDir/PyLog/$logname
echo $filename >> logname.txt
I am trying to write to write the varibale filename into a file logname.txt,it is not working could any one suggest y (2 Replies)
Discussion started by: nathgopi214
2 Replies
3. UNIX for Dummies Questions & Answers
Wondering what $@ does - is it a variable of some kind? (1 Reply)
Discussion started by: Jayden
1 Replies
4. Shell Programming and Scripting
How do you store strings in a variable-sized array?
Background:
I wrote a program earlier today to work with a very large text file. I chose Perl because it lets me do some nice formatting on the text I grab, instead of just using a shell script to con'cat'enate egrep results.
The program... (2 Replies)
Discussion started by: CRGreathouse
2 Replies
5. Shell Programming and Scripting
Well, I think I've managed to take two different issues and conglomerate them into and embarrasing mess.
#!/bin/bash
# Set some variables
dir1=/path/that/isnt/variable/$variabledir/dir/
dir2=/path/that/isnt/variable/$variabledir/important/"$variabledir"-subdirectory/path/
echo "Gimme... (7 Replies)
Discussion started by: karlp
7 Replies
6. Shell Programming and Scripting
Hi All,
We need to run a Connect direct script on Unix server to send a file to Mainframe server and at mainframe end there need to run another job through Runtask with some parameters need to be passed from C:D (unix) to mainframe.
My question is I have to pass parameters like DSN and FNAME as... (2 Replies)
Discussion started by: matrix001
2 Replies
7. UNIX for Dummies Questions & Answers
Hi,
when I enter 'ps -ef| grep process_name'/'psu | grep process_name', i am getting multiple number of lines output( i mean multiple no of processes).how can i store it one by one and echo it in the same way(one by one).
part of script is
var1=$(remsh hostname -l username ps -ef|grep... (2 Replies)
Discussion started by: jeanzibbin
2 Replies
8. Shell Programming and Scripting
I am trying to set a variable from this AWK command in KSH but I keep getting an error that says my variable cannot be found.
LOADNO = $(awk -F"|" 'NR==1{print $2}' file.txt)
If I just run awk -F"|" 'NR==1{print $2}' file.txt I get the right value but as soon as I try to assign this... (1 Reply)
Discussion started by: cvigeant
1 Replies
9. Shell Programming and Scripting
I want to pass variable to below awk statement
awk '/abc123/{x=NR+1}(NR<=x){print}' sftp_log_20150317.log
I tried -v like below, but its not working. Please help!!!
awk -v var1="abc123" '/var1/{x=NR+1}(NR<=x){print}' sftp_log_20150317.log
Input file is:
sftp_log_20150317.log
... (3 Replies)
Discussion started by: vegasluxor
3 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I am analyzing linux script, below is the following script line
${AA_APP:-/opt/ty/aa}/sbin/save_file_list ApplEnv.prererun ${AA_APP:-/opt/ty/aa}/sbin/ApplEnv.install_save_list
I really dont understand what this line does, can someone explain me.
AA_APP is variable... (4 Replies)
Discussion started by: stew
4 Replies
LEARN ABOUT DEBIAN
acheck.5
ACHECK.5(5) User Contributed Perl Documentation ACHECK.5(5)
NAME
.acheck - Acheck configuration file
DESCRIPTION
This is the configuration file for acheck. If it exists, it must be at the top of your home directory ($HOME). This file is optional unless
you don't want to use default values.
Lines beginning with a number sign (`#') and empty lines will be ignored. Spaces at the beginning and the end of a line will also be
ignored as well as tabulators. If you need spaces at the end or the beginning of a value you can use apostrophes (`"'). An option line
starts with it's name followed by a value. An equal sign is optional. A comment starts with the number sign, there can be any number of
spaces and/or tab stops in front of the #. Some possible examples:
# this line is ignored
option value
option = value # this is a comment
option "value ending with space "
You have to escape number signs with a backslash (`') to use it in a value.
Default values are provided into square brackets, they should be suitable for most installations.
SPELLING
Define if you want to use ispell for checking spelling and how to use it.
check_spelling
use Aspell for spelling if set to `yes' [yes]
dictionary
Language dictionary to use with Aspell, use default if empty [empty]
word_letters
regular expression to define characters allowed to write a word, pattern matches according locale [w]
$review_mode
set to `yes' if you want review comments to be added in the output file after parsed line, otherwise just fix error [no]
COLORS
Set text colors for clear presentation.
The recognized colors (all of which should be fairly intuitive) are: clear, reset, dark, bold, underline, underscore, blink, reverse, con-
cealed, black, red, green, yellow, blue, magenta, cyan, white, on_black, on_red, on_green, on_yellow, on_blue, on_magenta, on_cyan, and
on_white. Case is not significant. Underline and underscore are equivalent, as are clear and reset, so use whichever is the most intu-
itive to you. The color alone sets the foreground color, and on_color sets the background color.
Note that not all colors are supported by all terminal types, and some terminals may not support any of these sequences. Dark, blink, and
concealed in particular are frequently not implemented.
error_color
color used to highlight errors, this should highlight space characters [bold on_red]
fix_color
color used to highlight suggestions, this should highlight space characters [bold on_green]
error_head_color
color used to display the error line header [bold red]
error_color
color used to display the suggestion line header [bold green]
comment_color
color used for comments and hints [cyan]
OTHERS
bak_ext
extension for backup files [bak]
comment
comment string for review [>> ]
debug
verbosity level [0]
Verbosity Levels:
0 quiet, normal
only warnings and errors
1 debug
names of subroutines
2 debug verbose
names and arguments of subroutines
3 .. 5 debug very verbose
output parsing and checking details
SEE ALSO
acheck(1), acheck-rules(5)
AUTHOR
Nicolas Bertolissio <bertol@debian.org>
perl v5.8.4 2003-10-05 ACHECK.5(5)