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
ADVERTISEMENT
Jul 28, 2010
How to output to a text file the compound command:
Code:
find -type f -print0 | xargs -0 grep -l "desired text"
I have not been able to find the answer.
[code]...
View 5 Replies
View Related
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
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
Nov 2, 2010
I am trying to store the results of my code to a separate text file.But the problem is, as my results comes from a loop, my text file shows only the last result, not all of them.Like if the loop runs 5 time the text file shows the result for the 5th step.But i need to store all of them (1 to 5).Can I use awk to print the output field and store to another file and creat a new line so that the next output field goes to a new line?(just an idea, dont know).
#!/bin/basth
for (( i=1; i<=5; i++))
do
./file.exe > output.txt
done
View 2 Replies
View Related
Jul 11, 2011
I am looking to edit a great script made and posted by wje_1q Here I would like to be able to save results to a txt file is this possible
#!/usr/bin/clisp
(defparameter *character-set* "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ")
;(defparameter *character-set* "ABC") ; < --- this line is for testing
(defparameter *word-length* 10)
[Code]....
View 4 Replies
View Related
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
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
Aug 12, 2010
Enabling visual effects to either of normal/extra result in a serious problem-scrolling down any page results in overlapping of text, which is corrected only when i minimize and maximize the window.
View 4 Replies
View Related
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
Aug 12, 2010
I'm trying to do a
find /photos/* -type f -mtime +365
to find all my pictures that are over a year old, but I keep getting argument list too long. How can I view what all the results are, even if it just dumps it to a file that I have to open?
View 12 Replies
View Related
Apr 4, 2010
how do you clear the highlighted results after searching in elvis and other text viewer programs such as less?Also I know it's been mentioned before, but why does pat prefer elvis to vim? Just a personal preference?
View 9 Replies
View Related
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
Oct 20, 2009
I want to configure file printer (print to file) on my rhel-5 machine in such a way that if users fire print command from windows xp it should create an individual computer wise txt file on my linux machine. File name should be different for each printer.
View 2 Replies
View Related
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
Apr 6, 2010
I'm timing how long it takes to run a command foo. I'm looking to append the results from the time command to a file, and discard the results from the foo command. I tried the following, but it didn't do what I want:
$ time ./foo > /dev/null >> output_from_time_command.txt
View 1 Replies
View Related
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
Sep 16, 2010
After adding a remote IP printer ,the printer print successfully the test page,but when i tried to do :lp -dprintername filename the following error occured:
unable to print file: client-error-document-format-not-supported - msg
View 4 Replies
View Related
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
Sep 7, 2010
how to verify if the file is binary or text without to open the file
View 2 Replies
View Related
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
Apr 29, 2010
I am creating a script to sync my important documents between two system. I want my script to generate a log file for the last action. can you suggest me a way to achieve this.Question: If I execute the rsync command with -v flag, it will print a lot of messages on the console. Is there any way. So, I can redirect these logs to a file?
View 4 Replies
View Related
Jan 25, 2009
I love the look of FreeNAS, but it does'nt do print server!
Must Have:
Run off a USB Flash Drive
File share with Windows (I want to backup to it)
Be a print server to a laser printer (USB interface)
Be remotely controlled once it is setup(don't have a spare screen and it's going in a spare room/corner BUT I will need to use a GUI for setup)
Free (thats why I won't use Windows)
Run OK on a P3
Preferred:
Power management
Wireless adapter compatible
View 2 Replies
View Related
Apr 6, 2010
# echo "foobar" > /tmp/word
# cat /tmp/word | wc -m
7
I want to print the number of characters in the file. Why does it output 7? Am I missing something obvious?
manpage:
-m, --chars
print the character counts
View 3 Replies
View Related
Mar 8, 2010
i'm trying to convert a html file into a text file when i simply run "html2text <filename>" the output displayed is the way we want but when i redirect the same using "-o" or ">>" the file is having extra characters in it. i even tried -ascii,but no much use.
View 4 Replies
View Related
Sep 19, 2009
favor and let me know how can I copy some text in one file and paste it to another file ,when both of the files are being opened by vi text editor ?
View 7 Replies
View Related
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
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
View Related
Jan 17, 2010
I have a spare machine that has windows XP installed on it and pretty much sits there doing nothing. Both myself and my GF have laptops that we use as our primary machines so I figured I'd just use the spare machine as a file and print share.
Now, I know that I can simply keep XP on there and enable what I need, but Im wondering if I might be better of wiping the thing and installing a linux based os instead.
There's no real reason for me to do this (except that I want to play with linux) so I guess my questions are, is there any point in me doing this? If so what can I do with this machine other than filesharing and what do you reccomend as a fairly light linux installation? Also what else could I use this spare machine for?
View 6 Replies
View Related
Sep 9, 2010
file1: have DNA sequences and each sequence will begin with > symbolfile2: have protein sequence and each sequence will start with > symbolfile3: BLAST result of file2 and each result will start with query= .my problem is i have to make a report file by combining these three in such way that first sequence from file1,first sequence from 2nd file and first result from file3 should be printed in a report file
View 14 Replies
View Related