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
ADVERTISEMENT
Jun 9, 2011
Is there a way to color particular words printed on console based on user preference? For example I need to color text 'error' when a particular program is compiled.
View 2 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
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
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
May 1, 2010
Can CUPS print to a color printer? And also do I need a GUI running on my computer in order for CUPS to work?
View 1 Replies
View Related
May 11, 2010
Is there a simple text editor for Linux that will let you color or highlight text on demand? Something like gedit or leafpad with color? I know I can probably do this with vi or emacs, but I'm looking for something simple, need not be feature rich.
View 4 Replies
View Related
Aug 11, 2010
OS is CentOS 5.5, and GNOME terminal emulator (v2.16.0). However I regard the question is not related with OS/Gnome version level. My question is whether if color setting is available or not for the text character outputted by kernel (or shell, i.e. Bash). Normally we can specify/modify text character color (and background color) with property setting on the terminal. However, it only takes affect to the text for inputting character, not for outputted character by kernel/shell. For example, when we type a shell command "ls -al <cr>", the text appears with the color along with the terminal property.
Meanwhile, the text message displayed on the console (output message against "ls -al" command), in this case it must be file and/or directory names, will appear with some preset color which we've not preliminarily set. In my case, I set Text color with "White", Background color with "Black". Then I expect the text output message color displayed by kernel/shell would be some brighter color. But the color is "blue" which does not look better brightness against "Black" background. For this situation what I'd like to know is how to set/specify the color outputted by the kernel/shell (or whether or not it is possible to set manually).
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
Jan 23, 2010
I am using Canon Pixus MP800, an equivalent model to Canon PIXMA iP4200, on Ubuntu Karmic 9.10. Print color on the printer is too pale on all applications (such as web page printing on Firefox, and picture printing on the image viewer). I run Windows XP on the same computer with dual-boot, and the print color is perfect on Windows XP. So, this is not a printer hardware issue, but a Ubuntu system issue.
How can I setup the printer to let it work properly?
OS: Ubuntu Karmic Koala 9.10
Printer: Canon Pixus MP800
Printer Driver: Canon PIXMA iP4200
Some Printer Driver Settings:
[Code]...
View 4 Replies
View Related
Apr 6, 2010
HP DJ1520
CUPS
print options set to color in both OS printer-options dialogue and CUPS browser dialogue.
printer successfully prints color test page from CUPS browser dialogue.
openoffice Writer print-preview shows document in color.
openoffice Writer printer-dialogue options set to color.
View 2 Replies
View Related
Apr 6, 2010
HP DJ1520
CUPS
print options set to color in both OS printer-options dialogue and CUPS browser dialogue.
printer successfully prints color test page from CUPS browser dialogue.
openoffice Writer print-preview shows document in color.
openoffice Writer printer-dialogue options set to color.
View 4 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
Apr 6, 2010
HP DJ1520
CUPS
print options set to color in both OS printer-options dialogue and CUPS browser dialogue. printer successfully prints color test page from CUPS browser dialogue. openoffice Writer print-preview shows document in color. openoffice Writer printer-dialogue options set to color.
View 1 Replies
View Related
Aug 19, 2010
lets say there is one very big file on some server and i just want to download first 1MB. How can I do it on Linux ?
View 2 Replies
View Related
Jun 10, 2011
I want to read values from a file...these are basically one word values, that is to say that the text file I want to read from contains lines of word length 1, as in:
word1
word2
word3
[code]...
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
May 5, 2010
I need a webserver (LAMP) running inside a virtual machine (#1) running as a service (#2) in headless mode (#3) with part or the whole file system encrypted (#4).The virtual machine will be started with no user intervention and provide access to a web application for users in the host machine. Points #1,#2 and #3 are checked and proved to be working fine with Sun VirtualBox, so my question is for #4:Can I encrypt all of the file system and still access the webserver (using a browser) or will GRUB ask me for a password?If encrypting all of the file system is not an option, can I encrypt only /home and /var/www? Will Apache/PHP be able to use files in /home or /var/www without asking for a password or mounting these partitions manually?
View 2 Replies
View Related
Aug 26, 2009
How do you rename:
abc123.txt
abc124.txt
abc125.txt
to
abc.txt.123
abc.txt.124
abc.txt.125
Basically, I want to move the digits from the filename to after the extension.
It works for one file if I type:
rename 123.txt .txt.123 abc.txt.123
but I have thousands of files like these.
View 1 Replies
View Related
Jun 11, 2011
one month at this stage and noticed recently that all automatic updates to my system have ceased, so I tried a zypper update from the terminal yesterday and believe it or not I got 1110 updates, about 7 deletions a 3 programs were changing architecture. This went all all day yesterday and finished sometime early this morning when I had to force a reboot as the shutdown button did nothing. After all those updates I do not notice any version upgrades for a few things I checked like Office, Amarok, DigiKAM etc but I am back to a most annoying problem that I had in my first few days i.e. my printer an Epson Stylus Color 760 is totally messing up 2nd and subsequent pages in a printout.
The last time this happened it seemed to sort itself out because deleting the printers discovered and their drivers did nothing. I am sorry to say it is putting me off SUSE 11.4 which I had liked BUT it is so frustating when I can't eben print more than one page correctly. I have come from Windows 7 where these problems did not exist.
View 9 Replies
View Related
Oct 8, 2010
I just upgraded to Maverick this afternoon, and have run into one very small, but very annoying problem.
Since upgrading, the text color for the Firefox menu is black. This makes it unreadable/invisible using probably the majority of personas. I have been able to find no way of changing this color. This was not an issue in Lucid.
There have been other threads on this subject, some of which suggest editing a userChrome.css file. I have edited that file, but upon restarting Firefox, the changes I have made revert back to what they had been before I made my edits.
I have also fiddled around with trying to change all manner of GTK settings, but still nothing has had any influence. I logged into a Gnome session, as well, but was still unable to remedy this.
View 2 Replies
View Related
Jan 29, 2011
I downloaded an .emerald + GDK theme off gnome-look.org and absolutely love it so far. The only thing I do not like about it is the fact that it changes the background color of all webpage text boxes to black, which sorta ruins a lot of sites. where I can modify just that little bit? the webpage text box color? I'd like to keep the theme and just set the text boxes back to normal. Using Ubuntu 10.10 Desktop Edition.
View 1 Replies
View Related
Aug 8, 2010
when I executed "man ls"...there is always colored text.I like to read "colored text"but, some color is too dark..."dark blue ???" I'don't know the exact name of color my background color is "black"
but, when I use "cscope->contrl+]" or "man 'ls' or 'someting'",there are always...very dark blue colored text.so, It is very difficult to read.if I want to change man page color..what do I do for that?I have to use "tera term.."plz, "don't say that "change your terminal program..""Except for changing utility, what else do I have to ..?
View 8 Replies
View Related
Jun 14, 2011
Kernel 2.6.21.5, Slackware 12.0
KDE 3.5.7
(Mozilla) Firefox 2.0.0.4
Do color settings in the desktop environment affect color in the web browser? Thanks.
View 2 Replies
View Related
Nov 25, 2010
I use cygwin on Windows7 to open a ssh session to my linux box. When I edit a file with vim, I don't have color, only kind of gray bold. I have colors when I do a ls into my ssh session. I have also colors when I edit files from a ssh session from my linux box to my linux box. I modified the shortcut on Window7 to run cygwin in 256 colors, no effect. Do I need to set an environment variable on my cygwin session ?
On Cygwin and On Fedora when "sshed" from Gygwin : TERM=cygwin
View 2 Replies
View Related
Jul 11, 2015
I want to change the icon text color for my applications' launchers to white.
View 5 Replies
View Related
Oct 12, 2010
Is there a way to edit the color of the text to white so I am able to see it? Example of the current text color in this attachment, see top right corner first scaling icon next to system monitor;
View 2 Replies
View Related
Jan 17, 2011
I really don't know what to call it, but I want to change the color of text that appears before you type in whatever your input is.
For example:
Code:
negrabee@david-desktop:~$ ls /home/david/
I would want "negrabee@david-desktop:~$" to be in a different color. When you have whole bunch of commands and text in a full screen terminal, it gets really annoying to have to look for where you're entering the command so changing the color.
View 6 Replies
View Related
Mar 22, 2011
I have a theme that looks like this.
Unfortunately, it makes the globalmenu and clock applets disappear on my gnome-panel. My panel is set to system theme, though when I choose a solid color I can get the hidden text to show up. I want to preserve the system color so I need to change the text color somehow. Also, I don't know why it uses that bluish color when clicked on since I never defined such a color in the appearance settings.
View 5 Replies
View Related
Mar 7, 2009
I'm looking for a text editor that when displaying a document will parse any ANSI color codes it comes across into the correct colors rather than just show the codes in the ^[[xx;xx;xxm format
can anyone recommend something?
View 3 Replies
View Related