10-15-2012
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Can we print any string in reverse order?
For example:
oracle 16294 1 0 Aug 11 ? 0:00 ora_reco_crepd
oracle 16276 1 0 Aug 11 ? 0:19 ora_dbw0_crepd
I need second last column from this output. (0:00 & 0:19).
I can use awk print $2 after reversing the string.
... (4 Replies)
Discussion started by: malaymaru
4 Replies
2. Shell Programming and Scripting
How to get the reverse parsing work.
I have a strings like
aqw-wef-324-err.log
wefd-324r-err.log
efrt-4rfr.log
.
.
i want to have string upto last hypen.
aqw-wef-324
wefd-324r
... (1 Reply)
Discussion started by: senthilk615
1 Replies
3. Filesystems, Disks and Memory
pls help me in getting that program (1 Reply)
Discussion started by: saikiran
1 Replies
4. Shell Programming and Scripting
Hi,
I am very new to perl.
My question:
How i can reverse the given string using substr function but without using reverse function in perl?
Anybody please help.
thanks,
-Lalit (3 Replies)
Discussion started by: email-lalit
3 Replies
5. Shell Programming and Scripting
I have a file like this:
Dog Cat One ABCDEFGHIJ house
Dog Cat Two ABCDEFGHIJ house
Cat Cat One ABCDEFGHIJ house
Cat Cat Two ABCDEFGHIJ house
I want to look at $3 and if it says "Two" print out the line except reverse $4.
Dog Cat One ABCDEFGHIJ house
Dog Cat Two JIHGFEDCBA house ... (3 Replies)
Discussion started by: dcfargo
3 Replies
6. Programming
Hi all,
I jus wanna print string b after reversing it. but the out put is blank. My code snippet is below. :wall:
int main()
{
char * a, * b;
b = new char;
a = new char;
int len, le;
le = 0;
cout<< " enter your string \n";
cin>> a;
len = strlen(a);
for(int i =... (8 Replies)
Discussion started by: vineetjoshi
8 Replies
7. Shell Programming and Scripting
Guys,
I am trying to find a way to achieve this. I need to print /usr/local/apche/htdocs only from the string /usr/local/apache/htdocs/file.php using the regex. The below did not work. I know a solution with normal cut, I need a way to do this with the awk regex.
awk '/+file.php/' (6 Replies)
Discussion started by: anilcliff
6 Replies
8. Shell Programming and Scripting
Hi All,
I have a String str="Manish". I would like to reverse it.
I know the option to do this in bash is: echo "Manish" | rev
but I have seen an alternate solution somewhere, which states that:
str="Manish" echo $str | awk '{ for(i=length($0);i>=1;i--) printf("%s",substr($0,i,1));... (7 Replies)
Discussion started by: manishdivs
7 Replies
9. Shell Programming and Scripting
Hello,
Can anyone explain for me in this script to reverse the string?
1) the "x=x" part, how it works?
$ echo welcome | awk '{ for(i=length;i!=0;i--)x=x substr($0,i,1);}END{print x}'
$ emoclew2) x seems to be an array at the END, but can it automatically print the whole array in awk?
Thanks... (8 Replies)
Discussion started by: yifangt
8 Replies
10. UNIX for Dummies Questions & Answers
Hi,
how to cut part of a string sing delimiter in reverse
input file
1,2,st-pa-tr-01,2,3,4,
2,3,ff-ht-05,6,7,8
how can i obtain strings till
st-pa-tr
ff-ht i.e cutting the last part og string -01 and -05
Thanks & Regards
Nivi
edit by bakunin: changed thread title (typo) (3 Replies)
Discussion started by: nivI
3 Replies
LEARN ABOUT DEBIAN
tilestache-seed
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)