Ubuntu :: Removing A Word In A Multiple File Starting At The Dot Extension?

Aug 23, 2011

I would like to ask if someone knows a command or a script on how to rename a multiple file in the directory starting at the end of the filename or at the .extension( i would like to remove the last 11 character before the extension) for exampleBelow is the result of my command ls inside the directoryQuote:

BBC_In_footsteps_of_Alexander_the_mountain_20-v3veN2U__3I.mp4
BBC_In_the_footsteps_of_Alexander_Afghanistan_17-thAS28SWKKU.mp4
BBC_In_the_footsteps_of_Alexander_Alexandria_7-rQcjjpRwqw4.mp4

[code]....

View 9 Replies


ADVERTISEMENT

Ubuntu :: Add The File Type Extension To The End Of Multiple Files?

May 30, 2011

I have made the simple mistake of using dolphin to rename several picture files of types jpg and png. I have no problem viewing them and Ubuntu still knows which is which (if i view their properties it will state File Type: JPEG or PNG) but unfortunately Ubuntu Tweak does not allow you to chose them without the extension (I am trying to change my login background using this) So what i need is something that can scan several files, determine the file type, and add an appropriate extension to it. I have found several to do so for music files but none for images. I am using Ubuntu 11.04 at the moment.

View 5 Replies View Related

General :: Rename Multiple File By Moving Part Of The Name To End Of Extension?

Aug 26, 2009

How do you rename:

abc123.txt
abc124.txt
abc125.txt

to

abc.txt.123
abc.txt.124
abc.txt.125

Basically, I want to move the digits from the filename to after the extension.

It works for one file if I type:
rename 123.txt .txt.123 abc.txt.123

but I have thousands of files like these.

View 1 Replies View Related

Ubuntu :: Multiple Starting File Manager - Loads Of Them At Start Up?

Aug 15, 2011

I have a problem with 'Starting File Manager' completeley filling my taskbar on startup.There could be 100 of them for all I know, as the taskbar ends up dividing into tiny slices for each.How do I find out what is causing this? Is there a log file I can check or some way to repair ubuntu off the Live CD?Recently installed some updates. Last night tried reinstalling Nautilus and Gnome (did that with commands from Ctrl Alt F1 ) but that has not helped.I'm running Ubuntu 10.04 LTS (64bit)Dell Inspiron 530I'm no Ubuntu / Linux expert, but I can try to find any info / logs required

View 1 Replies View Related

Programming :: Bash Shell Script Read File Word By Word?

Jan 21, 2011

I have a output file look like this:
{"test1" : "test2", "test3" : "test4"},

How can I read word by word in each line?This is not working code:

a=0
while read word
do a=$(($a+1));

[code]...

View 14 Replies View Related

General :: Copy Lines Starting And Ending With Specific Pattern From Multiple Files To A File?

Jul 27, 2011

A function by name abc is called in many files. I want to copy all the lines with the function call to an output file.A simple grep on function name doesn't help me as the function call is spanning across multiple lines as follows:

abc(parameter1,
parameter2,
parameter3);

So I want to copy all the three lines (till semicolon) to the output file.The problem is because there are more than 200 calls for the same function and I cannot do it manually

View 2 Replies View Related

Fedora :: Gnome Shell Crashing After Removing 'user Theme' Extension

May 27, 2011

Since I do not like any of shell themes i downloaded, today I decided to remove user theme shell-extension.I removed it from the : Add/remove software, from menu.After logging out, and in, I keep getting : Gnome shell crashed, please log out.I have downloaded few shell themes from gnome look, and they all work.. But did not like them, always used default theme, so I decided to remove extension..

I removed "user theme" extension, but I did not delete "theme selector extension" from ~/.local/gnome-shell/ extensions.I just deleted it's folder from extensions, restarted, and I'm back in my Fedora.

View 2 Replies View Related

Programming :: Substitute Few Words + Change All The Lines Starting With A Specific Word + Put Blank?

Jan 17, 2009

I have an old-address-list file which is having around 1500 entries. I need to convert this addresses in to a specific format.

The old-address-list file>
# cat old-address-list-file
dn: CN=Muhammad Hadhi K.M,OU=IT Dept,OU=Example Company H.O,DC=example,DC=com
cn: Muhammad Hadhi K.M

[code]....

View 6 Replies View Related

General :: Run Same Command On Multiple Files With Same Extension?

Nov 10, 2010

how to run a command on all files with the same extension in a directory like this:

Code:

tex breqn.dtx; tex empheq.dtx; tex flexisym.dtx; tex mathstyle.dtx; tex mathtools.dtx; tex mhsetup.dtx; tex xfrac.dtx;

but in a simpler manner? I found this: Code: find . -type f -name *.dtx -exec tex {} ; but isn't there something simpler?

View 4 Replies View Related

Ubuntu Installation :: Starting After Removing Pulseaudio - Use Terminal To Re-introduce?

Jun 13, 2011

In a desperate attempt to overcome frequent crashing accompanied by XLog lines that suggest to me that Pulseaudio is the cause, I removed Pulsaudio from my Ubuntu 10.4(LTS) using Software Centre. Now I cannot start up Ubuntu but I can get to Terminal via the Recovery Mode. My question is how can I use Terminal to re-introduce Pulseaudio so that I may get back to where I was, albeit with the random crashes that I have had for many months?

View 1 Replies View Related

Software :: Find A Word In A Textfile Starting From The BOTTOM Of The Textfile?

Feb 8, 2010

I have a text file example :

word1
word2
word4

[code]...

View 3 Replies View Related

Ubuntu :: Removing Multiple Options In Openwith Dialog?

Dec 27, 2010

When i right click a file and give open with,i can find lot of duplicate entries..How to remove those entries?

View 6 Replies View Related

Ubuntu :: File Extension Z - Unix Compressed Archive File?

May 6, 2010

Anyone know how to compress a file to extension z?not tar.gz , zip, 7zip

View 6 Replies View Related

General :: Removing Multiple RPM Packages At Once

Apr 14, 2011

I need to remove a lot of rpm packages and I would like to save some time and make things easier, but I am unsure of how to do it. Currently I just copy/paste over and over. My plan was to put the output of the command below into a text file, and use that text file to remove all the packages.
rpm -qa |grep xxxxx > file.txt

My question is how do I get that file to work with "rpm -e". I tried to insert the file using the less than symbol but that didn't work:
rpm -e --nodeps < file.txt

View 4 Replies View Related

CentOS 5 Server :: Apachewithdocx - Microsoft Documents Wants To Open The File Like A Zip-file Not As Word Document

Jul 13, 2010

I've a webserver with a lot of documentary to serve. Some of the users have problems with the new microsoft documents like docx. Internet explorer 7 want to open the file like a zip-file not as word document. I've googelt around and found a solution that didn't work for me: [URL] I've added at /etc/mime.types

[Code]....

After a restart of httpd , nothing chance, always the same failure with internet explorer 7.

View 4 Replies View Related

Ubuntu :: Starting The Multiple X Servers?

May 20, 2009

How can I start multiple X servers by logging into same user and using same desktop environment like KDE or GNOME. Is this possible by editing .xauthority, .xinitrc etc files?

View 1 Replies View Related

Ubuntu :: Starting Multiple Programs With One Script?

Mar 25, 2011

I want to write a script that launches a set of programs I need for such or such particular task. For example, I wrote this one:

coding:
utf-8
nautilus /mnt/scratch/legeron/levesqu2
filezilla

But gnome-terminal will not start until I close filezilla, and gedit until I close gnome-terminal. How can I get the whole set to start up?

View 3 Replies View Related

General :: Add A File Extension To A Bunch Of File Names?

Oct 20, 2010

I have a considerable number of files in a subdirectory (some fascinating old military clips from archive.org - search on Big Picture if interested). Anyhow, I am downloading them using Internet Download Manager running in an XP virtual machine in VMWare on my Ubuntu 10.04 PC (due to the queuing, restart and speed capabilities of IDM). But I digress - the files are being saved on the host (Samba share) without a file extension. So I have a collection of files with names like

Quote:

The Douglas MacArthur Story
THEY WERE THERE (1960)

I wish to add the extension ".mp4" In Windows this is simply done with the command

Quote:

rename *. *.mp4

This of course does not work in Linux. I have researched the Linux rename command and reviewed a lot of examples. However, I have not found a way to add an extension to a batch of files which are named with no extension to start with. The spaces in the file names also seem to present an issue. At the moment I am renaming them from the Windows VM while they are sitting on the Samba share using the ancient File Manager program from Windows NT which works great on XP. I have experimented with the file rename facility in Gnome Commander however, it does not seem to want to do something so simple.

View 10 Replies View Related

Programming :: Read Two Files Word By Word At A Time Using Any Loop By Shell Script?

Mar 4, 2010

Well, I am facing one issue:How can i read two files word by word at a time using any loop as i need word by word comparision in shell script?Please let me know pseudo code.

View 14 Replies View Related

General :: Search Word And Delete Only The Word And The Line Using Sed Command?

Jun 28, 2011

Want to search for ~ and delete it as well as to append the entire line to the above line. For Ex:

1111xxxx date Sandy area is ~around this area.3222xxx date There seems to ~left side of map, the colours are accurate (showing green areas)Even if I ~zoom in, the green parks, xxx3258 date The dammed up
~away, the "other" body of water varies ~blackNatural gas leaching.

IT MUST LOOK LIKE:

1111xxxx date Sandy area is around this area. 3222xxx date There seems to left side of map, the colours are accurate (showing green areas)Even if I zoom in, the green parks, xxx3258 date The dammed up away, the "other" body of water varies blackNatural gas leaching.

View 4 Replies View Related

Ubuntu Servers :: Starting Multiple Programs At Boot On Server

Feb 11, 2010

Running Ubuntu Server 9.10.I have a couple of programs that I would like to start at boot, they will both run forever. I have created a cron job with @reboot and that will start a program, but if I have multiple programs in there it waits for the first to finish before starting the next.

View 2 Replies View Related

Programming :: Bash Read Input Word For Word ?

May 4, 2010

I am pretty new to bash scripting...I am trying to write a script that will take an input and read it word for word and then DO something with it like echo. I have been able to find how to read word for word from a file but I don't know how to do it with input.

I was looking for something like

Code:

exit 0 The input would be A-Z a-z 0-9 and have a single space between each word.

View 2 Replies View Related

General :: Sed Append Word At End Of Line If Word Is Missing

Feb 19, 2010

I have to modify formsweb.cfg file in Oracle IAS.

Problem description

In formsweb.cfg file are two lines with labels archive_jini= and archive= at the beginning of line. After equal sign (=) is row of filenames of java archives delimited by coma(,). When I insert a new jar file in java directory, I have to append the very same name of jar file to both lines if that name is not yet present.

Example snippet from formsweb.cfg

View 2 Replies View Related

Ubuntu :: Open And Run File With Extension Nds?

Jun 26, 2010

How to open and run file with extension nds in ubuntu linux?

View 1 Replies View Related

Ubuntu :: Hiding The JAR File Extension?

May 5, 2011

I installed Minecraft and I want to hide the .JAR extension on the file on my desktop. I tried just renaming it and deleting the ".jar" from the name, but when I tried opening it, it opened as an archive, rather than an executable, even though I had the "Allow executing file as program." box checked off. What can I do to hide the extension?

View 1 Replies View Related

SUSE :: Starting A Program With Multiple Versions Installed

Feb 11, 2011

I have matlab installed on a network (I am not the administrator) and we usually start the program by typing "matlab", then choosing one of the version options from the menu i.e. typing "n". So because of this, trying to run matlab programs or commands directly like this... matlab -r ProgramName

...does not work. I just get the menu as usual and everything else is ignored. I assume the admin has overridden the matlab command with their own custom script. So my question is can I start a specific version of the program by specifying the folder that the version is in? I thought it might be something like /opt/matlab/version -r programname

this might look foolish, but I am a bit of a linux noob. Let me know if I should just ask my administrator but I thought there might be something easy I am missing.

View 1 Replies View Related

General :: How To Add Word At The End Of File

Sep 13, 2010

I'm trying to add a word at the end of a file that already contains data. I need to do it using a single command without human interaction cause it's gonna be part of an automatic script.

View 2 Replies View Related

Ubuntu :: OpenOffice Crash When Trying To Open A Word File

Feb 26, 2010

I have a word file that i transfered to my ubuntu laptop, when i copied it here it was changed to a rtf file
When i try to open this file Openoffice opens up but then immediately freezes and when I click on quit it tells me openOffice is not responding. I just did an update and its still doing the same .

View 3 Replies View Related

Ubuntu Servers :: Word Reading Failure From File

Nov 14, 2010

I have 2 Ubuntu machines up & running on a small network. Both are running SAMBA servers. One several years old & has a rather old version of Ubuntu. The other, quite new & has a version about 9 months old.The newest has a problem. When working with large & complex Word documents, it will periodically generate an an error on the work station.

"Word failed reading from this fille (xxx specifies file we are working on). Please restore the network connection or replace the floppy disk drive". The it crashes Word & unsaved work is lost.The error never occurs when using the old server, only the new.

View 1 Replies View Related

Ubuntu :: Add Word To Each Line In A Gedit Text File?

Dec 8, 2010

Using the latest version of Ubuntu desktop on an emachine t5062 if it matters. I have a text file of keywords that is one-three words line after line for like 5000 lines. How would I go about adding a word to each line.Aside from typing it in or copying and pasting.If it can`t be done with Gedit I am all for using another program.

View 8 Replies View Related







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