Ubuntu :: Using Sed To Change Certain File Extensions?

Jun 2, 2010

I have about a hundred and fifty html files that I would like to change image file extension on from gif to png. I want to change this line:

<img src="images/robopix/web/ROBOTNAME.gif" border="0">

to this:

<img src="images/robopix/web/ROBOTNAME.png" border="0">

Trouble is that ROBOTNAME is different in each of the hundred and fifty files. To make it harder, there are other gif filenames on these pages that I do not want to change. I only want the extensions to change if the address prefix is 'images/robopix/web/'. Is there any way to do this with a quick program/sed command rather than manually editing a hundred and fifty files?

View 8 Replies


ADVERTISEMENT

Ubuntu :: Change The Extensions Into Lower Case With One Command?

Jun 9, 2011

There's got to be an easy way to do this and I can't find it: I have 50 files with the extension .JPG. I want to change the extensions into lower case with one command.

View 7 Replies View Related

Ubuntu :: Adding Extensions To Multiple Files Without Extensions?

Dec 28, 2010

I have a directory of a load of files without extensions. I know what the filetype should be, so is there any way of batch renaming the files to append a given extension onto it. i.e. text would be renamed as text.txt?

View 3 Replies View Related

Ubuntu Multimedia :: Where Is Association Config File For File Extensions?

Aug 7, 2010

I'm using Ubuntu 10.04.1 LTS (Netbook).I need to associate ram file extension to realplayer. First time I opened a ram file I choosed the default player, Reproductor de peliculas (I think Movie player in english).Now when I choose Open with Realplayer and remember the application for this extension it opens the archive but it does not remember for the next times. It seems to be a little bug. How can I do it manually? Where is the association config file for file extensions?

View 2 Replies View Related

Ubuntu :: Command To Hide File Extensions?

Apr 20, 2010

i was just wondering if anybody knows of a command that i can run in the terminal to HIDE file extensions.I would apretiate this command and i dont mind if it is for ubuntu or windows.

View 2 Replies View Related

Ubuntu :: Recursively Rename File Extensions?

Feb 15, 2011

I want to rename some image file extensions from upper case to lower case but renaming all the images in all directories and subdirectories. the following code works if I am inside the folder but how do I make it work recursively?

Code:
for f in *.JPG; do mv $f `basename $f .JPG`.jpg; done;

View 2 Replies View Related

Ubuntu :: Search For Multiple File Extensions At Once In Gnome

Jan 1, 2010

Does anyone know of a way to perform a search for multiple file extensions at once in Gnome? I know that M$ Windows Explorer had this capability, but I'm just not sure how to do it in Gnome, or if it's possible. I just want to be able to perform searches for Video, Music, and Document file types, without having to perform a separate search for each file extension. Example: When doing a search for Video file types (.avi,.mp4,.mov,.wma, etc.), I would like to do one search for all files that have these file extensions, instead of doing one search for .avi files, a second search for .mp4 files, another for .mov files, etc.

View 8 Replies View Related

Ubuntu :: RDP Extensions And Plain Text File Types

Jul 15, 2010

Basically, I have a selection of .rdp shortcuts to various machines, but they are considered the file type "plain text document (text/plain)" so if I change it to open with to tsclient, all of that file type opens with tsclient. And if I change it to gedit, all the rdp files open with gedit. Is there a way to create a custom file type dependent on the extension rdp, or is there a way to set tsclient to open by extension rather than filetype?

View 2 Replies View Related

Ubuntu :: Any Tools To Find File Extensions In Server

Mar 2, 2011

I am doing a migration and where i face problem with few file formats . I have the list of acceptable file formats , now i need to find the rest of the file formats other than the acceptable file formats. is there any tool available for this ? or can some give me the VBA macro .. My VBA macro works to find the file extension in a particular folder but the problem is its ending when the count increases to 65000 (excel limit). How do i use If condition here to avoid the acceptable format and give me unique file formats .

[Code]....

View 1 Replies View Related

Ubuntu :: Hide Php / Html File Extensions When Visiting URL?

Apr 25, 2011

Just recently installed the latest Ubuntu on my laptop and working perfectly. I have installed and configured LAMP but unable to figure out how to hide php and html file extensions when visiting a URL. I have enabled mod_rewrite via sudo a2enmod rewrite. Can this be accomplished globally rather than using a htaccess file?

View 6 Replies View Related

General :: File Name Extensions With VIM (VI Improved)?

Feb 11, 2010

GNU/Linux kernel 2.6, Slackware. VIM - Vi IMproved 7.1 Huge version without GUI. When I quit an editing sesion vim creates a backup file with the same name as that of the edited file but with a '~' appended. I would like the name for the backup file to be the following: same base name as that of the edited file and edited file extension replaced by 'bak'. Example:

Input file//////////////backup file after editing
----------//////////////-------------------------
foo.txt/////////////////foo.txt~
foo.txt/////////////////foo.bak

The first line corresponds to what vim now does. The second one is what I want vim to do.

View 12 Replies View Related

Debian :: Set Default Application For Specific File Extensions

Dec 17, 2015

How to properly set some entries in:

$HOME/.config/mimeapps.list

so that:
*.odb files are opened by default with libreoffice base
*.org files (just org files not plain text files) are opened by default with emacs

For some reason I can not figure out how to proceed.

As far as I know - i.e. for what I have been reading in the documentation - the default application for a given MIME-type is specified by writing into the group [Default Applications] in the mimeapps.list file

My configuration is the following:

- 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u6 (2015-11-09) x86_64 GNU/Linux
- gnome desktop

View 3 Replies View Related

Ubuntu Installation :: Launch Utilities And Other Programs That Have .exe Extensions By Double Clicking The .exe File?

Apr 27, 2010

I recently installed ubuntu 9.10. I have been trying to launch utilities and other programs that have .exe extensions by double clicking the .exe file. Each time I attempt this I get the following error message in archive manager:

[Code]...

View 5 Replies View Related

Ubuntu :: Bash: Cd: /home/mycomp/.nautilus/python-extensions: No Such File Or Directory

Aug 8, 2010

I was trying to install periscope, from the instructions here: http://code.google.com/p/periscope/wiki/NautilusSupport

The problem is that at:

cd ~/.nautilus/python-extensions

I get an error:

bash: cd: /home/mycomp/.nautilus/python-extensions: No such file or directory

View 6 Replies View Related

General :: Appending File Extensions To Filenames In Bash Scripts?

May 18, 2010

Suppose I have a variable called filename which contains the name of a file but the name does not contain an extension.

View 4 Replies View Related

General :: Convert All File Extensions For Files In Many Sub-directories From Uppercase To Lowercase?

Sep 21, 2010

I'm trying to convert all file extensions for files in many sub-directories from uppercase to lowercase. I have two problems, how to list the absolute path to the files recursively over many sub-directories for which I so far have this:-

Code:
find ~/Photos -print which would be fine, except it gives the directories on their own when it finds them rather than just the files with absolute paths. I couldn't find a switch for the "ls" command to do this, so I had to improvise with "find". and once I get grab each absolute file name, to just change the file extension rather than the entire file, which is what I have at the moment.

[Code]..

View 7 Replies View Related

Ubuntu :: Change File Permissions To Change Background Screen?

Feb 21, 2010

I'm new to Ubuntu Linux but have many years on windows platform. Please can someone help me with how to change the following items.

No.1 I would like to change the HORRIBLE!! YAK!! brown background color behind the word Ubuntu in the start up screen when the machine loads up (before the login). I have located the image file for this which I have found to be: /usr/share/images/xsplash/bg_2560x1600. jpg but the OS says that root is the owner and that I don't have permission to change this. So how can I change this for a color I do like.

No.2 I would also like to change the login dialogue screen style. I know this is possible but again I'm fumbling to see how I can do this. I have tried with the start up manager but every attempt fails, the settings don't take. Once again I suspect permissions are at the bottom of the problem?

No.3 Would like to have a colorful splash screen image on boot up, I've managed to remove the old one (small white 3 ring ubuntu logo on black background) but havent been able to install or replace with a new one. Its been incredibly frustrating, I'm feel sure I'm missing something simple here. Wondering if its permissions yet again?

Anyone who can offer help on any of the above, guidance or advise me would be much appreciated. Please bear in mind that I'm still very much feeling my way with Linux so keep it simple.

View 3 Replies View Related

General :: What Config File Do You Change To Change Default Run Level?

Aug 5, 2009

What config file do you change to change default run level???

View 3 Replies View Related

General :: Cannot Change File Permissions On A Mounted File System

Apr 6, 2010

I have an ntfs partition that I wish to access as a normal user(non-root). For this I did the following. As root I created a folder /windows and did a chmod 777 -R on /windows. Then I added the following line to /etc/fstab

Code:

/dev/sda3 /windows ntfs-3g defaults,nosuid,nodev,umask=000 1 0

Now, the partition is mounted alright but the problem is that when any other user (non-root) creates a files in /windows (say by executing touch newfile) the newly created file has the owner and group set as root. The non-root user can create the file and he can also delete the file, however, he cannot change the permissions of the file and also the owner:group is always set as root:root. How do I get across this problem, i.e. how do I mount a partition, so that a non-root user can also change the permissions and ownerships of the files he creates.

View 2 Replies View Related

General :: Change Password Using A Script File And Text File?

Jun 26, 2011

This is for educational purpose. In fact it is my lab tutorial for a subject.I want to capture the users password when he changes his password. Both new and old.This is the script i have come up with:

Code:
#!/bin/bash
echo "Changing password for user $USER."

[code]...

View 5 Replies View Related

Ubuntu Servers :: How To Hide Extensions

Jun 1, 2011

I installed Ubuntu 32 bit non server edition a while ago and set up mysql, phpmyadmin, apache2, php5 and also proftpd my site is up and running perfectly but one thing I want to do is to hide the file extensions like for example at the moment it shows[URL]

View 9 Replies View Related

Ubuntu Networking :: No Internet - LAN Or No Wireless Extensions

Mar 24, 2010

I have a fresh install of Karmic on a older compaq laptop. I initially had LAN access, but not wifi. I added a few Broadcom packages using synaptic, and then neither worked. Then I removed the same packages, but I still have no internet access, LAN or wifi. Here are some of my settings. vincentertainment@vincentertainment-laptop:~$ iwconfig

[Code]...

View 1 Replies View Related

Ubuntu :: How To Install Firefox Extensions For All Users

May 17, 2010

I am wondering the "new way" to install firefox extensions for all users.

From [URL] we can see that the "old way" is no longer available.

Quote:
-install-global-extension and -install-global-theme have been removed from Gecko 1.9.2 and upwards.

I'm using the Lucid UNE to write this and note that it has these extensions installed for every user:

Quote:

Ubuntu Firefox Modifications
webfav

I have several users on many computers and would like to have certain extensions installed for them, such as xmarks, add bookmark here, coolpreview, etc.

I searched the entire root filesystem and didn't find any .xpi files.

View 9 Replies View Related

Ubuntu :: Mass Rename All Picture Extensions?

Jun 24, 2010

Linux cares about case sensitivity. This is a problem when some picture upload services accept .jpg while my camera uploaded the thousands of pictures I have as .JPG.

I can handle this task fine PER DIRECTORY. The problem is, I still have a ton of directories. Is there a way I can select - Pictures - Mass rename EVERYTHING inside and everything inside all sub directories from JPG to jpg?

Basically I want to take the existing command:

rename 's/.JPG$/.jpg/' *.JPG

a step further.

View 1 Replies View Related

Ubuntu :: Return A List Of Files Without The Extensions?

Jan 3, 2011

I am writing a bash shell script and I am trying to use a select case to modify a few files with the same filename but different extensions (i.e. problem.tex problem.log problem .pdf etc.)

It goes something like this:

Select item in $list
do
compile $item.tex
open $item.pdf
delete $item.log
break
done
exit

Right now my list is list=$( find . -maxdepth 1 -name "*.tex" ) which returns a list only from the current directory of all files ending in .tex so when I try to open the resulting .pdf file I get the error:

error: file problem.tex.pdf doesn't exist

So I'm trying to find a way to use just the name in a select menu.

View 5 Replies View Related

Server :: How To Change File And Update Only One File In Svn

Jan 20, 2010

I have successfull implemented svn. i am able to improt the project. i am able to update the file under svn and also commit the change. but the problem is when i commit the change for one file in project
The hole project version get changed. i just want ot update the changes of one file under svn not of hole file project. how to change file and update only one file. and also find the attchment of the error.

View 1 Replies View Related

General :: How To Tar Files With No Extensions

Sep 1, 2011

I have some directories with a varying numbers of files and subdirectories. All files that have no extensions have to be tared. Their names may change, thus they can not be hardcoded. Subdirectories may also contain a unspecified number of files and subdirectories that are not relevant and should not be included in the archive.

I'd like to be able to do this with a single line, not using any .sh scripts, so that this process could be reproduced as portably as possible.

Sample directory structure:

$ ls -1F
bar-dir/
bar.with.dots
foo-directory/
foo-no-ext

[Code].....

View 2 Replies View Related

Server :: Add PHP Extensions In Debian 5?

Jan 7, 2010

I have installed apache 2 and php 5 on my server. It works great but what I need is to add few extensions to PHP so it supports my website:

PDO (with MySQL and PostgreSQL driver)
curl
GD2 or Imagick

How can I do that?

I have located my php.ini file. It's in the /etc/php5/apache2.php.ini. I have used nano /etc/php5/apache2/php.ini to open it and I searched for "curl", "pdo" etc but there is no mention of them in the php.ini file. No commented lines with these extensions.

Will it work if I just add this on the end of my php.ini?

extension=php_pdo.dll
extension=php_pdo_mysql.dll
extension=php_pdo_pgsql.dll

View 1 Replies View Related

Ubuntu Multimedia :: Rhytmbox - Radio Stations - And Pls Extensions

Jul 6, 2010

I wonder how can i play internet radio with .pls extension in rhytmbox....

Ctrl+I didn't work for pls...

I am using lucid, and the station i am going to listen is: [url]

(m3u works, it's just pls that didn't work)

View 6 Replies View Related

Ubuntu Installation :: Install Extensions In Firefox 4.X Beta?

Aug 22, 2010

I would like to start using Firefox 4.X beta and I read it was possible to install extensions such as Ad Block and No Script . What I would like is step by step instructions on how to add these currently non compatible extensions.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved