Software :: Making Pretty Print From Various Text Files

Jul 5, 2011

I have various text files -- some "source code", some "data files" -- that I'm formatting with enscript. Can someone answer some questions about use and workings of enscript?

1. How does enscript know which printer to use as a default? My command lines do not specify a printer but output makes its way to the system default printer. Neither PRINTER nor LPDEST are set in the environment. So what is enscript using to learn the default?

2. How do I get --landscape to work as an enscript option? Whatever enscript sends to the printer accomplished the N-up and other formatting, but the content appears portrait instead of landscape?

3. Running Ubuntu Lucid desktop, I also use CUPS and HPLIP for printing. Need to understand the interactions among the desktop CUPS and bash shell command line access to printing? I tried viewing the environment looking for printer and similar variables. 'set' showed a group of shell functions instead of environment variables. I'm confused.

Follow-up: The functions were all ImageMagick details. (blush) The variables went by so fast I missed them. Even so, I still don't find anything to tell 'enscript' which printer is default.

View 1 Replies


ADVERTISEMENT

Software :: Seeking Software To "pretty Print" Vcard &c Data

Nov 3, 2010

I have a group of data files in vCard format. I'm looking for a script or other utility that will read these vCard files and create a "pretty print" document from each. <idea=1> I could create a PDF "form" that is my "pretty print" result. I'd then want to feed each vCard into something that would properly populate the PDF form. PDF "forms" seem to require commercial software from Adobe(R). If there are FOSS options for PDF forms on linux, that would be special.

</idea>
<idea=2>
Similar to Idea #1, except using some other document format like ODT instead of PDF.
</idea>

While I can program open-process-write against any data file, I don't know how to do either of these output formats.

View 1 Replies View Related

Software :: Join 2 Text Files Based On First Number Present In Every Line Of The 2 Text Files?

Jan 22, 2010

I have 2 text files : file1.txt and file2.txt

cat file1.txt

15 this is a sentence containing various words and spaces
34 this is a another sentence containing various words and spaces

cat file2.txt

2 this is sentence1file2
6 this is sentence2file2
54 this is sentence3file2

I would like to join these 2 files. The result should look as follows :

cat joinedfile.txt

2 this is sentence1file2
6 this is sentence2file2
15 this is a sentence containing various words and spaces
34 this is a another sentence containing various words and spaces
54 this is sentence3file2

==> so the joined file must be sorted on the first number. Any ideas how this can be achieved ?

View 4 Replies View Related

Ubuntu :: Cannot Print PDF Files - Print Preview Shows A Blank Page

Jun 5, 2011

I cannot print pdf files. I have tried using okular and xpdf. The documents display in the program, but print preview shows a blank page. The printer then sends out blank pages. I have tried printing on 2 different printers using usb cables. Using terminal to process the commands shows error:

Quote:
xxx@xxx:~$ xpdf
***** MediaBox = ll:0,0 ur:611.976,791.968
***** CropBox = ll:0,0 ur:611.976,791.968
***** Rotate = 0
Segmentation fault

Converting to .ps also is blank.

View 6 Replies View Related

Ubuntu :: Making Booklets - Print Document To PDF File?

Apr 3, 2010

I've seen lots of threads about this with complex solutions using things like PSUtils etc. but nothing simple and easy. Is there an easy way to print to a document to a PDF file so that it is properly formatted to be printed as a booklet?

For example, a 12 page booklet made up of A4 folded in half to A5 -
1st page = 12 & 1
2nd page = 2 & 11
3rd page = 10 & 3 etc.

So that when it is printed double-sided it comes out as a booklet. The site at the following link does what I want perfectly if I upload the booklet in single pages format, but it would be nice to have a simple way to do it offline in ubuntu [URL]

View 4 Replies View Related

Ubuntu :: Bash Scripting: Making A Text File

Jul 12, 2010

I am tying to write a script that asks for user input and saves it to a text file using awk so example #!/bin/bash read a awk #saves to file

I had a working scripted last night, deleted it by mistake and for the life of me can not remember how i did it.

View 2 Replies View Related

General :: Use AWK To Print Out First Few Lines Of A Text File?

Jul 27, 2011

I have a few rather large text files, and I need a way to look at the first three lines of each. Is there a way to do this using awk?

View 3 Replies View Related

Software :: Making A Bash Script To Read In Different Files And Rename Output Files?

May 7, 2009

Until now i haven't had to dabble with bash scripts.

I have a program that reads in data files. These are named datafile01_R, datafile01_G, datafile01_B, they then increment, so datafile02_R etc i have about 600 of these. the program reads in 3 data sets at a time from each run, so files_01 r, g, and b.

The program then does its magic, and outputs about 40 different files, depending on the file, they gone to folders named R, G, B, psa, or tracking.

The program itself has configuration files to say where the files should gone when analyzed, there is also the config files that reads in the data sets.

At the moment i have to run one set of data, then go in and manually change the input file location, and run again. But, doing this, even though a different data set, the new set overwrites the old set in one of the output folders. So i need a way to increment the output filenames after they are written and before the program is run again with the new data set.

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

OpenSUSE :: Some Applications Not All To Print Text In Landscape Correctly

Apr 28, 2011

My setup:
openSUSE 11.4.
Acer Extensa 5635ZG
Epson Stylus Photo PX710W, connected with WiFi

I have just discovered that I can't print text from libreoffice writer/calc if the layout is set to landscape. The letters seems to have been stretched and printed over each other. If I print the same document in kword/kspread everything is printed as it should be. I have generated a pdf of the document and printed from okular/acroread, even then it's not printed correctly. Although it looks ok in okular/acroread. What else that can be seen is that when it's wrongly printed the printout is printed in the opposite direction compared to when it's printed correctly. I.e. the tail comes first on the paper so to say. Where should I begin to search for faults?

View 9 Replies View Related

General :: Print Some Results In Text File Using Script

Feb 27, 2011

I am writing a script which would just print following kind of result into a text file (result.txt)

Code:
XYZ test Results
ID: <unique-id> Date: <date>
-------------------------------------------------
| Task | Result | Time |
-------------------------------------------------
| <task1> | <Result1> | <time1> |
| | | |
-------------------------------------------------
AD No: <adn> Generated Date: <tdate>

Above all the values of <something> are dynamic or predefined.

View 3 Replies View Related

CentOS 5 :: Text User Interface To Configure Text Files

Nov 5, 2009

I would like to write a text user interface (TUI) to adjust some text config files etc. Is there a tool or application for creating TUIs like this. I�m talking about those types of config tools which you see executed at first boot.

View 19 Replies View Related

General :: Loop Append Text To Text Files?

Jan 15, 2010

may be an advanced question but I need to know how to do this. Here at work I am in charge of recruiting and we have about 1,000 resumes in already. All of the resumes are in a .pdf format. I need to rename every .pdf in the following format:{firstnameLastname}.pdfThe only way I know how to do this is to convert all the .pdf files to text, extract the name out of the first few lines of text, import into excel, and then use VBA to rename the files in mass:Here is my logic so far:~Deskop/a = houses all the .pdfresumesOpen terminal: Code: cd ~/Desktop/afor f in *.pdf; do pdftotext -raw $f; done That will convert all of the preceding resumes into text filesNow I would like to append the name of the text file into the last line of the text file. So, for example, for Resume1.txt, I want to append "Resume1.txt" to the last line within Resume1.txt. So after I run the command I open Resume1.txt and on the last line within I want to see "Resume1.txt" on the last line, at the end of the resume.How can I do this? I would like to use a loop and have the terminal append the filename to the body of the text file until all of the have been appended.

View 1 Replies View Related

General :: Search Text In All Text Files Of All The Sub-directories?

Apr 21, 2010

Currently, when I'm searching text in files of my PHP project, I use this line :

Code:

grep -r 'myTextToFind' *

But now, I would like to search only in ".lang" files. How can I do that ?

View 7 Replies View Related

OpenSUSE Install :: Screen Print Some Text About Half Second And Goes Black

Jul 27, 2010

When installer is loading linux kernel and it goes to 100%, the next thing that I can see is black screen and can just use shut-down button. This situation appears about 90% tries. After 7 reboots I installed Suse successful but the problem appears also now. Just after select Suse in GRUB, the screen print some text about half a second and it goes black. Sometime I can start system normal. I use openSUSE 11.3 Intel Core 2 Duo 2GHz, 4gb ram, Geforce 8600M GT graphic card

View 6 Replies View Related

Ubuntu :: Can Force Evolution To Print Plain Text Instead Of HTML

Sep 27, 2010

When I print receipts from certain company's emails, they span three pages or more bloated with images, links and overly large text. I can view the message in plain text by setting the preferences to only display text instead of html, but it doesn't affect what is printed. I still get the full HTML page printed. Is there a way to force evolution to print in plain text instead of HTML?

View 3 Replies View Related

General :: Cups Generic Text Only Doesn't Print 255 Characters?

Dec 26, 2010

I configured cups and I managed to print successfully with generic text only but my problem is that the printout always comes out as 80 columns. anything more than 80 colums wraps on the next page. I tried changing the pagesize at the textonly.ppd but it didn't work.my textonly.ppd is

*PPD-Adobe: "4.3"
*%
*% Text-only printer definition

[code]...

View 1 Replies View Related

General :: How To Print Part Of Text File In Bold And Color

Jul 6, 2011

I have a procedure say X
output of X is :
Fund name: Mutual
NAV is: 1234

So I appended this output into a file using shellscript. But now my requirement is changed. The part of output like Fund name and 1234 should be in bold. How can I do this using shell script.

View 14 Replies View Related

General :: Command Line - Print A Group Of Text Matching A Regex?

Sep 22, 2011

I'd like to print only few groups from text matching a regex. How can I do that in the Linux command line?

What other tools for text processing are there in Linux?

View 3 Replies View Related

Ubuntu :: Making Some Files (Run Only)

May 29, 2011

Is it possible to disable the run/display/cancel dialog just for some selected files and keep it for others? I want to be able to just click on some files which would run them instantly yet still being asked what to do if I click on other files. Say, launching files a, b & c would make them execute but launching files d, e, f and all others would pop-up the dialog asking me what to do. So can it be done?

View 6 Replies View Related

Programming :: Command For Find/Replace In Text Files (inc. Files In Sub-folders)?

Oct 11, 2010

I found this command that works great finding and replacing a simple string to another in files located in that folder and all sub-folders.

Code: find . -name '*.php' | xargs perl -pi -e 's/OldText/NewText/g'

The problem I have is that I need to replace a more complex string, like this: Old string: /mnt/stor6-wc2-dfw1/627896/982574/ New string: /mnt/stor8-wc2-dfw1/369587/302589/ There I don't know how to do it... since the / is what separates the old from the new strings, and the strings that I want to replace have / in it. Also, I would like to know how to specify under what folder replace the files, for example, I want that it search/replaces all files under /var/www/mysite/htdocs folder.

View 1 Replies View Related

Software :: Differentiate Two Large Text Files Using Shell Script / Files Are Like Below?

Jan 20, 2009

I want to automate this using script.How to automate it?

File1:
s.no# 1 name:aaaaaa
city:abcd

[code]...

View 1 Replies View Related

Fedora :: Compression Ratio For Text Files / Binary Files

Apr 15, 2011

Fedora provides several compression techniques. E.g tar, tar.gz, zip etc. I want to know which among them provides

1. the best compression ratio for text files

2. the best compression ratio for binary files

3. fastest compression

View 6 Replies View Related

General :: Convert Open Office (odt) Files To Text Files?

May 25, 2011

How do you convert Open Office (ODT) documents to Text files?
I have made a report using libre office. Now I wish to continue editing the document using lyx (latex front end). So the ODT file needs to be saved as some .tex file.

I don't see an option to do this in File menu (export/save as). So is there any other plugin to do this?

View 1 Replies View Related

Ubuntu :: 11.04 From The Live CD All Works Well And Pretty?

May 20, 2011

When ever I run Ubuntu 11.04 from the Live CD all works well and pretty. However, when ever I install it, my main monitor won't detect correctly and my second won't even display anything at all. Basically, Live CD runs perfect, Installation does not.

One other note: While running off the Live CD, there was no Unity. Running the actual installation, it is running Unity.. ?

View 1 Replies View Related

Ubuntu :: 10.10 - Making Blocked Files Executable?

Oct 14, 2010

I just upgraded to 10.10 (everything was working fine in 10.04). I have .jar files that in 10.04 would execute with OpenJDK. Now I get an error message, telling me that it is blocked:

"The file '[path]' is not marked as executable. If this was downloaded or copied from an untrusted source, it may be dangerous to run. For more details, read about the executable bit."

I try to set it as executable like it was before, and it's a no go. My checkmark takes then quickly disappears before my eyes.

View 5 Replies View Related

Ubuntu :: Making Playable DVD From Video Files

Oct 19, 2010

Does anyone use Ubuntu to make (video) DVDs? That is, not just burn an existing .iso, but take a number of video files (e.g. mpeg) and create a playable DVD from them.

View 2 Replies View Related

General :: Making Grep Find Files Containing '$'

Dec 5, 2010

I want to find files containing the "$" char (ascii 0x24). 'Grep -irl $ *' would output the names of every file in path *, of course, because it means end of line (EOL). So giving grep the string "$" won't do. So I tried 'grep -irl $ *'. But this doesn't work either and I do not understand why. Am I not escaping the dollar sign? grep should interpret it literally. Neither 'grep -irl "$" *' will work. Fortunately, there's LQ, besides grep's man page.

View 9 Replies View Related

Programming :: Making The Mplayer To Skip Some Files?

Jun 6, 2010

GNU/Linux kernel 2.6, Slackware 12.0
MPlayer 1.0rc2-4.1.2
GNU Bash 3.1.17

I've got a set of MP3 files on dir .../foo/ and I want mplayer to play them sequencely but skipping some of them. If I run 'mplayer *' this will do but ofcourse won't skip any files. I think a shell script could be written to do that. It would be something like this (using some pseudocode):

#!/bin/bash
#After an example from Intro_Linux by M. Garret.
LIST=$(ls *.mp3)

[code]....

View 3 Replies View Related

Debian :: Print An OpenOffice Or LibreOffice Calc With An Image And Text, The Image Is Not Printed (the Space Is Blank)

May 11, 2011

I have a Canon iR3570/iR4570 PXL, and installed the driver CQue 1.0 TCP/IP Queue from Canon webpage.

The problem:
- if i try to print an OpenOffice or LibreOffice Calc with an image and text, the image is not printed (the space is blank).
- if i try to print an OpenOffice or LibreOffice Calc with just an image, it's printed great.
- if i try to print an OpenOffice or LibreOffice Impress, the images are not printed but the text is printed great.

[Code]..

View 3 Replies View Related







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