03-30-2009
Rule 5 is to search the forum database prior to asking a question. I don't really understand your search problem, but unregistered users can not post technical questions anyway. Even if the google search had worked in a way that you regard as perfect yet had failed to answer your unix question, you would still have no way to pose your question. This particular forum is a way for unregistered users to get some help with the task of becoming registered users. We simply delete technical questions posted here. Like the title says:
Forum Support Area for Unregistered Users & Account Problems Use this forum if you cannot login to the forums. NO TECHNICAL QUESTIONS - Guest who are not registered or have trouble with registration must post here for admin support.
This brings me to my suggestion for you: become a registered user. You have actually read the rules. Impressive! I'm sure you are destined to be a valuable site member.
8 More Discussions You Might Find Interesting
1. Programming
Code : function sSaveTFFile
.......................
iRetCode = link (caCurrentFilename, caBackupFilename);
if (iRetCode == -1)
{
ERR_MSG2(LOG_ALERT, "Can't move %s to %s", caCurrentFilename, caBackupFilename);
return(FAILURE);
}
iRetCode = unlink... (6 Replies)
Discussion started by: fermisoft
6 Replies
2. UNIX for Dummies Questions & Answers
Hey guys,
I'm trying to grep for two things out of a file and I got that working but why is it randomly throwing "--" in the output? Is there a simple way to get rid of them? It only seems to do it when the line above what im looking for has numbers in it.
$ egrep -i -B 1... (3 Replies)
Discussion started by: kingdbag
3 Replies
3. Shell Programming and Scripting
Can somebody please help me to remove the last character of a string.??
I have a string variable, in which I dynamically put values in a for loop.I want to remove the last character from the string.
But, the problem is I will not know which character can come in the string (Its inside for... (3 Replies)
Discussion started by: naseert
3 Replies
4. AIX
Hi All
I am trying to copy files present in a partition (server 2) which is mounted to a different server (server 1) as tape drive is connected to it. I ran the below command to copy files within a partition:
svr01:root:/sunfileserver> tar -cvf *
a <foldername>/<filename>/<filename>
a... (4 Replies)
Discussion started by: vathsan
4 Replies
5. UNIX for Dummies Questions & Answers
My script is like
STAMP=$(perl -e '($ss, $mm, $hh, $DD, $MM, $YY) = localtime(time() - 100);
printf "%04d%02d%02d%02d%02d", $YY + 1900, $MM + 1, $DD, $hh, $mm')
touch $STAMP /sasdata/copydata/
find /sasdata/copydata -type f ! -newer /sasdata/copydata/ -print > output3.txt
awk '{print "scp ... (6 Replies)
Discussion started by: tushar_spatil
6 Replies
6. Shell Programming and Scripting
Hello there,
I am new to the awk scripting and getting the following error while running the script. Please can you advise me how to resolve this . Thanks
./sub_del_awk_lat.sh
awk: cmd. line:5: warning: escape sequence `\/' treated as plain `/'
awk: cmd. line:5: sed -n... (6 Replies)
Discussion started by: Sudhakar333
6 Replies
7. Shell Programming and Scripting
Friends,
I'm trying to export a variable as follows. But getting error message "not a valid identifier". However the variable has exact value.
# INSTSALL_PATH=/opt/tmp/Ora10.9/default
# ORAHOME=/apps/opt/Oracle
# export ${ORAHOME}=${INSTSALL_PATH}
-bash: export:... (3 Replies)
Discussion started by: baluchen
3 Replies
8. Shell Programming and Scripting
Hi,
I have a below awk script.
BEGIN {
FS=",";
}
{
system("curl -v -H \"Authorization: SSWS test" -H \"Accept: application/json\" -H \"Content-Type: application/json\" -X POST \"https://tes.test.com/api/v1/users?activate=false\" -d \'{ \"profile\": { \"firstName\": \"" $1 "... (7 Replies)
Discussion started by: Krrishv
7 Replies
LEARN ABOUT DEBIAN
perldoc::search
Perldoc::Search(3pm) User Contributed Perl Documentation Perldoc::Search(3pm)
NAME
Perldoc::Search - Index and Search local Perl Documentation
SYNOPSIS
#######################################
# Command line utility:
#######################################
# This is permanent and needs to be performed only once
# (or if new documentation gets installed).
$ perldig -u
# Then, search:
$ perldig log AND apache AND connect
1) CGI/Carp.pm 2) CGI/Prototype.pm
3) DBI/Changes.pm 4) DBI/Changes.pm
Enter number of choice:
#######################################
# API
#######################################
use Perldoc::Search;
my $searcher = Perldoc::Search->new();
# This is permanent and needs to be performed only once
# (or if new documentation gets installed).
$searcher->update();
# Then, search:
for my $hit ($searcher->search("log AND apache")) {
print $hit->path(), "
";
}
DESCRIPTION
"Perldoc::Search" uses the swish-e engine to index the local Perl documentation. It provides both the command line utility "perldig" and an
API to perform searches on the index. It uses "SWISH::API::Common" as the indexing and search engine.
Most likely, you will want the command line utility "perldig", please check the documentation that comes with it by calling
perldoc perldig
In case you're interested in the API, read on.
METHODS
"my $searcher = Perldoc::Search-$<gt"new()>
Instantiates a searcher object. Usually takes no parameters.
If you like to modify the searched directories or want to pass different options to "SWISH::API::Common", go ahead:
use Config;
my $searcher = Perldoc::Search->new(
dirs => [$Config{installsitearch},
$Config{installsitelib},
$Config{installarchlib},
$Config{installprivlib},
],
swish_options => {
swish_adm_dir => "$ENV{HOME}/.perldig",
}
);
"$searcher-"update()>
Update the index. This operation might take a couple of minutes.
"my @hits = $searcher-"search("log AND apache")>
Perform a search on the index with the given query. Returns a list of result objects.
# Search documents containing
# both "foo" and "bar"
for my $hit ($swish->search("foo AND bar")) {
print $hit->path(), "
";
}
LEGALESE
Copyright 2005 by Mike Schilli, all rights reserved. This program is free software, you can redistribute it and/or modify it under the
same terms as Perl itself.
AUTHOR
2005, Mike Schilli <cpan@perlmeister.com>
perl v5.12.4 2011-09-17 Perldoc::Search(3pm)