03-30-2009
Quote:
Originally Posted by
Ken N
Dear Administrator,
Rule No.5 for unregistered users is impossible to comply with because Google search thinks that any Unix command that I search for is an attack from a virus and blocks the search. I managed to find this site from an external search, and it looks really useful.
Do you have any hints?
Thanks
Ken N
Hi Ken,
Search on this site works perfectly. Sorry, but I have no idea what you are talking about. I just searched for "awk" and other unix commands, and it works flawlessly.
https://www.unix.com/cfmgoogle.php?cx...sa=Search#1080
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
file::find::rule::vcs
File::Find::Rule::VCS(3pm) User Contributed Perl Documentation File::Find::Rule::VCS(3pm)
NAME
File::Find::Rule::VCS - Exclude files/directories for Version Control Systems
SYNOPSIS
use File::Find::Rule ();
use File::Find::Rule::VCS ();
# Find all files smaller than 10k, ignoring version control files
my @files = File::Find::Rule->ignore_vcs
->file
->size('<10Ki')
->in( $dir );
DESCRIPTION
Many tools need to be equally useful both on ordinary files, and on code that has been checked out from revision control systems.
File::Find::Rule::VCS provides quick and convenient methods to exclude the version control directories of several major Version Control
Systems (currently CVS, subversion, and Bazaar).
File::Find::Rule::VCS implements methods to ignore the following:
CVS
Subversion
Bazaar
In addition, the following version control systems do not create directories in the checkout and do not require the use of any ignore
methods
SVK
Git
METHODS
ignore_vcs
# Ignore all common version control systems
$find->ignore_vcs;
# Ignore a specific named version control systems
$find->ignore_vcs($name);
# Ignore nothing (silent pass-through)
$find->ignore_vcs('');
The "ignore_vcs" method excludes the files for a named Version Control System from your File::Find::Rule search.
If passed, the name of the version control system is case in-sensitive. Names currently supported are 'cvs', 'svn', 'subversion', 'bzr',
and 'bazaar'.
As a convenience for high-level APIs, if the VCS name is the defined null string '' then the call will be treated as a nullop.
If no params at all are passed, this method will ignore all supported version control systems. If ignoring every version control system,
please note that any legitimate directories called "CVS" or files starting with .# will be ignored, which is not always desirable.
In widely-distributed code, you instead should try to detect the specific version control system used and call ignore_vcs with the specific
name.
Passing "undef", or an unsupported name, will throw an exception.
ignore_cvs
The "ignore_cvs" method excluding all CVS directories from your File::Find::Rule search.
It will also exclude all the files left around by CVS after an automated merge that start with '.#' (dot-hash).
ignore_rcs
The "ignore_rcs" method excluding all RCS directories from your File::Find::Rule search.
It will also exclude all the files used by RCS to store the revisions (end with ',v').
ignore_svn
The "ignore_svn" method excluding all Subversion (".svn") directories from your File::Find::Rule search.
ignore_bzr
The "ignore_bzr" method excluding all Bazaar (".bzr") directories from your File::Find::Rule search.
ignore_git
The "ignore_git" method excluding all Git (".git") directories from your File::Find::Rule search.
ignore_hg
The "ignore_hg" method excluding all Mercurial/Hg (".hg") directories from your File::Find::Rule search.
TO DO
- Add support for other version control systems.
- Add other useful VCS-related methods
SUPPORT
Bugs should always be submitted via the CPAN bug tracker
<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=File-Find-Rule-VCS>
For other issues, contact the maintainer
AUTHOR
Adam Kennedy <adamk@cpan.org>
SEE ALSO
<http://ali.as/>, File::Find::Rule
COPYRIGHT
Copyright 2005 - 2010 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
perl v5.10.1 2010-10-06 File::Find::Rule::VCS(3pm)