Ubuntu :: "locate" Or "updatedb" Be Set To Print File Names With White Space Properly Escaped?

May 23, 2010

Can "locate" or "updatedb" be set to print file names with white space properly escaped? For example, I want it to print, "/home/USER/My Files" and not, "/home/USER/My Files". I've googled around, read the man pages, checked the forum, and I'm still stuck.

View 2 Replies


ADVERTISEMENT

SUSE / Novell :: When Opened /etc/updatedb.conf It Says There In The File That One Should Make Ones Own Updatedb.local?

Feb 1, 2010

when I opened /etc/updatedb.conf it says there in the file that one should make ones own updatedb.local. But how, exactly? Presumably I create /etc/updatedb.local but what do I put into that? With all those $-signs I'm pretty much lost. Could anyone post his/her example of a PRUNE_FS statement or point me to some reference where I can read up on this

View 10 Replies View Related

Ubuntu :: 'locate' 'updatedb' Bash: Command Not Found?

Jul 5, 2010

I recently installed 10.04, in the process of installing MythTV... I'm looking for installed files and find bash no longer finds updatedb or locate commands. I did change /etc/hosts and /etc/hostname to change the name of the box. Could this have hosed those commands? I tried them as root... sudo -i, same result...

View 6 Replies View Related

SUSE :: Locate And Updatedb: Command Not Found?

May 22, 2010

I used to be able to run locate and updatedb, but after an OpenSUSE update, they no longer work. I've reinstalled findutils and it appears to install correctly, but the commands still don't work.

server:/tmp # rpm -Uvh --force findutils-4.2.28-24.i586.rpm
Preparing... ########################################### [100%]
1:findutils ########################################### [100%]

[code]...

View 3 Replies View Related

SUSE / Novell :: 9 Updatedb And Locate Not Installed During Initial Installation?

Mar 8, 2010

I am trying to install the locate and the updatedb command as they were not intially installed during the desktop installation of linux. How do I do this

View 1 Replies View Related

Ubuntu :: Canon Mp470 Printer - 10.10 - Able To Print Black And White But Unable To Print Photos

Dec 26, 2010

My wife has a canon MP470 printer and running ubuntu 10.10. I am able to print black and white, but unable to print photos. I got it to work using another driver, but not the 'correct' one for this printer. I have searched a bit and don't see anything about ubuntu 10.10, just older versions. Or should I just network her to my printer....?

View 5 Replies View Related

Ubuntu Security :: Included The Output Of Both "un-escaped" And "escaped" Input To Show The Importance?

Feb 14, 2010

quite some time back, when I was learning about MySQL injections it has sorta been drilled into me to use mysql_real_escape_string when dealing with input from users.[URL]..I'm running a standard LAMP installation, with no alterations to the defaults.

On the site in question, I do have this all set up, however, as part of a tutorial series on FULLTEXT, I've included the output of both "un-escaped" and "escaped" input, to show the importance.

[Code]...

View 2 Replies View Related

Ubuntu :: Printing Corrupted - Get Substituted / Print A Blank Space / Print A Box

Mar 23, 2011

Interesting problem: For the first time with Xubuntu 10.10 64bit, I am finding certain applications print corrupt. A varying amount of letters / numbers either get substituted/print a blank space/ print a box etc etc. This corruption seems to happen from a Pdf ( evince ) or Spreadheet ( Gnumeric ) Opening the same Pdf on another machine (ubuntu 10.10 32bit) prints perfectly. Opening the same .xls file on the original computer but using OOo Calc prints perfectly.

I guess I have ruled out any problems with the printer itself or the network JetDirect box. I have re-installed CUPS and evince and upgraded to the latest version of HPLIP but the problem appears unchanged.

View 2 Replies View Related

Ubuntu :: Updatedb Not Working \ Cannot Open A Temporary File?

Mar 20, 2011

On fedora system I do a updatedb command and thereafter a simple locate to look for files and softwares. But on my ubuntu 10.10 install, when I do a updatedb, I get Quote:nishith@nishith-Aspire-4720:~$ updatedbupdatedb: can not open a temporary file for `/var/lib/mlocate/mlocate.db'Also locate doesnot do anything, just gives back the shell prompt! what could be the issue here? BTW my install is on a usb 8 gb stick

View 2 Replies View Related

Ubuntu :: Unable To Print To / Install / Locate Dell P1500 Laser?

Aug 4, 2010

unable to print to / install / locate Dell P1500 laser

The printing troubleshooter says:

"CUPS service does not appear to be running. to correct this , choose SYSTEM->Administration->Services from the main menu and lookfor the cups service"

unfortunately there is no->Services tag under ->Administration to look for the CUPS Spooler.

running 10.04 64 Bit on a dual boot with vista AMD6000 box Printing is fine on the vista side so the printer and usb connection is fine.

View 4 Replies View Related

OpenSUSE Hardware :: 11.4 KDE 4.6 - All Images Print Inverted - White On Black

Mar 22, 2011

Just updated to OpenSuSE 11.4 with KDE 4.6

Code:

When I print to my HP LaserJet 1020 - which has worked fine since OpenSuSe 10.x to OpenSuse 11.3, any images print inverted.

For example, what is white in the image is printed black, and what is black in the image is printed white. When printing a document from LibreOffice, text on the same page as the image prints correctly.

I've checked that this is happening when printing images from LibreOffice, Okular, and Gimp, and tried it with PNG, TIF, and GIF image formats.

However, when I open HPLIP and send a test print through, it prints correctly - text and images all normal.

View 9 Replies View Related

Programming :: Remove White Space, +, And -, By Awk

May 18, 2011

I have some data whose no certain pattern. Below is as an example.

20110101 1+1-0 1-1 1+1-2 8- 5 3 0 3 4 5 3 7 4
20110102 1+2-0+1-1-1+2-1+ 9 5 6 2 3 3 5 6 5 4
20110103 1-1-0+1 1 2 2 2+10 3 3 2 4 4 7 7 9 5
20110104 1+3-1 1 1+2-2-1-11+ 5 12 4 4 5 6 6 3 6
20110105 0 0 0 1-1-1-1+1 4+ 0 0 0 3 3 3 5 4 2
20110106 1+0+0 0+0+1 2 4+10- 5 2 0 2 2 4 7 32 7

I want to remove space, + and - mark so that I can get the below such data :

20110101 1 1 0 1 1 1 1 2 8 5 3 0 3 4 5 3 7 4
20110102 1 2 0 1 1 1 2 1 9 5 6 2 3 3 5 6 5 4
20110103 1 1 0 1 1 2 2 2 10 3 3 2 4 4 7 7 9 5
20110104 1 3 1 1 1 2 2 1 11 5 12 4 4 5 6 6 3 6
20110105 0 0 0 1 1 1 1 1 4 0 0 0 3 3 3 5 4 2
20110106 1 0 0 0 0 1 2 4 10 5 2 0 2 2 4 7 32 7

Is it possible by using awk?

View 7 Replies View Related

Software :: How To Deal Files With Space In Names

Jul 15, 2011

I have a bash file as following:

Code:

#!/bin/sh
deal_file(){
printf $1

[code]....

so the for loop spilt the file names if containing spaces, how can I fix the bug?

View 6 Replies View Related

Hardware :: Printer Prints White Space Very Slowly?

Feb 12, 2011

I have successfully gotten my Canon MX300 Printer to work with CUPS. The printer works great, but for some reason it prints out white lines incredibly slow. The printer acts as if it is printing out actual text, e.g. if I have half a page of empty space, it prints it line by line for some reason... Anyone know what may cause this? I know that CUPS is not ideal with all printers, but it did not do this at first actually.

View 2 Replies View Related

General :: Printf White Space - Words Splitting?

Jun 15, 2010

I am having trouble keeping the name together and the phone number together, I think due to the white space. I have tried "" and '' it doesn't seem to matter. So it may be my syntax? and does it matter how long the first and last names are.

me$ echo 'fstname lstname' '123 123-1234' | ./myscript
#myscript
read a b
printf "%-15s %20s
" $a $b >> my_phone_numbers
OUTPUT

fstnamelstname
123123-1234
insted of
fstname lstname
123 123-1234

I know its not an elegant script but I am still learning how some commands work.

View 2 Replies View Related

Ubuntu :: PDF Functions Does Not Work Properly Under O/S (print And Save)

Feb 18, 2010

This is about the 3rd or 4th year that I have tried to fill in my Federal tax return on the IRS website using Ubuntu/Firefox/pdf program(s). Still to this day the PDF functions found available (or should I say unavailable) (whether using either EVINCE or ACROREAD) for this O/S will not properly function in allowing you to CONSISTENTLY complete a PDF IRS form on their website, print and then save that completed IRS form to the hard drive of your computer. This is sort of ridiculous! Yes, I have report this as a bug NUMEROUS times and it is still not fixed.

View 9 Replies View Related

Ubuntu Networking :: Connected Via Usb File Goes To Print Que But Will Not Print ?

Aug 14, 2010

Just installed drivers for Lexmark pro200 - S500 series. However although it is recognised by the system and has a tick by its name, And tells me it is connected via usb file goes to print que but will not print. Also tells me it is Printing - localhost! is this correct?.

View 1 Replies View Related

OpenSUSE :: How To Get Rid Of White Space / Make Document Actual Real Legal Size

May 7, 2010

I scanned a document with xsane and saved it as a pdf, the pdf shows up great but there is extra white space at the bottom of the document. how do i get rid of the white space and make the document the actual real legal size?

View 2 Replies View Related

Hardware :: Wine - Can't Print Properly To Legal Sized Paper

Jul 6, 2011

I'm trying to set up a customer who has two printers attached to their computer one is some sort of okidata color laser printer, which seems to work fine the other one is a brother HL-4040CDN, which prints fine from a Linux based application such as open office.

When i try to print from a program in wine, however, I can't for the life of me get it to print properly to legal sized paper, it doesn't complain about paper size or anything, it simply crops the print size to that of letter sized paper even though I tell it the paper size is Legal.

I have tried setting the default paper size on the printer's firmware settings, I have tried setting the paper size in cups both through the printer preferences applet and the web interface, i have tried telling the program to print to legal paper and the only thing i can affect is which end of the paper it prints to, i have even tried different drivers for CUPS, i'm not sure if the problem is wine, the program, the printer, or how wine talks to the specific printer via cups (the other printer prints fine) i am using ubuntu 10.04 or 10.10.

View 1 Replies View Related

Ubuntu :: Ext4 File System Hosed After 11 Upgrade (duplicate Directory & File Names)?

May 8, 2011

I recently upgraded to Ubuntu 11 and a few days later my ecryptfs filesystem began misbehaving in a weird way. In my home directory, many subdirectory names are duplicated verbatim. Here's an ls -F excerpt:

Desktop/
Desktop/
Documents/
Documents/
Downloads/
Downloads/

I can no longer access files in those directories (if I ls the directory, it appears empty; I can cd to it, but there's nothing inside). Not all of the directories are duplicated/damaged like this, but most are. A few non-directory files are also duplicated in this fashion, so for example:

[Code]...

View 5 Replies View Related

Software :: Rear File Names To Creat A Comma Delimited File?

May 22, 2010

I am looking for an application that will read the file names in a folder and generate a comma delimited file. I want then to import the comma delimited file contests to a spread sheet such as open office.I hava a number of PDF files generated from a scanner, each file with its own scaner generated file name. I want to put these into a data base so I can add the title and other reference information to provide a data base.

View 7 Replies View Related

General :: Printing From Bash Shell / Concatenate Files Into One File With File Names Included?

May 11, 2011

I am supposed to take some small files, and print them to a specific printer, such that the small files are concatenated into one file. The file name has to be included in the file that gets printed.

Should I be looking to concatenate the files into one file with the file names included, and then print them?

something like: -printfunction -printername < file*

View 7 Replies View Related

General :: Why Are 0 's Escaped In Hexdump

May 10, 2011

I was looking at this file that was padded with 0's in hexdump. I noticed the 0's were escaped so they would be literal 0's. Why is this?

View 1 Replies View Related

CentOS 5 Server :: Want To Know File Handles / File Names At NFS Client

Nov 16, 2010

In case that NFS client of fedora is set to cache nfs file handle, where is the cache stored such as /var/lib/nfs?If it's stored in memory instead of directory tree, what command can I know the combination of file names and file handles with?OS in my test environment: Fedora Core 6

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

General :: Pass A Variable To A Function That Already Being Escaped?

Jul 28, 2010

What i want to do is create multiple informix sql statements & later run them via a bash script.

Here is what i have so far (this works) but is meant to be run from a cron job so it only does one day at a time:

echo "
update hst`date --date='yesterday' +%m%d%y`
set x = 'GARP'
where y in ('CRE', 'LAC', 'SRL', 'JAG', 'JNM', 'BIM')
and appl = '';

[Code].....

The problem here is it doesnt want to read the variable $x correctly so the statement fails.

View 1 Replies View Related

Debian :: Print Command ( Print A File ) In Debian Through Comand Prompt ?

May 5, 2009

I have a debian system installed on my pc . I have just saved a text file on my desktop . Please let me know how can i print the file through comand prompt ? I need to learn the printing the file thru comamnd line .

View 1 Replies View Related

Ubuntu :: Add Or Locate The Usb-serial.h File?

Jan 1, 2010

I am trying to get the ti_usb_3410_5052.ko driver installed but it gives a an error saying that "cannot locate the usb-serial.h file." Kindly let me know how to over come this problem. I saw in this forum about a patch but it is not working.

View 2 Replies View Related

Ubuntu :: Load A PDF And Print It And Only Said "print To File"

Feb 28, 2010

Here we go, error 4,384,239,283 in Ubuntu I was trying to load a PDF and print it and only said "print to file" So I go to System >Administration>Printing, and it says "Starting Printing." at the bottom, and then goes away... Sigh, anyone knows whats going on?

View 5 Replies View Related

Programming :: Md5sum Bash Script With Escaped Characters?

Apr 15, 2010

I created a file holding all the md5 values of my files to find duplicates as follows: find /mnt -type f -print0 | xargs -0 md5sum >> ~/home.md5

I then tried to find duplicates and do ls -l on the result in such way: cat ~/home.md5 | awk '{print $1}' | sort | uniq -c | sort -nr | awk '{print $2}' | head -n 10 > ~/top10.md5

Now I attempted to do an ls -l on the files using the command: for i in `cat ~/top10.md5`;do grep $i ~/home.md5 | while read checksum path; do echo "`echo $(printf '%q' "${path}")`" | xargs ls -l; done; done

This works well on most files, however it does not work when filenames have special letters in them that gets escaped such letters with accent etc. These become for examle 303.

Are there any ways I can use the escaped 303 strings with path names, or any better way I can do this?

View 2 Replies View Related







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