Ubuntu :: How To Scan To Text File

Feb 10, 2011

Neither my Simple Scan nor the Xsane image scan facility appears to be able to scan a typed document to editable text. Is there software available to enable this facility on Ubuntu 10.10 using my HP Officejet 6313?

View 7 Replies


ADVERTISEMENT

Fedora :: Scan And Save As A Text File?

Apr 26, 2010

Fedora12/Kde4After a Sane Scan how do I Save a scan as a *.txt file ? gocr does not work, I can save in any other format but a txt file.

View 6 Replies View Related

Programming :: Write A Utility Which Will Scan In A Text File And Search And Replace Strings?

Jul 16, 2010

Something very handy to do in a Linux shell, is manipulating files and strings - essentially parsing data. Write a utility which will scan in a text file and search and replace strings. We also want to keep track of how many strings we've replaced.

I know that my command would look like this: <utility name> <filename> <stringToSearchFor> <stringToReplaceWith>
Code: #!/bin/bash

[code]....

View 2 Replies View Related

Software :: Scan The Text For Patterns?

Apr 4, 2011

I remember using some dos program that would scan text files for particular words/patterns. It had an ncurses-like interface and if I'm not wrong its name was "Concord". Is there anything like that on linux? The main functionality was as follows:

1. support for regular expressions

2. print lines containing a particular word or pattern (highlighting it) and printing the surrounding lines.

3. print lines containing a particular word or pattern only if another pattern occurs within N words to the left/right.

The second point is easy to achieve in grep. The 3rd one could be done in awk. The problem is that as much fun as it would be to put it all together and embellish with some nice ncurses interface(eg. with dialog), I don't want to reinvent the wheel. Besides, I have just relocated and have been waiting for my phone line welcome pack for almost 2 weeks now (ie. no internet apart from work and mobile phone), which makes it difficult for me to get anything done.

View 2 Replies View Related

Ubuntu :: Sort The Output To A Text File So That It Prints To The Text File At 1 Process Per Line?

Feb 6, 2011

im trying to output a list of running processes via a shell script. At the moment i got this which outputs the processes to a text file called out.

echo $(ps aux) >>out

The problem is though, the processes are all just one big block of text which makes it hard to read. Does anyone know how to sort the output to a text file so that it prints to the text file at 1 process per line? I know its probably simple but im very new to linux.

View 5 Replies View Related

Programming :: Remove Lines In A Text File Based On Another Text File?

Jan 28, 2009

I have a text file called file1.txt containing many lines eg.

line1
line2
line3
line4
line5
line6

Then i have another text file called file2.txt contains

3
5
6

Is there a command to remove the lines in file1.txt based on the keywords in file2.txt? note: It should remove line3,line5,line6 based on 3,5,6

View 10 Replies View Related

Ubuntu :: Add / Remove Bits Of Text From A Text File

Dec 6, 2010

I am looking for a way to keep a log and make if then statements if a line exitsts in the log. I also am looking for a way to make a simple loop, like goto line number, and I also am wondering how to add/remove bits of text from a text file (plugins line in server.properties)

View 5 Replies View Related

Ubuntu :: Clamav Scan File With Url?

Dec 15, 2010

I see the documentation of CLAMAV in[URL].. The example for scan mail with pishing url is

Quote: clamscan -i /home/user | mail user@example.com
and also
Quote:
clamscan file
for scan a file

But how to SCAN a file have only inside a list of URL for get the url's inside the file have any malware, pishing or virus

View 1 Replies View Related

Fedora :: F14 Gnome Text/plain Versus Text/html File Type

Apr 2, 2011

I put a text file on my desktop and added a couple lines of text with gedit. File type shows text/plain. Double-click opens the file in gedit which is what I want. I'm using the file to temporarily hold some snips of code that I copy from file to file, but when I copy some html into the file and save it, now file properties show it's text/html and a double-click opens the file in firefox, which isn't what I want. Is there some way to keep the file type from changing itself?

View 6 Replies View Related

General :: Replace Text In One File With Text From Another File Using Sed?

Apr 28, 2010

How could I replace text in one file with text from another file using sed?

The text in each of the files would be surrounded by a starting and ending delimiter or a starting tag, say like /* */ so to easily find them.

View 8 Replies View Related

Software :: Use Sed To Include A Text File In The Beginning Of Other Text Files Inside A Folder And Its Subfolders?

Jun 1, 2010

Can I use sed to include a text file in the beginning of other text files inside a folder and its subfolders? So it should be recursive.

View 4 Replies View Related

Programming :: Adding Lines Of Text To Beginning Of Text File

Jan 19, 2009

I need to insert 3-4 lines of text to the beginning of a text file. The file is a largish MYSQL dump, the result of a backup shell script. This shell script should insert the required text.I've wrestled with sed, but lost.

View 2 Replies View Related

Programming :: Delete Line Of Text From Text File Via Shell?

Jan 13, 2010

I have to delete a certain line of text from the a textfile via ubuntu's shell scripting.I have done research, and it seems that most people advocate the usage of sed /d option. sed makes does not edit the text file. Hence, most options I discovered involved the use of a temporary variable/textfile and then overwriting the old file with the temporary new file. Is there anyway whereby I can bypass the use of temporary storage containers? I hope there is any magical combination of commands to edit the file directly.

View 3 Replies View Related

Programming :: Exporting Glade Text View To Text File?

Jan 8, 2011

I want to display something in my text view widget in glade using c code. that's all right.
now I need to attach a save button beneath the text view.so that on click the text view content should save as a txt file..

View 8 Replies View Related

Programming :: Formatting Fields And Text Being Displayed From Text File?

Feb 9, 2011

I want to display the contents of a particular log file (simple text file, I mean in Linux). But there is a problem: The contents need to be organized in a fixed format. Have a look at this log file:

sampleLog.txt

Code:

User Name: XYZ
Reported Problems Description: Blah! Blah! Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah!

[code]....

So, while displaying the contents of above file on a web page, I want to format the field names found in the log file: User Name:, Reported Problems Description:, and Remarks:. These fields may contain a variable length of text and no specific line number is assumed for them to appear on.

The desired output should look like this:

User Name: XYZ
Reported Problems Description: Blah! Blah! Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah!

[code]....

Well, what I am trying to do may sound wierd to some of you. The filed "Reported Problems Description:" can possible contain text which embeds colon (.

View 15 Replies View Related

Debian :: Eeepc Wifi - Every Time Scan For Network Using Iwconfig Wlan0 Scan Or Wicd And Computer Completely Freezes

Jan 9, 2011

I installed squeeze on my eeepc 1015ped and downloaded the correct firmware-brcm80211 drivers but every time I scan for my network using iwconfig wlan0 scan or wicd, my computer completely freezes. I previously had a solid install running xmonad, and wicd was working like a charm (using the same broadcom driver) but i tinkered too much with it and decided to do a fresh install. I haven't quite run into a problem like this before.

View 2 Replies View Related

Programming :: Add Text Before Line Number In Text File?

May 3, 2010

a sed command to add a text before line number in text file? I have text file with 500 lines, and i want to add 3 more lines with text after line 300, OR before line 302, isn't no problem.

View 16 Replies View Related

Programming :: Scan In A File Which Has The Format?

Apr 3, 2011

I am trying to scan in a file which has the format of

Quote:
username:password
hello:world
right now my program says
Code:
Scanner fin = null;
try
{
fin = new Scanner(new FileReader("proj1/passwd.txt"));

[Code]...

How do i correctly use delimiter to take in only the strings on one line?

View 1 Replies View Related

Ubuntu :: Nautilus Clamscan File Or Folder Scan Freezes

Aug 13, 2010

I decided to check out nautilus-clamscan, in which all it does is add an option to scan the selected file or folder for viruses in the context menu, and while it works fine for some things highlighted, for some that I've randomly tried it freezes, and won't complete scanning. using the usual method of scanning for viruses through Clamtk, it scans those files and folders just fine, so it's not those themselves that's causing the freezing.

View 8 Replies View Related

Debian :: Disabling The Nautilus File Scan?

May 18, 2010

Whenever I open a folder with the default browser (Nautilus), it does a quick scan of the contents. This is not a problem for normal folders, but it becomes one when a music folder contains several thousand files (I haven't yet tried with folders containing large amounts of non-music files). In such instances Nautilus sits there scanning and I can hear the hard drive seeking for a good while before it presents me with the contents of said folder. My music folder, for instance, contains some five thousand ogg files, and I have to wait *counts* a full minute before it displays its contents. I tried telling it to never count the number of files in the options, but it didn't help. So far, the only solution I've found is to use pcmanfm instead, which apparently does no scan and displays my music folder practically as soon as I click on it. Still, I like Nautilus more for everything else, so I'd much rather use that instead.

View 6 Replies View Related

General :: Scan Through A File And Enter The Data In Multiple Files?

Sep 1, 2010

I have a file which contains the data i retrieved through prstat and an array that contains all the unique process ID's of that particular file. i want to compare each and every line in the file with each and every element of the array so that i can create multiple files for the multiple value in the array.

View 6 Replies View Related

Server :: Scp Truncate Text File Busy - Copying File Is Not A Running Binary?

Jun 14, 2010

I am having problems with scp during a backup operationI added a ps -ef before and after the scp operation used during the backup.The backup is a script to backup a Zimbra ServerI am including the code segment that I am having problems

Code:
# DRCP Section. To scp newly created archives to a remote system
if [ "$DRCP" = "yes" ]

[code]...

View 3 Replies View Related

Programming :: Script To Copy Paste Text From One File To Another (overwriting Part Of The File)?

Apr 19, 2011

I have a .txt-file with ~50.000 lines of numbers, generated by a mathematics program. From this file, I need line ~ 1.100 to line ~16.000 (these lines are always the same btw, this may make the solution easier, dunno) to be copy/pasted to another file, where the lines ~500 to ~15.000 (also, every time the same) should be overwritten by the aforementioned lines...I haven't found or come up with anything that works yet, mostly I find solutions to copy everything from one file to another but I can't find something to specifically overwrite a part of a file with part of another.

View 4 Replies View Related

Red Hat / Fedora :: Convert Plain Text File To Html File Without Using Perl?

Jun 9, 2010

I am looking for some source package which will convert plain text file to html file without using perl.

I mainly need to do this on an ARM platform, so if I get sources I can cross compile it.

View 5 Replies View Related

General :: Convert An HTML Email Saved As A Text File To A PDF File From The Command Line?

Aug 23, 2011

I need to be able to convert HTML email messages saved as text files (.eml or .msg) to PDF documents, one PDF per email, retaining formatting and images.

Are there any Linux tools that will allow me to do this from the command line (so it can be scripted)?

View 1 Replies View Related

General :: Ubuntu Saving A Scan To "Document" File Using A HP Scanjet 3500c ?

Feb 22, 2010

Request help with scanjet 3500c operation. xSane .996 in Ubuntu sees scanjet and scans. As soon as scan completes, the xSane windows(2) disappears and there are no copies in the intended save folder in Documents. Upon original attempt, the xsane windows had an additional third "Preview" window which has not returned since that first scan attempt?

One is not a computer guru by any imagination!

Info; the scanjet worked very well on the other "doze OS" and seems now, does not in the Ubuntu OS. In Doze, there was also a program for a HP PhotoSmart 3200 running and when I added the scanjet it might have been happy with that driver. Currently I do not have access to the driver disc for the 3200 with me. Too, it now takes ~45+ seconds for the scanjet to begin as compared to 2 - 3 seconds on doze.

Some internet self help searching seems to suggest the xSane 1.0.18 is the driver choice to use with the HP 3500c scanjet. When attempting to download, an archive "Failed" notice appears. I am a bit lost from here.

View 1 Replies View Related

Software :: Check The Contents Of A Text File For A Specific String And Remove It From The File From The Command Prompt?

Oct 14, 2010

I want to be able to check the contents of a text file for a specific string and remove it from the file from the command prompt. I would basically be searching through a number of files and if a specific string is found I would like it removed automatically. pretty much a find and replace, were the replace is nothing. any one got any ideas on how you would do this. I already have the search part sorted just need to be able to remove the string I don't want from the multiple files.

View 4 Replies View Related

General :: How To Verify If The File Is Binary Or Text Without To Open The File

Sep 7, 2010

how to verify if the file is binary or text without to open the file

View 2 Replies View Related

Red Hat / Fedora :: Edit A Text File To Delete All Commas In The File?

Jan 4, 2011

i want to find a command line way to edit a text file to delete all commas in the file. i do not want to replace them w/ anything.

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







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