10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I am running a command that is part of a script and this is what I am getting when it is sorted by the command:
command:
ls /tmp/test/*NDMP*.z
/tmp/test/CARS-GOLD-NET_CHROMJOB-01-XZ-ARCHIVE-NDMP.z
/tmp/test/CARS-GOLD-NET_CHROMJOB-01-XZ-NDMP.z... (2 Replies)
Discussion started by: newbie2010
2 Replies
2. Linux
Hi,
I am trying to merge two csv files based on matching criteria:
File description is as below :
Key_File :
000|ÇÞ|Key_HF|ÇÞ|Key_FName
001|ÇÞ|Key_11|ÇÞ|Sort_Key22|ÇÞ|Key_31
002|ÇÞ|Key_12|ÇÞ|Sort_Key23|ÇÞ|Key_32
003|ÇÞ|Key_13|ÇÞ|Sort_Key24|ÇÞ|Key_33
050|ÇÞ|Key_15|ÇÞ|Sort_Key25|ÇÞ|Key_34... (3 Replies)
Discussion started by: PK29
3 Replies
3. Shell Programming and Scripting
There are 4 files inside one folder matching criteria i.e. File name = ABCJmdmfbsjopXXXXXXX_mm-dd-yyyy_XXX.data
Here is the Code which find the files matching criteria:-
TS=`date +"%m-%d-%Y"`| for fname in `find . -name "ABCJmdmfbsjop???????_${TS}*.data"`
do # Matching File Processing Code.... (1 Reply)
Discussion started by: lancesunny
1 Replies
4. Shell Programming and Scripting
i have a directory which consist of multiple files out of which there are some files that has -e in their name.
I want to write a script that will change all those file-name to -l
example there are some files with name :
file1-e.wav
file2-e.wav
file3-english-e.wav
file-4-e.wav
... (3 Replies)
Discussion started by: mukulverma2408
3 Replies
5. Shell Programming and Scripting
Dear Friends,
I am looking for a way to replace a string (multiple lines) starting with something and ending with something (these two values do not change) with blank. Basically I want to delete this code injection accross many sites and folders.
Search Code (across files and folders) that... (2 Replies)
Discussion started by: libras
2 Replies
6. UNIX for Dummies Questions & Answers
I have a requirement where in i need to select records right below the search criteria
qwertykeyboard white
10 20 30
30 40 50
60 70 80
qwertykeyboard black
40 50 60
70 90 100
qwertykeyboard and white are headers separated by a tab.
when i execute my script..i would be searching... (4 Replies)
Discussion started by: vinnu10
4 Replies
7. Shell Programming and Scripting
Hello to all,
I have this file
2002 1 23 0 0 2435.60 131.70 5.60 20.99 0.89 0.00 285.80 2303.90
2002 1 23 15 0 2436.60 132.90 6.45 21.19 1.03 0.00 285.80 2303.70
2002 1 23 ... (6 Replies)
Discussion started by: joggdial3000
6 Replies
8. Shell Programming and Scripting
Hi all,
i would like to create a script that move and rename files from all the subdirectories of a given directory to others subdirectories of the same directory based on "matching" criteria in the "from" and "to" parameters.
Example:
Begin script
from /home/test/1_T_2008* move to... (3 Replies)
Discussion started by: braidomik
3 Replies
9. AIX
Hello everyone,
My OS is AIX 5.2
I would like some help in getting command syntax that does the following:
1. Searches simultaneously several directories downward;
2. Checks every subdirectory in each directory (and so on...) for file names that contain certain characters such as “~”, start... (0 Replies)
Discussion started by: Hopeful
0 Replies
10. Shell Programming and Scripting
Hello,
I'm spendind hours trying to figure out how a script could remove files and folders older than 30days in a given volume (/dataVolumes/Booba.1.0).
Within this volume, all users have their personal folder that starts with "RC-..", so the script should skip them for deletion.
I will... (4 Replies)
Discussion started by: H3001
4 Replies
ODFFILESEARCH(1p) User Contributed Perl Documentation ODFFILESEARCH(1p)
NAME
odffilesearch - File selection by keywords
SYNOPSIS
odffilesearch -R "D:Documents*.odt" openoffice desktop XML
produces the list of the ODF Text documents present in the given
directory and its subdirectories, and containing the words
"openoffice", "desktop" AND "XML"
odffilesearch -command "rm -f %f" "*.ods *.odt" lost dismiss cancel
executes the "rm -f filename" (i.e. deletes the file in a Unix system)
for each ODT or ODS file present in the current directory
and containing the words "lost", "dismiss" AND "cancel"
USAGE
odffilesearch [-options] <file filter> <keyword list>
DESCRIPTION
This utility allows the user to retrieve a list of files matching
a given set of keywords or regular expressions. A file is selected
when it contains, in its text and/or in its metadata (title, subject,
keywords or description), all the given search strings.
The selected files are echoed to the standard output (one file per
line), so this utility can be used as a filter piping its results
to another program. Alternatively, a given shell command can be
launched by the script each time a file matches, allowing on-the-fly
processing of the selected documents.
The files filter may content one or more space-separated paths.
Each path may content jokers. So it's possible to explore several
directories and/or several filename patterns.
All the arguments after the file filter are processed as search
criteria.
OPTIONS
-R -recursive
include the subdirectories of each given search directory
-verbose -trace -debug
echo some processing comments
-warnings
activate the warning messages of the OpenOffice::OODoc API
-log <file>
like -verbose, but then messages are sent to the given file
and don't pollute the standard output
-result <file>
-output <file>
send the list of matching files to the given file and not
to the standard output
-criteria <file>
get search criteria from a file (one per line); the loaded
search keywords may be combined with additional criteria
passed with the command line, if any.
-command <command> -exec <command>
execute a shell command for each matching file ; if the
command string contains "%f", this substring is replaced
with the name of the selected file ; if this option is
provided, the selection list is not echoed to the standard
output ; if -verbose is on, the value returned by the
command is echoed
-encoding <encoding>
selects the user's character set ; this option is mandatory
if one or more search criteria contain characters not
belonging to the default character set
perl v5.14.2 2008-05-04 ODFFILESEARCH(1p)