General :: Removing Quotes When Dragging Files To Terminal

Feb 18, 2010

The following script will work when I type the path to the file I want to checksum, but not when I drag the file to the terminal because the linux terminal (unlike the Mac) automatically puts quotes around the file path, which causes an error. I did not find anything in gconf-editor or anywhere else to alter this behaviour, and my post in Launchpad is unanswered so far. (the script in itself is not very useful, I just stumbled upon this error when experimenting with bash).

So, is there a workaround for stripping the quotes from the input, or can I configure the terminal to not quote the input when I drag a file into it (which I would prefer?)I am currently logged in from Mac OS, but the question refers to ubuntu karmic with which I dual boot.ADMINISTRATORS: Thanks for the quick reply to my newbie question about posting new threads. Actually I don't see now what the difficulty was; I guess I was tired from trying to debug the above script (not funny).

View 1 Replies


ADVERTISEMENT

Programming :: Getting Rid Of Quotes When Dragging A File Into The Terminal

Feb 18, 2010

The following script will work when I type the path to the file I want to checksum, but not when I drag the file to the terminal because the linux terminal (unlike the Mac) automatically puts quotes around the file path, which causes an error. (Clarification: am referring to gnome-terminal. Thanks, GrapefruiTgirl.) I did not find anything in gconf-editor or anywhere else to alter this behaviour, and my post in Launchpad is unanswered so far. (the script in itself is not very useful, I just stumbled upon this error when experimenting with bash).

So, is there a workaround for stripping the quotes from the input, or can I configure the terminal to not quote the input when I drag a file into it (which I would prefer?)

I am currently logged in from Mac OS, but the question refers to ubuntu karmic with which I dual boot.

View 6 Replies View Related

General :: Nautilus Crashes When Dragging Files In Ubuntu 10.04

Aug 4, 2010

I'm running Gnome in Ubuntu 10.04. Nautilus used to work fine on my system but now it's doing something strange. Whenever I drag a file out of the Nautilus window to move it somewhere else, as soon as the mouse cursor goes out of the window Nautilus closes and the file I was dragging also disappears.

View 1 Replies View Related

Ubuntu :: Double Quotes And Single Quotes Not Working In 11.04?

Aug 2, 2011

I am not sure If anybody has faced this issue, my keyboard is less responsive when pressing the double quote/single quote key, I have to press it twice for it to print the quote( and that too it prints some other data and not exactly a double-quotes). Initially I thought it was issue with my keyboard, but later I see that it is working fine in Windows XP. It looks some kind of setting issue. If you check the below two examples, example a) is the double quote printed in Ubuntu, it doesnt exactly looks like a double-quotes and b) is the one printed in Windows.

View 1 Replies View Related

Slackware :: Add Own Personal Database Of Quotes For The Fortune App To Call When Open A Terminal

Feb 5, 2010

I'm trying to add my own personal database of quotes for the fortune app to call when i open a terminal. I was able to successfully create the data base from a text file along the lines of this thread [URL] And it works when i type :$ fortune mydatabase The problem is, when i open a terminal i dont believe fortune knows to look for the new database, and im yet to see one of my quotes appear. If anyone can point me in the right direction as to where the command is issued to run fortune when i open the terminal

View 5 Replies View Related

General :: Removing SCIM Input Method As Default From Gnome Terminal?

Feb 16, 2010

While I can find my way around most things, terminals and desktop managers are different than I remember. One of the biggest problems that I am encountering today is that when running a gnome terminal (this is Suse 10.0 enterprise), I'm getting behavior in the window that I don't want. Specifically, when I type, my typing is underlined as if something is trying to spell check my window. Further, it seems as if when running vi or less, my keystrokes are only processed by these apps when I hit 'return'. I.e. if I'm running less and want to go back a page, I'll hit b, but nothing happens until I hit 'return'.

I seem to have tracked this down to the 'input method". Right clicking in the Gnome terminal allows me to set my input method to one of a dozen values. It seems that currently, it's set to "SCIM Input Method". If I then select 'default' or 'X Input Method', apps (i.e. things like less, vi, and even the bash shell) behave as I would expect.

a) what is this SCIM input method

b) how can I make it so that it is not the default?

I've poked around various configuration files in my home directory as well as in /etc, but I can't see to find how this is set.

View 1 Replies View Related

General :: Removing Files Or Directories Recursively

Jan 29, 2010

The rm command man pages discusses removing files or directories recursively. So what is meant by deleting a file or directory recursively? And what are some reasons for doing so?

View 3 Replies View Related

General :: Removing Files From GRUB LOADER

Apr 27, 2010

Does anyone knows how to remove files from grub loader.BTW i found some tutorials but they don`t seem to work.I`ve tried Alt+F2 then I`ve edited this command: gksu gedit /boot/grub/menu.lst but it doesn`t seem to work what do I do?

View 5 Replies View Related

General :: Removing Glib 2.20 An 2.26 / Where Files Located?

Oct 17, 2010

I have stuffed up my system and I want to remove Glib 2.20 and Glib 2.26. How can I do this? Where are the files located? Sadly, there does not seem to be a make uninstall file for Glib.

View 3 Replies View Related

General :: Script For Removing Files Depending On Age?

Jun 6, 2011

I want to develop a bash or Perl script that will evaluate files in the local directory and delete every file that is older than a specified time period, such as three months.I write documents and save the latest modifications by putting the current date in the filename, so I can easily see which versions are the newest. I would like to clean up my directory every once in a while, though, by eliminating the copies that are more than a few months old.

View 14 Replies View Related

General :: Removing Subdirectorys And Only Working With Files (Bash Cookbook 5.8)?

Jul 6, 2010

The Cookbook gives us

for FN in $*
do
echo changing %FN
chmod 0750
done

but that changes all. how can I change all files but subdirectorys? I was thinking of something likels -l | grep -v ^d but can't get it to work. I'm still learning about variables and how to use them. thanks in advance for your Patients.

View 2 Replies View Related

Programming :: Double Quotes Inside Double Quotes?

Jun 6, 2010

In bash I need to use some equivalent of double quotes inside double quotes (or the other way around.)I need to run the following statement to get the output of foo and store it in a variable while passing foo the $file which probably contains spaces.

Code:
variable=$(foo "$file")
The problem is that foo might return an empty string and if it does I need to catch it

[code]...

View 6 Replies View Related

Ubuntu :: Removing Transparency In Terminal

May 7, 2010

By default in Lucid, Gnome Terminal is transparent.I was on my new Lucid install[1], in Terminal, typing away on the far side of some sshes, and reading some code, when I noticed how awkward it was to read because the background was showing through. "Fine", I thought, "I know where that setting is, although it's a strange default".But Terminal's "Edit Profiles->Edit->Background" revealed it was set to "Solid color". In fact, setting it to "Transparent background", and cranking the Shade up to Maximum was one way of removing the transparency.

A little hunting around revealed that "System->Preferences->Appearance->Visual Effects" could be set to None instead of Normal, and that would fix the problem.So, your choices for a functional terminal are to disable all Compiz eyecandy, or to turn on transparency in order to turn off transparency.Does this strike anybody else as wrong? Is there another control I've missed?

View 5 Replies View Related

General :: Difference Between Find Name With And W/o Quotes?

Feb 17, 2011

I was going to file a bug to findutils on gnu.org when I saw a notice that asked me whether I knew the difference between these two commands:find -name *.c and find -name "*.c".I use find command quite often but I don't think these two have any difference.

View 2 Replies View Related

General :: Add Quotes Between Words In A Cvs File?

Mar 8, 2010

I exported a spreadsheet file into cvs format.

The cvs file is formatted this way

field1,field2,field3,..etc

I want it to be in a Quote delimited format like so

"field1","field2","field3",..etc

View 2 Replies View Related

General :: Printing Single Quotes With Awk?

Jul 27, 2011

I have the following command, which works fine:ll /backup/PROD |grep PROD_ |awk -F" " '{print "catalog backuppiece /backup/PROD/"$9";"}'The output is:catalog backuppiece /backup/PROD/PROD_29mi42vn_1_1;BUT... I want single quotes in the result. One before /back.. and one before the ;Like this:catalog backuppiece '/backup/PROD/PROD_29mi42vn_1_1';How do I do that? I tried using ' but it does not work.The following command works, but I get an error message, which prevents me from using the command in a bash file:ll /backup/PROD |grep PROD_ |awk -F" " '{print "catalog backuppiece '''/backup/PROD/"$9"''';"}'awk: warning: escape sequence `'' treated as plain `''

View 3 Replies View Related

Ubuntu :: Removing Start Up Programs In Terminal?

Mar 11, 2010

I recently learned how to add start up programs in the terminal using the following command:

Code:
ln /usr/bin/whateverprogram ~/.kde/Autostart

This worked, but now I want to remove some start up programs using the command line. Can someone point me in the right direction to what I need to do for this?

I'm assuming that default start up programs are not links in the ~/.kde/Autostart folder because when I run:

Code:
ls -a ~/.kde/Autostart
I only find the files that I have set to start up.

View 3 Replies View Related

General :: Identify The Single Quotes As Literals?

Mar 9, 2009

I want to grep for $_POST['whatever']. I've done enough googling and trying different things (and failing) to where I felt it appropriate to post here. How do I identify the single quotes as literals? slashes don't seem to do it.

View 1 Replies View Related

General :: Surround A Line With Quotes On Bash?

Apr 24, 2010

When I run for i in $(find -name '*.ogg'); do echo '$i'; done I don't get one line per file as I expected. Instead, when a file name has a space in it, each word comes out in a separate line, so I can't run commands on the files.

View 4 Replies View Related

General :: How To Use Rsync When Filenames Contain Double Quotes

Jan 29, 2011

I am trying to synchronize the content of the directory my_dir/ from /home to /backup. This directory contains a file which name has a double quote in it, such as to"to. Here is my rsync command:
rsync -Cazh /home/my_dir/ /backup/my_dir/

And I get the following message:
rsync: mkstemp "/backup/my_dir/.to"to.d93PZr" failed: Invalid argument (22)
For info, rsync works well when the synchronized filenames contain single quote, parenthesis and space. Thus, why is it bugging with a double quote?

View 3 Replies View Related

General :: Escaping Double Quotes In A File?

Dec 12, 2010

I know it is pretty trivial but anyway...I have php file that I am trying to read it looks like this

...
add_item_tabulky("Klaun-PF 2011","klaun_pf2011.jpg","","","");
add_item_tabulky("Pras�tko-�ťastn�

[code]...

View 3 Replies View Related

General :: Replacing Single Quotes In Filenames With Another Character

Jan 26, 2011

Can anyone offer a code snippet to recursively go through directories and replace any single or double quotes quotes found in a filename with another character (e.g. "_").If any of the filenames contain a single quote or double quote, then replace it with an underscore.

View 7 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

Ubuntu :: Removing And Re-installing Flash Using Both Terminal And It's Software Center To No Avail

May 29, 2010

See the attached picture. I'm using Ubuntu 10.04. I've tried removing and re-installing flash using both Terminal and Ubuntu Software Center to no avail.

View 9 Replies View Related

General :: Upload Files Using Ftp Via Terminal?

Sep 23, 2010

it should include the user and password but how exactly?

View 3 Replies View Related

General :: Send Files To Trash Using Terminal?

Mar 20, 2011

I typically use rm to delete files, but they don't end up in my trash folder in case I want to recover them. How do I make that happen and how do I access my trash folder via terminal? Doing me best to work from terminal rather than GUI and this one has me stumped. I am using Mint Julia.

View 2 Replies View Related

General :: Playing Audio Files Via Terminal?

May 21, 2010

How can I play audio files via terminal. Afaik I've to install mplayer. Suppose I want to play list of audio files, is there any way to play all the files simultaneously via terminal?

View 7 Replies View Related

General :: How Do I Recursively Delete Duplicate Files Using Terminal

Mar 1, 2011

I'm using a mac, and just transferred a bunch o photos from another computer, and as it turns out, there is a bunch of duplicates.I'm not too familiar with the mac terminal, but if there is a solution for linux, it will probably work for the mac.Just need to be able to recursively scan all folders in my Pictures folder and then Delete them.

View 1 Replies View Related

General :: Opening Files In Text Editor From The Terminal

Mar 7, 2010

Using ubuntu 9.10

If I'm in a terminal window, and I open a file by typing eg :

It opens as a blank document... I know it has text in it though!

I've tried with other files and also with nano so it's not just a problem with a particular file.

How do I view the current contents of the file so I can then edit it?

View 4 Replies View Related

General :: Bash - Sync Files Between 2 Remote Computers Using Terminal

Jun 25, 2011

I want to be able to synchronise files between 2 remote computers in both directions. Say for example that I want to synchronize my /home/Documents directory with <username>@example.com:/home/Documents What's the easiest way to update the folders in both directions, so that new/updated files on my home computer get transferred to the remote computer, and new/updated files on the remote computer get transferred to my home computer?

View 2 Replies View Related







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