07-22-2014
I would be surprised if it looked like you post in #9, as zaxxon's proposal prints the entire input line without modification. Fields should be right justified, and they are when I test run the (adapted) proposal.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
using grep, i have a file emp.lst, and i want all those records
where "S" or "s" (capital or small) is not there
i used this
grep emp.lst
when i use grep emp.lst
i am getting rows with S..but why negate (^) is not working? (3 Replies)
Discussion started by: soujanya_srk
3 Replies
2. UNIX for Dummies Questions & Answers
I have a file that has the following:
591066 100.0
591066 100.0
591066 100.0
591066 100.0
591066 100.0
591066 100.0
591066 100.0
591066 100.0
591066 100.0
591066 100.0
591066 100.0
... (5 Replies)
Discussion started by: Pablo_beezo
5 Replies
3. Shell Programming and Scripting
<record>
<set>
<termId>1234</termId>
<termType>First</termType>
</set>
<set>
<termId>5678</termId>
<termType>Second</termType>
</set>
</record>
This is saved in record.xml
Hi
I have this sample XML that i am grepping using a shell program.
The objective of the task is - based... (7 Replies)
Discussion started by: revertback
7 Replies
4. Shell Programming and Scripting
The below command is not working
stackmem="$(pmap $1 | grep -i '' | awk '{print $2}'| tr -d ' K')"
I need to grep strictly for ---->
Regards,
Mohtashim (2 Replies)
Discussion started by: mohtashims
2 Replies
5. UNIX for Dummies Questions & Answers
more Hello.txt
it was a sunny way and i was about to go home.
I need to grep and redirect to a new file all the text between 'sunny' and 'go' string above.
Note: There may be multiple lines in between the string i need to grep between. If there are multiple 'go' strings it should grep till... (9 Replies)
Discussion started by: mohtashims
9 Replies
6. Shell Programming and Scripting
Hi All
I have a file containing following records:
$HEW_TGT_DB2_USER=hbme_bi2
$prmAttunityUser=ais
$DS_USER=hbme_bi2
$prmStgUser=hbme_bi2
$prmuser=hbme_bi2
$prmStgPass=hbme_bi2
$prmpwd=hbme_bi2
$prmAttunityUser=ais
Say suppose the name of the file is test4.txt
When i fire this... (2 Replies)
Discussion started by: vee_789
2 Replies
7. Shell Programming and Scripting
i have following pattern in file
s6:s2
s2:s4
s1:s2:s3:s4:s5:s6
s1
.
.
Now i want to find occurence of each record in file like s6:s2 occurs twice {once in first record and both occur in 3 record as well}
so output should be
s6:s2 2
s2:s4 2
s1:s2:s3:s4:s5:s6 :1
s1 : 2
... (7 Replies)
Discussion started by: sharad.40216
7 Replies
8. Shell Programming and Scripting
Hi Guys,
I am new to shell scripting. Need help on grep command. I had a file called file.log which contain below statements.
12 Nov 2013 14:12:17,756 INFO security - Userid: raja, Saved File Instance, Name: , Registry:
23 Nov 2013 14:14:11,777 INFO security - Userid: raja, Saved... (7 Replies)
Discussion started by: Vinoth Kumar G
7 Replies
9. Shell Programming and Scripting
Hello, I have an input file that looks like so:
LDLR
LDLRAD4
VLDLR
when I grep "LDLR" I get an output of:
LDLR
LDLRAD4
VLDLR
Since all names have "LDLR" included within them, but all I want the output to be is
LDLR
I know it can work if I surround the words with pipes for... (5 Replies)
Discussion started by: Rabu
5 Replies
10. UNIX for Dummies Questions & Answers
Hi guys,
Hope someone can help me with this - I'm sure it's fairly simple but it's driving me mad! (forgive the coding - still new on scripting - come from Windows)
I have the following coding for checking whether I want to include a line in a file:-
EXTRACT_Date=$(date --date="${PERIOD}"... (6 Replies)
Discussion started by: NickF
6 Replies
LEARN ABOUT CENTOS
vbetool
VBETOOL(1) User Commands VBETOOL(1)
NAME
vbetool - run real-mode video BIOS code to alter hardware state
SYNOPSIS
vbetool [[vbestate save|restore]|[vbemode set|get]|[vgamode]|[dpms on|off|standby|suspend|reduced]|[post [romfile]]|[vgastate
on|off]|[vbefp panelid|panelsize|getbrightness|setbrightness|invert]]
DESCRIPTION
vbetool uses lrmi in order to run code from the video BIOS. Currently, it is able to alter DPMS states, save/restore video card state and
attempt to initialize the video card from scratch.
OPTIONS
vbetool takes the following options:
vbestate
vbetool will use the VESA 0x4f0f extensions to save or restore hardware state. This will be sent to or read from stdin. This infor-
mation is highly hardware specific - do not attempt to restore state saved from a different machine. This command will not work
unless you are at a text console, as it interferes badly with X.
dpms vbetool will use the VESA 0x4f10 extensions to alter the power management state of your screen. "On", "off", "standby", "suspend"
and "reduced" are acceptable further options and determine which state will be activated.
vbemode
vbetool will get or set the current VESA mode. "get" will return the current mode number on stdout - "set" will set the mode to the
next argument.
vgamode
vbetool will set the legacy VGA mode to the following numeric argument.
post vbetool will attempt to run BIOS code located at c000:0003. This is the code run by the system BIOS at boot in order to intialise
the video hardware. Note that on some machines (especially laptops), not all of this code is present after system boot - as a
result, executing this command may result in undefined behaviour. This command must be run from a text console, as it will otherwise
interfere with the operation of X. This command takes an optional argument which is the location of a file containing a ROM image.
If provided, this image will be mapped to the c000 segment and used instead of the system's video BIOS.
vgastate
vbetool will enable or disable the current video card. On most hardware, disabling will cause the hardware to stop responding until
it is reenabled. You probably don't want to do this if you're using a framebuffer.
vbefp vbetool will execute a VESA flat panel interface call.
panelid will provide information about the panel
panelsize will provide the size of the panel
getbrightness will provide the current screen brightness as an integer
setbrightness accepts an integer as an argument and will set the screen brightness to that
invert will invert the colours of the screen
BUGS
Switching dpms modes may interact badly with X on some systems.
The vbestate command may behave in strange ways.
The post command may result in the execution of arbitrary code that happens to be lying around in the area where chunks of your video BIOS
used to be.
The VESA specification does not require that "vbemode get" provides the correct mode if the current mode was set via some means other than
the VESA BIOS extensions.
The VESA flat panel interface ceased development at the proposal stage. panelid and panelsize will work on many machines, but the other
arguments are unlikely to be implemented on available hardware.
AUTHOR
vbetool was written by Matthew Garrett <mjg59@srcf.ucam.org>, based on code from read-edid by John Fremlin <john@fremlin.de>, LRMI
(http://sourceforge.net/projects/lrmi/) and XFree (http://www.xfree86.org). It is released under the terms of the GNU General Public
License.
vbetool 0.2 31 December 2004 VBETOOL(1)