Sponsored Content
Top Forums Shell Programming and Scripting full path of a file situated either in parent's dir. or parent's parent dir. so on... Post 302218048 by Franklin52 on Thursday 24th of July 2008 07:24:07 AM
Old 07-24-2008
No duplicate or cross-posting, read the rules.

Proceed here:

https://www.unix.com/unix-dummies-que...#post302218015

Thread closed.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How do I define a particular dir in PATH variable and then unset that dir

How do I define a particular dir in front of PATH variable and then run some job and then at the end of job SET the PATH variable to original? in a script, WILL something like this work: ORIG_PATH=$PATH export PATH=/dir1/dir2:$PATH RUN SOME JOBS ..... unset PATH EXPORT... (2 Replies)
Discussion started by: Hangman2
2 Replies

2. Shell Programming and Scripting

Rename a file after the name of its parent dir

Started a thread in beginners but I thought someone from this forum may have an idea as well. Thanks! EDITED BY REBORG (3 Replies)
Discussion started by: robotsbite
3 Replies

3. Shell Programming and Scripting

Get parent directory of a file

In shell how would I get the parent directory of a file. E.g. I feed this in: /path/to/textfile.txt And get just: /path/to Thanks (2 Replies)
Discussion started by: pcwiz
2 Replies

4. Windows & DOS: Issues & Discussions

DOS Dir - listing of full path and timestamp

Hi, (Apologies, I'm sure I'm not the first person to raise this question but so far in my searches haven't found a good answer). I would like to output a listing per line of filename (including full path) and 'last updated' timestamp. e.g: Z:\dir1\file1.txt 01/02/2010 10:43... (5 Replies)
Discussion started by: GM_AIX
5 Replies

5. Shell Programming and Scripting

forking a child process and kill its parent to show that child process has init() as its parent

Hi everyone i am very new to linux , working on bash shell. I am trying to solve the given problem 1. Create a process and then create children using fork 2. Check the Status of the application for successful running. 3. Kill all the process(threads) except parent and first child... (2 Replies)
Discussion started by: vizz_k
2 Replies

6. Shell Programming and Scripting

How to list all Subdirectories and files with its full path in a parent directory?

How to list all Subdirectories and files with its full path in a parent directory? (1 Reply)
Discussion started by: johnveslin
1 Replies

7. Shell Programming and Scripting

how to get the scripts full dir path

lyang0@lyang0-OptiPlex-755:~$ ./test.sh . lyang0@lyang0-OptiPlex-755:~$ cat test.sh #!/bin/bash echo `dirname $0` lyang0@lyang0-OptiPlex-755:~$ pwd /home/lyang0 it doesn't get "/home/lyang0" and only when run /home/lyang0/test.sh it will get, but how can I do, then it can get the real... (8 Replies)
Discussion started by: yanglei_fage
8 Replies

8. Shell Programming and Scripting

Moving files from parent path to multiple child path using bash in efficient way

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

9. UNIX for Beginners Questions & Answers

Rename the file name from Parent directory

Hi All, Just started learning unix and stuck into below issue. Suppose i have folder structure as below. Dir1/Dir2/Dir3/File1.msg I am looking to rename the file name from File1.msg to File2.msg but from the parent Dir1 From Dir3 i can easily run the command like mv File1.msg... (2 Replies)
Discussion started by: Gurjeet Singh
2 Replies

10. UNIX for Beginners Questions & Answers

Listing files with their parent dir?

Hi and good day, This string lets me find the html files: ls -R /Volumes/LC3/Sites/chu | grep "html" But how to list the files with their parent dir 'attached' to them: For example: n/fofo.html n/siso.html m/… / Any assistance would be greatly appreciated! With best regards,... (5 Replies)
Discussion started by: OmarKN
5 Replies
QT2KDOC(1)						     KDOC Documentation System							QT2KDOC(1)

NAME
qt2kdoc -- Generates cross-reference file suitable for use with KDOC from Qt Toolkit HTML documentation. SYNOPSIS
qt2kdoc [-u URL] [-o <destdir>] [-z] <path to qt html> DESCRIPTION
qt2kdoc generates a kdoc(1) cross-reference file from the classes.html file that is included with the Qt GUI Toolkit HTML documentation. The resulting file can be used to cross-reference documentation generated with KDOC for other classes with the Qt HTML documentation. OPTIONS
--url <url>, -u <url> The URL by which the Qt documentation can be accessed. This will allow other libraries to link to the Qt documentation. --outdir <path>, -o <path> The directory where the generated index file will be written. --compress, -z Compress the generated index with gzip. KDOC can read these compressed index files. EXAMPLES
qt2kdoc -u "http://www.mydomain/src/qthtml/" $HOME/web/src/qthtml ENVIRONMENT
KDOCLIBS If set, it is used as the default output path. It is overridden by the --outdir option. FILES
classes.html, functions.html The files from which information about the Qt library is read. They are parsed by qt2kdoc. qt.kdoc A kdoc(1) cross-reference file that will be generated by qt2kdoc and can be used to link documentation generated by kdoc with the Qt documentation. SEE ALSO
This script is a utility for kdoc(1). BUGS
Dependent on format of Qt documentation. AUTHOR
Sirtaj S. Kang <taj@kde.org>, 1998. 2.0a54 2002-03-18 QT2KDOC(1)
All times are GMT -4. The time now is 04:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy