Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Help with cp command using relative path? Post 302955695 by Don Cragun on Sunday 20th of September 2015 08:04:20 PM
Old 09-20-2015
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

vi - replacing a relative path with absolute path in a file

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

getting full path from relative path

given a relative path, how do i convert it into a full one. i.e. if i am in /home/polypus and i am given foo/bar then to get a full path i can just concatinate it with pwd, but what if i am given "../mama" how do i programmatically convert: /home/polypus and ../mama into ... (4 Replies)
Discussion started by: polypus
4 Replies

3. Shell Programming and Scripting

Finding relative path of a file

I have to relatively get the path of a file to use it in the script. The directory structure is /export/opt/XTools/ and under this there are several version directories - 1.0_A0, 1.0_A1, 1.0_A2 etc.,. The actual file is under these directories: installscript.sh My script should pickup the... (4 Replies)
Discussion started by: chiru_h
4 Replies

4. UNIX for Dummies Questions & Answers

Help with absolute path and relative path

I'm having problems accessing the Knoppix software on my current computer and the replacement CD I ordered hasn't arrived yet. I have a guess at what the answer would be for this question but I am not sure as I cannot test it with the software. I have to create a directory called class, and... (1 Reply)
Discussion started by: mzero
1 Replies

5. Shell Programming and Scripting

how to read the relative path

suppose i ahve a shell script Nsdnet.sh inside a directory /dialp/Release/bin another file nsdnet_file.csv is under the same directory. Now in the shell script i have call a java file, which reads the csvfile from the commandline. Now when i run the file as $ ./Nsdnet.sh ./nsdnet_file.csv then... (5 Replies)
Discussion started by: priyanka3006
5 Replies

6. Shell Programming and Scripting

absolute path for a script ran with relative path

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

7. Shell Programming and Scripting

How to change Absolute path to Relative path

Hello, I have a doubt:- --------------------- Current script:- ################################################################################################ prefix=user@my-server: find . -depth -type d -name .git -printf '%h\0' | while read -d "" path ; do ( cd "$path" || exit $?... (4 Replies)
Discussion started by: sahil_jammu
4 Replies

8. UNIX for Dummies Questions & Answers

How to convert relative path to absolute path?

Hello Everyone, I want to convert Relative Path - /home/stevin/data/APP_SERVICE/../datafile.txt to Absolute Path - /home/stevin/data/datafile.txt Is there a built-in tool in Unix to do this or any good ideas as to how can I implement this. -Steve (5 Replies)
Discussion started by: qwarentine
5 Replies

9. Shell Programming and Scripting

Relative path not safe

Hallo everyone, I am running an SQL-Script over KShell-Script. Thus, in the KShell-Script there are these lines: WORKPATH=$PWD/work EXPORTDIR=export_meine_datei_bitte EXPORTPATH=${WORKPATH}/${EXPORTDIR} ... db2 connect to ${DBNAME} || die "can not open database connection" db2... (9 Replies)
Discussion started by: ratnalein88
9 Replies

10. UNIX for Beginners Questions & Answers

Convert Relative path to Absolute path, without changing directory to the file location.

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
HAMEXAM(1)						      General Commands Manual							HAMEXAM(1)

NAME fccexam - Study guide for USA FCC commercial radio license examinations.
SYNOPSIS
fccexam [option] DESCRIPTION
fccexam presents questions in random order from the selected question pool, and terminates when all questions have been answered correctly. The session may be interrupted with ^C, and resumed later. Some questions refer to diagrams. The diagrams for the selected question pool are displayed in a separate window using eog(1). Licenses are issued by the Federal Communications Commission (FCC), but examinations are administered by COLEM examiners. See http://wire- less.fcc.gov/commoperators/index.htm?job=home for information regarding USA commercial radio licenses. OPTIONS
If no pool is specified, usage, version, and help information is displayed. To initialize the question pool, one of the element numbers may be specified: 1 Element 1, Basic radio law and operating practice. 3 Element 3, General Radiotelephone; Electronic fundamentals and techniques required to adjust, repair, and maintain radio transmit- ters and receivers. 5 Element 5, Radiotelegraph operating procedures and practices. 6 Element 6, Advanced technical, legal, and other matters applicable to the operation of all classes of radiotelegraph stations. 7 Element 7, GMDSS Radio Operating Practices. 7R Element 7R, Restricted GMDSS Radio Operating Practices. 8 Element 8, Ship Radar Techniques. 9 Element 9, GMDSS Radio Maintenance Practices and Procedures. The following abbreviations may be used to select multiple elements: T1 First Class Radiotelegraph: elements 1, 5, 6. T2 Second Class Radiotelegraph: elements 1, 5, 6. T3 Third Class Radiotelegraph: elements 1, 5. GROL General Radiotelephone Operator License: elements 1, 3. GROL+ General Radiotelephone Operator License + Radar: elements 1, 3, 8. MROP Marine Radio Operator Permit: element 1. GMDSS Global Maritime Distress Safety System Radio Operator: elements 1, 7. GMDSS+ GMDSS Radio Maintainer + Radar: elements 1, 7, 8, 9. RGMDSS Restricted GMDSS Radio Operator: elements 1, 7R. q The question pool is selected interactively. This is needed when starting the application from an icon. FILES
A directory ~/.fccexam is created to hold the names of the questions which remain to be answered correctly. SEE ALSO
For more information regarding licensing, ref. http://wireless.fcc.gov/commoperators/index.htm?job=home For information regarding amateur radio licensing (ham radio), see the package hamexam. COPYRIGHT
fccexam is Copyright (c) 2011-2012 John Nogatch <jnogatch@yahoo.com>. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. BUGS
The question pools, and number of questions required, are sometimes modified; ref. http://wireless.fcc.gov/commopera- tors/index.htm?job=question_pools Radiotelegraph Operator licenses also require Morse code proficiency elements, which are not provided by fccexam. fccexam does not automatically update the question pools from the FCC Web site. HAMEXAM(1)
All times are GMT -4. The time now is 06:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy