Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Extract name from path and change output Post 302966654 by giuliangiuseppe on Monday 15th of February 2016 06:46:13 AM
Old 02-15-2016
Thank you for you suggestion...

do you know how to add the indtermediated step inside the command above?

Best

Giuliano
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

extract a part of a path like (input: /etc/exp/home/bin ====> output: exp)

Hi, I need to make some extraction . with the following input to get the right output. input: /etc/exp/home/bin ====> output: exp and input: aex1234 ===> output: ex Thanks for your help, (4 Replies)
Discussion started by: yeclota
4 Replies

2. UNIX for Dummies Questions & Answers

tar extract to new path

I need to extract a file,which contains the path to a new path. sample tar file tar -tfv class.tar | grep client -rw------- 0/1 99 Jan 22 12:46 2004 /usr/openv/netbackup/db/class/mariner/clients -rw------- 0/1 102 Sep 25 11:33 2007... (1 Reply)
Discussion started by: jouuu
1 Replies

3. Shell Programming and Scripting

fnsplit, Extract filename from path

Hi all, I know this has been covered a lot, I have been searching and reading for hours on the subject, however so far I have been unsuccessful at accomplishing the goal using sed. I know this can be done with parameter expansion (Thanks cfajohnson for a great explanation of parameter... (5 Replies)
Discussion started by: Festus Hagen
5 Replies

4. Shell Programming and Scripting

Extract path within path

Hi, I have a environmental variables, ORACLE_HOME=/u01/oracle/ORCL/db/tech/10.2.0 ORACLE_SID=ORCL Now I need to create a variable and need to extract some part from ORACLE_HOME. I need to get the path from ORACLE_HOME till ORACLE_SID as /u01/oracle/ORCL. I may need to check also... (6 Replies)
Discussion started by: sreejitnair123
6 Replies

5. Shell Programming and Scripting

one liner to extract path from PATH variable

Hi, Could anyone help me in writing a single line code by either using (sed, awk, perl or whatever) to extract a specific path from the PATH environment variable? for eg: suppose the PATH is being set as follows PATH=/usr/bin/:/usr/local/bin:/bin:/usr/sbin:/usr/bin/java:/usr/bin/perl3.4 ... (2 Replies)
Discussion started by: royalibrahim
2 Replies

6. UNIX for Dummies Questions & Answers

How to extract the path

I make this script that uses "strace" to trace programs. The script looks for files that the program opens. It looks like this open("/lib/libtermcap.so.2", O_RDONLY) = 3 open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 3 I want to extract the path without the quotes, preferably using grep and... (4 Replies)
Discussion started by: Samuel Gordon
4 Replies

7. Shell Programming and Scripting

How to extract strings from full path when full path is not fixed

/Path/snowbird9/nrfCompMgrRave1230100920.log.gz:09/20/2010 06:14:51 ERROR Error Message. /Path/snowbird6/nrfCompMgrRave1220100920.log.gz:09/20/2010 06:14:51 ERROR Error Message. /Path/snowbird14/nrfCompMgrRave920100920.log.gz:09/20/2010 06:14:51 ERROR Error Message.... (0 Replies)
Discussion started by: Shirisha
0 Replies

8. Shell Programming and Scripting

how can i change my PATH

1. that you are calling the POSIX UNIX commands located under /usr/xpg4/bin instead of those under /usr/bin 2. that you can run programs from the current directory 3. that your scripts located in the bin directory under your HOME directory can be found and executed from any... (1 Reply)
Discussion started by: vpatel44
1 Replies

9. 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

10. Shell Programming and Scripting

Extract partial string from path.

Hi all, i've a string $DIR=/u/user/NDE/TEST_LOGS/20110622_000005_TEST_11_HD_120/HD/TEST_11_HD_120/hd-12 i need to extract string from 2011.... i.e i need it as 20110622_000005_TEST_11_HD_120 as matched string, and in turn i need to split values 20110622_000005_TEST_11_HD_120 into two.... (6 Replies)
Discussion started by: asak
6 Replies
TILESTACHE-SEED(1)					      General Commands Manual						TILESTACHE-SEED(1)

NAME
tilestache-seed - seed a single layer in your TileStache configuration SYNOPSIS
tilestache-seed [options] zoom... DESCRIPTION
This manual page documents briefly the tilestache-seed command. tilestache-seed seeds a single layer in your TileStache configuration. No images are returned, but TileStache ends up with a pre-filled cache. Bounding box is given as a pair of lat/lon coordinates, e.g. "37.788 -122.349 37.833 -122.246". Output is a list of tile paths as they are created. Configuration, BBox, and Layer options are required. REQUIRED OPTIONS
-c, --config file Path to configuration file. Required. -l, --layer layer Layer name from configuration. Required. -b, --bbox south west north east Bounding box in floating point geographic coordinates. Required. OPTIONS
-h, --help Show summary of options. -p, --padding padding Extra margin of tiles to add around bounded area. Default value is 0 (no extra tiles). -e, --extension extension Optional file type for rendered tiles. Default value is "png". -f, --progress-file file Optional JSON progress file that gets written on each iteration, so you don't have to pay close attention. -q Suppress chatty output, --progress-file works well with this. -i, --include-path Add the following colon-separated list of paths to Python's include path (aka sys.path). -d, --output-directory Optional output directory for tiles, to override configured cache with the equivalent of: {"name": "Disk", "path": <output directory>, "dirs": "portable", "gzip": []}. More information in http://tilestache.org/doc/#caches. --to-mbtiles Optional output file for tiles, will be created as an MBTiles 1.1 tileset. See http://mbtiles.org for more information. --from-mbtiles Optional input file for tiles, will be read as an MBTiles 1.1 tileset. See http://mbtiles.org for more information. Overrides --extension, --bbox and --padding (this may change). --tile-list Optional file of tile coordinates, a simple text list of Z/X/Y coordinates. Overrides --bbox and --padding. --error-list Optional file of failed tile coordinates, a simple text list of Z/X/Y coordinates. If provided, failed tiles will be logged to this file instead of stopping tilestache-seed. --enable-retries If true this will cause tilestache-seed to retry failed tile renderings up to (3) times. Default value is False. -x, --ignore-cached Re-render every tile, whether it is in the cache already or not. SEE ALSO
tilestache-render(1) AUTHOR
TileStache was written by Michal Migurski <mike@stamen.com>. This manual page was written by David Paleino <dapal@debian.org>, for the Debian project (and may be used by others). Nov 10, 2010 TILESTACHE-SEED(1)
All times are GMT -4. The time now is 05:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy