11-30-2005
To know the path of a file..
Hi,
I'm using a HP-UX machine and i would like to know if there is any command by which i can search for a file(i don't know the complete filename) thats somewhere in the subdirectories or in a different directory structure.
Thanks in advance...
abey
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I have a file with about 60 lines of path:
app-defaults/boxXYZ.......
I want to change this to /my/path/goes/here/app-defaults/boxXYZ, but of course vi doesn't like the regualr :s/old/new/ command.
Is there any other quick way to do this?
Thanks ;) (2 Replies)
Discussion started by: Yinzer955i
2 Replies
2. Shell Programming and Scripting
hi every one ,
here is my problem !!
i have to run my script from an account and update the result in a xml file located on a different account. i use existing ssh keys to do it remotely
for example the tags looks like this
<PropertyValueList... (1 Reply)
Discussion started by: kiranreddy1215
1 Replies
3. UNIX for Dummies Questions & Answers
using OS X and the Terminal, I'd like to find all locked files in a specified directory, unlock them, and print a list of those files that were unlocked
how can I do this?
I'm familiar with chflags nouchg for unlocking one file but not familiar with unix enough to do what I'd like.
Thanks! (0 Replies)
Discussion started by: alternapop
0 Replies
4. Shell Programming and Scripting
Hi,
I have a file abcd.txt which has contents in the form of full path file names i.e.
$home> vi abcd.txt
/a/b/c/r1.txt
/q/w/e/r2.txt
/z/x/c/r3.txt
Now I want to retrieve only the directory path name for each row
i.e
/a/b/c/
/q/w/e/
How to get the same through shell script?... (7 Replies)
Discussion started by: royzlife
7 Replies
5. Shell Programming and Scripting
Hi All,
The script below read the path and searches for the directories/subdirectories and for the files. If files are found in the sub directories then read the content of the all files and put the content in csv(comma delimted) format and the call the write to xml function to write the
std... (1 Reply)
Discussion started by: Optimus81
1 Replies
6. UNIX for Advanced & Expert Users
Need help on moving .csv file from unix to windows file path. (1 Reply)
Discussion started by: lakshmanraok117
1 Replies
7. UNIX for Advanced & Expert Users
Currently I am using this laborious command
lvdisplay | awk '/LV Path/ {p=$3} /LV Name/ {n=$3} /VG Name/ {v=$3} /Block device/ {d=$3; sub(".*:", "/dev/dm-", d); printf "%s\t%s\t%s\n", p, "/dev/mapper/"v"-"n, d}'
Would like to know if there is any shorter method to get this mapping of... (2 Replies)
Discussion started by: royalibrahim
2 Replies
8. UNIX for Beginners Questions & Answers
Hi All,
I just want to move the file from one path to another using .sh file in EBS oracle apps.
I have written in .prog but i need in .sh (file.sh)
XXC_SAMPLE_FILE.prog
#!/bin/bash
# XXC_SAMPLE_FILE.prog
DATE_TIME=`date | awk {' print $1"_"$2"_"$3"_"$4 '}`
echo "parse_parms"
... (4 Replies)
Discussion started by: Mist123
4 Replies
9. UNIX for Beginners Questions & Answers
Hello,
I am creating a file with all the source folders included in my git branch, when i grep for the used source, i found source included as relative path instead of absolute path, how can convert relative path to absolute path without changing directory to that folder and using readlink -f ? ... (4 Replies)
Discussion started by: Sekhar419
4 Replies
10. UNIX for Beginners Questions & Answers
I'm curious to know how do I add an empty log file (test1.log) to an existing text file to monitor all the changes made to a.txt.
Is this expression
export PATH=$PATH:/home/test1.log
right to be added to the text file a.txt? (5 Replies)
Discussion started by: TestKing
5 Replies
LEARN ABOUT DEBIAN
odffilesearch
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)