Having trouble with Linux homework problem
I'm really stuck in this one
I have to Format a file called yourscript, to contain viewable pages, a heading, date, double spaced, and line numbers and send the output to the printer. |
Welcome, BUT others will chastise you for not following 'how to ask questions':
what's your 'guess' on an answer, and more details... What 'research' have you done? Have you searched for tutorials? Also, tell us about what Linux you use.... Best wishes tho... A bit more & you'll succeed! hint: what do you think of: man pr |
My guess would be using the "pr" command, but I'm not sure how to add the date or line numbers.
What I have so far is: cat -n yourscript | pr -h”Heading” -dD | lp -printername |
GREAT! From reading `man pr`, can you eliminate the `cat...|`, and the 'D'?
Hint: Post 'code' (use LQ Adv. formatting) of what the -n does, from man pr Extra credit: edit just the title (post#1) to instead say: pr formatting options? If you don't have a printer, try |more instead of `lp`. Post what you try. Thanks for 'participating'! p.s. I was editing my #2, while you posted #3 ;) |
Jjanel has provided most of the good oil on where to go with this, so I will simply add that if you use [code][/code] tags around your code it is clearer and will stand out to those
trying to assist (this is also why it was suggested to use Adv. formatting :)) |
what tools are used in your textbook examples ?
you might want to use those also what is the input ? a html page? a xml file a CSV file ? |
Goo-ie 'Forensics' ;) http://pastebin.com/7RhB9V2d Apr 1st, 2015! LINUX EXAM ch4,5,8 ?#35
|
All times are GMT -5. The time now is 04:24 PM. |