well, I was suggested to remove the contents of the cache as i get out of the browser netscape from the .netscape folder. is that really necessary? if so what are the rest to be done?
can anybody please tell me?:rolleyes: (8 Replies)
Hello,
I have created following alias in csh
lab 'rlogin -l user23 complab23'
but problem is complab23 does not allow automatic login by checking .rhosts file. So after typing lab on command line I have to type complicate password and if wrong password is typed thrice then account gets... (4 Replies)
I am referring Bill Calkins(SCSA exam prep) for RBAC..actually i wanted to make a normal user to get the privilege to run a command through authorization, not through profile files...
This is the exact steps given by Bill calkins..
1.roleadd -m -d /export/home/adminusr -c... (11 Replies)
Hi All,
I have a big file of 100,000 lines with the following format:
1,736870,736870,1,2,5,547,1253889535,1253889775,240,30,152.163.141.8,US,0,00,-g 1253889445
1,881246,881246,1,2,6,402,1253889535,1253889775,240,30,152.163.141.8,US,0,00,-g 1253889445... (4 Replies)
Hi All,
When i have run the below command its showing 90% which is critical for production. for this i need the answer of some below question please help me for that.
1) i want to delete some unwanted files. how can i know the unwanted files ?Is it there any way of knowing this??
2)and... (2 Replies)
hi,
iam perl begginer,i have written the program
#!/usr/bin/perl
#use warnings;
use strict;
print "Enter the name:","\n";
my $name=<STDIN>;
my %hash=(siva => "9902774481",
dev => "9916391244",
venky => "9440506760",
manohar => "9440232695"
);
print "$name no is:... (5 Replies)
If I run a script called 'abc.sh' and then execute the following :
ps -ef | grep 'abc.sh'
I always get two rows of output, one for the executing script, and the other for the grep command that I have triggered after the pipe.
Questions: Why does the second row turn up in the results. My... (10 Replies)
VARA='hello|welcome|gone|fantastic|superb|nicecar'
if VARA contains a pipe "|", i want the contents of VARA to be tranformed to:
VARA="(hello) (welcome) (gone) (fantastic) (superb) (nicecar)"
so that, when i echo the contents of $VARA like this:
echo "$VARA"
or like this:
print... (8 Replies)
awk -F ";" 'FNR==NR{a=$1;next} ($2 in a)' server.list datafile | while read line
do
echo ${line}
done
when i run the above, i get this:
1 SERVICE NOTIFICATION: nagiosadmin skysmart-01.sky.net ....
instead of:
SERVICE NOTIFICATION: nagiosadmin skysmart-01.sky.net ....
can... (4 Replies)
We have huge file with control A as delimiter. Somehow one record is corrupted. This time i figured it out using ETL graph. If future , how to print only bad record.
Example Correct record:... (2 Replies)
Discussion started by: srikanth38
2 Replies
LEARN ABOUT REDHAT
regsub
regsub(n) Tcl Built-In Commands regsub(n)
__________________________________________________________________________________________________________________________________________________NAME
regsub - Perform substitutions based on regular expression pattern matching
SYNOPSIS
regsub ?switches? exp string subSpec varName
_________________________________________________________________DESCRIPTION
This command matches the regular expression exp against string, and it copies string to the variable whose name is given by varName. (Reg-
ular expression matching is described in the re_syntax reference page.) If there is a match, then while copying string to varName the por-
tion of string that matched exp is replaced with subSpec. If subSpec contains a ``&'' or `` '', then it is replaced in the substitution
with the portion of string that matched exp. If subSpec contains a ``
'', where n is a digit between 1 and 9, then it is replaced in the
substitution with the portion of string that matched the n-th parenthesized subexpression of exp. Additional backslashes may be used in
subSpec to prevent special interpretation of ``&'' or `` '' or ``
'' or backslash. The use of backslashes in subSpec tends to interact
badly with the Tcl parser's use of backslashes, so it's generally safest to enclose subSpec in braces if it includes backslashes.
If the initial arguments to regexp start with - then they are treated as switches. The following switches are currently supported:
-all All ranges in string that match exp are found and substitution is performed for each of these ranges. Without this switch only
the first matching range is found and substituted. If -all is specified, then ``&'' and ``
'' sequences are handled for each
substitution using the information from the corresponding match.
-expanded Enables use of the expanded regular expression syntax where whitespace and comments are ignored. This is the same as speci-
fying the (?x) embedded option (see METASYNTAX, below).
-line Enables newline-sensitive matching. By default, newline is a completely ordinary character with no special meaning. With
this flag, `[^' bracket expressions and `.' never match newline, `^' matches an empty string after any newline in addition
to its normal function, and `$' matches an empty string before any newline in addition to its normal function. This flag is
equivalent to specifying both -linestop and -lineanchor, or the (?n) embedded option (see METASYNTAX, below).
-linestop Changes the behavior of `[^' bracket expressions and `.' so that they stop at newlines. This is the same as specifying the
(?p) embedded option (see METASYNTAX, below).
-lineanchor Changes the behavior of `^' and `$' (the ``anchors'') so they match the beginning and end of a line respectively. This is
the same as specifying the (?w) embedded option (see METASYNTAX, below).
-nocase Upper-case characters in string will be converted to lower-case before matching against exp; however, substitutions specified by
subSpec use the original unconverted form of string. |
-start index |
Specifies a character index offset into the string to start matching the regular expression at. When using this switch, `^' will |
not match the beginning of the line, and A will still match the start of the string at index. index will be constrained to the |
bounds of the input string.
-- Marks the end of switches. The argument following this one will be treated as exp even if it starts with a -.
The command returns a count of the number of matching ranges that were found and replaced. See the manual entry for regexp for details on
the interpretation of regular expressions.
SEE ALSO
regexp(n), re_syntax(n)
KEYWORDS
match, pattern, regular expression, substitute
Tcl 8.3 regsub(n)