Sponsored Content
Top Forums Shell Programming and Scripting Removal of file extension question Post 302506983 by sgruenwald on Tuesday 22nd of March 2011 11:51:02 AM
Old 03-22-2011
You can delete the filename extensions easily by doing:
Code:
for i in *.txt; do mv $i ${i%%.*}; done

If you want to put some file extensions back to files, copy the files into their own directory (for precaution) and put file extensions on them like this (.txt in this case):
Code:
for i in *; do mv $i $i.txt; done


Last edited by Franklin52; 03-23-2011 at 04:58 AM.. Reason: Please use code tags, thank you
 

10 More Discussions You Might Find Interesting

1. Solaris

UNIX File removal without conformation

I need to remove permanently some 3 GB of temp folder which contains Log file, simulation files from my disk. if i use "rm - rf <filename>" command it asks about conformation for accessing each folder and for removing every file and giving yes to every message in terminal window is very... (2 Replies)
Discussion started by: rajharvijay
2 Replies

2. UNIX for Dummies Questions & Answers

Job Watcher Removal Question

All- What is the command to remove/delete a job watcher from production. Thanks, Sailor58 (2 Replies)
Discussion started by: Sailor58
2 Replies

3. Shell Programming and Scripting

Removal of Duplicate Entries from the file

I have a file which consists of 1000 entries. Out of 1000 entries i have 500 Duplicate Entires. I want to remove the first Duplicate Entry (i,e entire Line) in the File. The example of the File is shown below: 8244100010143276|MARISOL CARO||MORALES|HSD768|CARR 430 KM 1.7 ... (1 Reply)
Discussion started by: ravi_rn
1 Replies

4. Shell Programming and Scripting

Removal of carriage returns from a comma delimited file

Hi, I have a file which is having some carriage return in one of the field for which single line is coming in multiple lines. I want to combine all those multiple lines of that field into one line. Eg: Input: Id, Name, Location, Comments, Dept 2, John, US, I am from US. I... (5 Replies)
Discussion started by: mahish20
5 Replies

5. Shell Programming and Scripting

Help with removal of blank spaces in a file

Hello.. I have a text file. I want to remove all the blank spaces(except tab) from the file.. I tried using sed command as shown below sed 's/ //g' file1 But the problem with the above command is that it also eliminates 'tab' which is between the columns.. For example if the contents... (7 Replies)
Discussion started by: abk07
7 Replies

6. Shell Programming and Scripting

Help with removal of numericals in a file

I have a file from which I want to eliminate the numerical values.. The contents of the file are as shown below.. 1 a1,b,2 1,b,c 2 a2,4,b a,b,2 From the above file I want eliminate only the numberical values(except the line numbers which are at the beginning).. The file... (12 Replies)
Discussion started by: abk07
12 Replies

7. Shell Programming and Scripting

Removal of HTML ASCII Codes from file

Hi all, I have a file with extended ASCII codes in the description which needs to be removed. List of extended ascii codes "Œ", "œ", "Š", "š", "Ÿ", "ƒ", "-", "-", "‘", "'", "‚", "“", "”", "„","†", "‡", "•", "...", "‰", "€", "™" Sample data: Test Details-HAVE BEEN PUBLISHED... (1 Reply)
Discussion started by: btt3165
1 Replies

8. Solaris

Removal of zip file permanently

Hi Everyone, I see some peculier thing happening on my server. I have one zipped file created long back as a normal user and trying to remove it now. When i tried to remove as that particular user, i was not able to do that. So i logged in as a root user and removed that successfully. But it... (8 Replies)
Discussion started by: Sricharan21
8 Replies

9. Shell Programming and Scripting

String removal from file

Dear all From below mention input file I needed op file as show below. I am using below code but not worked. I/p file BSCBCH1 EXAL-1-4 WO* SMPS MAINS FAIL BSCBCH1 EXAL-1-5 WO* SMPS RECTIFIER FAIL BSCBCH1 EXAL-1-6 WO* SMPS MAJOR ALARM BSCBCH2 EXAL-1-10 WO* ... (5 Replies)
Discussion started by: jaydeep_sadaria
5 Replies

10. UNIX for Dummies Questions & Answers

Display the .csv extension files based on .done extension fine

Hi All, I want to fetch the files based on .done file and display the .csv files and Wil take .csv files for processing. 1.I need to display the .done files from the directory. 2.next i need to search for the .Csv files based on .done file.then move .csv files for the one directory ... (2 Replies)
Discussion started by: girija.g6
2 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 09:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy