05-09-2002
Its not homework or an assignment. The reason I asked the question was because i don't know the answer and I was hoping somebody might be able to help, or at least point me the right direction.
ambrose
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:
I have a requirement as below:
I have some standard Unix commands modified and kept them in a directory say /usr/clsh/bin. For example I have a script named "ls" kept here which is modified version of "ls" (say it always gives long listing i.e. ls -l).
When any user logs on and types... (2 Replies)
Discussion started by: ramesh_samane
2 Replies
3. Shell Programming and Scripting
I have a script in which i want to print absolute path of the same script irrespective of path from where i run script.
I am using
test.sh:
echo "pwd : `pwd`"
echo "script name: $0"
echo "dirname: `dirname $0`"
when i run script from /my/test/dir/struct as ../test.sh the output i... (10 Replies)
Discussion started by: rss67
10 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,
Can you please provide some pointers to move files from Base path to multiple paths in efficient way.Folder Structure is already created.
/Path/AdminUser/User1/1111/Reports/aaa.txt to /Path/User1/1111/Reports/aaa.txt
/Path/AdminUser/User1/2222/Reports/bbb.txt to... (6 Replies)
Discussion started by: karthikgv417
6 Replies
6. Shell Programming and Scripting
I want to pattern match only path part from below and replace them with new path string.
LoadModule jk_module /fldrA/fldrBaf/fldrCaa/modules/mod_jk.so
JkWorkersFile /fldrA/fldrBaf/fldrCaa/config/OHS/ohs1/workers.properties
JkLogFile... (4 Replies)
Discussion started by: kchinnam
4 Replies
7. Shell Programming and Scripting
Hi experts,
I have multiple file names ending with .jsp located in $SOME_DIR, $SOME_DIR/f1/,$SOME_DIR/f2/test,$SOME_DIR/f3/fa
and there are equivalent class files in $SOME_DIR/WEB-INF/classes/_pages,$SOME_DIR/WEB-INF/classes/_pages/_f1,... (0 Replies)
Discussion started by: oraclermanpt
0 Replies
8. 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
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. Programming
i have make file which i try to make them generic
but it keeps to compline it missing include directory
this is the makefile :
CXX=g++
CPPFAGS= -Wall -O0 -g -std=c++14
INCLUDES = -I/home/vagrant/libuv/include -Isrc
LIBS_DIRS = -L/home/vagrant/libuv/build
LDFLAGS=... (7 Replies)
Discussion started by: umen
7 Replies
LEARN ABOUT DEBIAN
findfiles
findfiles(1) PythonCard Developers findfiles(1)
NAME
findfiles - Utility to locate files containing specific content
SYNOPSIS
findfiles [switches]
DESCRIPTION
Very often when you are programming in any programming or scripting language, you want to find out how a particular function works or
whether a particular property is settable, or any of a number of other questions. In many cases, you can find the answers to your questions
by looking at the source code of the application or tool you're using. This is sometimes referred to as "code shopping," particularly when
what you really hope to find is a method that does exactly what you want to do. The PythonCard findfiles tool is designed to support you
in these efforts.
Type in a string for which to search, tell findfiles the directories (yes, you can have more than one) in which to search for files con-
taining that string, and send findfiles off to locate files with that specific content. Scroll through the list of files, each with a line
reproducing part of the located line for each occurrence in the file, find the one you think is what you are looking for, and double-click
the line. Voila! The PythonCard codeEditor tool opens and scrolls instantly to the line you've selected.
SWITCHES
-p Show property editor
-m Show message watcher
-l Enable logging
-s Show shell
-m Show namespace
-d Show debug menu
REGULAR EXPRESSIONS
The findfiles utility uses classic Unix grep (regular expression) searches.
The grep utility uses a technique called regular expression matching to locate information. In regular expressions, some characters have a
special meaning. If you want to search for any of these special characters in the strings you supply in findfiles, you'll have to escape
them by preceding them with a backward slash () character.
While there are many such characters in regular expressions, the ones with which you will need to be most careful are: question mark (?),
asterisk (*), addition/concatenation operator (+), pipe or vertical bar (|), caret (^) and dollar sign ($). To search for a dollar sign in
the target directories, for example, put "$" into the search field. (Putting in a $ by itself will crash findfiles fairly reliably.)
On a Debian system, you can see the manpages for grep(1) or regex(7) for more information on grep and regular expressions.
NOTES
The findfiles utility also provides additional functionality that is not discussed in this manpage, because it is somewhat difficult to
completely describe usage of a GUI program in a text-based manpage. For more detailed usage instructions or for more information on the
PythonCard GUI framework in general, you should install the pythoncard-doc package and take a look at the various walk-throughs, tutorials
and samples included with it.
Once the pythoncard-doc package is installed, the documentation is installed to /usr/share/doc/pythoncard-doc, and is also available via
Debian's doc-base infrastructure - find it in the Devel section using dwww(1), doc-central(1) or dhelp(1).
If you would rather not install the pythoncard-doc package, you can find essentially the same information on the PythonCard website:
http://pythoncard.sourceforge.net
BUGS
Although it is considered to be stable, this is still development-level software.
Please report bugs in this or any PythonCard component to the Debian Bug Tracking system using reportbug(1).
AUTHOR
This manpage was written by Kenneth J. Pronovici <pronovic@debian.org>, for use by the Debian project. Content was based on previously-
existing PythonCard documentation in other forms.
SEE ALSO
codeEditor(1), resourceEditor(1),
PythonCard GUI Framework August 2003 findfiles(1)