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
ADVERTISEMENT
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
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
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
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
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
View Related
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
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
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
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
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
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
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
Apr 8, 2010
I was having terribly slow internet speed with my wireless setup. I followed someone's advice and now my internet speed is flying. However, now I lose connection a lot - almost once every few minutes. Is there any reason for the changes listed below to make me lose connection so easily?
SETUP:
Ubuntu 910 - 64Bit
Wireless Router: WRT160N
Wireless Card: PCI Asus PCE N13
Changes that improved speed, but killed stability:
Radio Band frequency should be 20 MHZ,
standard channel change to 11
advanced wireless settings should be Beacon Interval 2306
Rts thres = 2307
Disable the Security easy setup*option.
Uncheck the Block Anonymous Internet Requests & reduce the MTU size to* 1400
View 3 Replies
View Related
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
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
Jun 14, 2010
I use Ubuntu 10.04 in my HP 6530s notebook(2.0 C2duo1GB RAM, 512MB video). Recently i downloaded GyachE v1.1.48 for yahoo video chat. after installing GyachE when i started webcam its showing errors: Fatal: Video format not supported by Grab device.
View 3 Replies
View Related
Feb 4, 2011
I currently use windows 7 on my laptop which gives me on average on 2 hours of battery life. If replace windows with ubuntu, would it allow more battery life time? I am a student, and I always have battery life issue when I work at uni.
View 2 Replies
View Related
Sep 21, 2010
So now I've got my iMac G3 running nicely I was wondering how I go about running a burn in test so that I can see if I can improve the cooling in places by manipulating airflow, I have a thermal cam but I want the machine running maxed out in order to see where things can be improved.CPUBurn in the repos isn't coded for PPC, only x86 x86_64.
View 5 Replies
View Related
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
Jul 19, 2009
I was watching a friend of mine install PHP on SuSE with YaST, and it appeared as though he was able to select the various extensions he wanted compiled into PHP for installation. I didn't know this was possible, I thought you pretty much had to take whatever extensions whoever built the package decided to include. Is it possible with CentOS to install PHP with a custom selection of extensions?
View 4 Replies
View Related
Jan 18, 2010
I understand that .tar.gz and .tgz are equivalent to each other.
I did some checking as alway online. I am however stuck how to you make files with a tar.gz extenstion become .tgz. In the case of it being a compressed file is there a right and wrong way of doing this.
it seems that I always encounter things slightly off the beaten path, against my less then optimal knowledge of the man pages.
View 3 Replies
View Related
May 30, 2010
how to delete only files which have no extensions in the directories. but other files should exist.
View 12 Replies
View Related
Dec 24, 2010
I've been looking for info about Legacy OS but havent found much. I installed it and all works great except there are no active wireless extensions.My laptop have an internal wifi adapter (bcm43xx) I tried to load that driver using legacy OS network wizard but didnt work, the other is a external wireless card with a rtl8187 driver, this last one is the one I want to be up. I also tried to use ndiswrapper but can't set it up either.
View 1 Replies
View Related
Feb 14, 2010
I have working apache/php/mysql on my Gentoo server. But I have to enable some extensions in php (json, exif).
I did: USE="dev-lang/php json exif" emerge dev-lang/php
View 1 Replies
View Related
Jul 27, 2011
I'm wondering how I'd be able to symlink all the files in a dir structure and then also copy files of a certain extension in that dir. I'm basically symlinking all files within /foo/a,b,c to /bar/a,b,c and then copying over certain files with a certain extensions.
View 1 Replies
View Related
Aug 28, 2010
Just bought a netbook, ASUS Eee PC 1001PX, and got rid of the crappy XP pre-installed. first i put netbook remix on it, and tried many downloads and ndiswrapper to fix the wireless problem. then i went ahead and put another form of ubuntu on it thinking it might have the right drivers need to use the built-in wireless card, nothing. i dl all updates and bug fixes. i went to atheros to download the only driver they have for linux in the AR8132 class but still not helping. although i am not sure if i even installed. once dl it only extracted itself. i couldnt figure out how to run. if someone has this type of netbook it would be awesome. everything works on it except wireless and headphone jack. i know its just cosmetics but it would be nice if all hardware worked.
View 1 Replies
View Related
Jul 11, 2011
I have a deep folder structure on my RHEL 5.x file system which is supposed to have only word(*.doc, *.docx) or pdf(*.pdf) files. But I want to check if there are files with any other extensions which exist. Is that possible?
View 2 Replies
View Related
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
Aug 24, 2015
iwconfig
eth0 no wireless extensions.
lo no wireless extensions.
Whereas I am using wireless internet ...
View 14 Replies
View Related