Howdy
I have this directory structure ...
eep
eepaptest
eepfatest
eepgltest
eep.old
eeppoptest
ehf
ehfaptest
ehfgltest
ehp
ehpgltest
I want to find files in these directories, but I want to exclude eep, ehf & ehp.
Cany anyone help with the correct command ?? (1 Reply)
Hi Forum.
I'm trying to write a script that finds and deletes files that are older than 300 days. The script will read a table that contains the following 3 columns:
1st col: “Y” means sub-directory scan; "N" means no subdirectory scan
2nd col: sub-directory location
3rd col: File prefix... (7 Replies)
Hi All,
First my OS version is:
ksh:0$ uname -a
SunOS 5.9 Generic_122300-48 sun4u sparc SUNW,Sun-Fire-V440
I want to exclude the following DIR(./country111) in my search pattern:
ksh:0$ find . -name "*.tar"
./country111/COUNTRY_BATCH-801.tar
./country111/COUNTRY_BATCH-802.tar... (3 Replies)
I had a Shell script that removes the files that are in a directory older than the specified days.
find /test/files -mtime +10
I would like to add another condition to the find command above that is to exclude any file starting with ‘CGU'
Thanks (1 Reply)
The below 'ls' command will list down files with extensions and suppress the ones with no extension
ls |grep "\\." But this dosen't work when I apply the same logic using 'find' command
find . -type f |grep "\\." I need help on how this logic can be implemented using 'find' command (3 Replies)
hello,
i want to use "-depth" in command "find" and want to exclude a directory.
the find command should work in HP-UX and Linux.
i see in the find man page:
-prune
If -depth is not given, true; do not descend the current directory.
If -depth is given, false; no effect.
-depth... (3 Replies)
Hi All,
I am trying to execute the following tar command with two --exclude options to suppress extract of the two directories specified.
Do I need to single quote the directory paths ??
Many thanks for your help.
The relevant code excerpt from the script is:
cd /var/www/${SITE}
... (7 Replies)
How can i tweak the below find command to exclude directory/s -> "/tmp/logs"
find . -type f \( ! -name "*.log*" ! -name "*.jar*" \) -printNote: -path option/argument does not work with the version of find that i have.
bash-3.2$ uname -a
SunOS mymac 5.10 Generic_150400-26 sun4v sparc sun4v (7 Replies)
Hi Folks,
I want to run the below command and to exclude the specific path like /var/test/support/... . How to achieve using the below command
find / -type f \( –perm –4000 –o –perm –2000 \) –print
-Siva
Please do not use FONT tags inside CODE tags. And, there is usually no reason to... (2 Replies)
Can you please help tweak the below command to exclude all directories with the name "logs" and "tmp"
find . -type f \( ! -name "*.tar*" ! -name "*.bkp*" \) -exec /usr/xpg4/bin/grep -i "user_1" /dev/null {} + >result.out
bash-3.2$ uname -a
SunOS mymac 5.10 Generic_150400-26 sun4v sparc sun4v... (9 Replies)
Discussion started by: mohtashims
9 Replies
LEARN ABOUT DEBIAN
padre::util::win32
Padre::Util::Win32(3pm) User Contributed Perl Documentation Padre::Util::Win32(3pm)NAME
Padre::Util::Win32 - Padre Win32 API Functions
DESCRIPTION
The "Padre::Util::Win32" package provides an XS wrapper for Win32 API functions
All functions are exportable and documented for maintenance purposes, but except for in the Padre core distribution you are discouraged in
the strongest possible terms from using these functions, as they may be moved, removed or changed at any time without notice.
FUNCTIONS
"GetLongPathName"
Padre::Util::Win32::GetLongPathName($path);
Converts the specified path $path to its long form. Returns "undef" for failure, or the long form of the specified path
"Recycle"
Padre::Util::Win32::Recycle($file_to_recycle);
Move $file_to_recycle to recycle bin Returns "undef" (failed), zero (aborted) or one (success)
"AllowSetForegroundWindow"
Padre::Util::Win32::AllowSetForegroundWindow($pid);
Enables the specified process $pid to set the foreground window via "SetForegroundWindow"
http://msdn.microsoft.com/en-us/library/ms633539(VS.85).aspx <http://msdn.microsoft.com/en-us/library/ms633539(VS.85).aspx>
"ExecuteProcessAndWait"
Padre::Util::Win32::ExecuteProcessAndWait(
directory => $directory,
file => $file,
parameters => $parameters,
show => $show,
)
Execute a background process named "$file $parameters" with the current directory set to $directory and wait for it to end. If you set
$show to 0, then you have an invisible command line window on win32!
"GetCurrentProcessMemorySize"
Padre::Util::Win32::GetCurrentProcessMemorySize;
Returns the current process memory size in bytes
"GetLastErrorString"
Padre::Util::Win32::GetLastError;
Returns the error code of the last Win32 API call.
The list of error codes could be found at http://msdn.microsoft.com/en-us/library/ms681381(VS.85).aspx <http://msdn.microsoft.com/en-
us/library/ms681381(VS.85).aspx>.
"GetLastErrorString"
Padre::Util::Win32::GetLastErrorString;
Returns the string representation for the error code of the last Win32 API call.
COPYRIGHT
Copyright 2008-2012 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 itself.
The full text of the license can be found in the LICENSE file included with this module.
perl v5.14.2 2012-06-27 Padre::Util::Win32(3pm)