10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to create a script to change a file depending of 3 conditions using a target as parameter...
first condition
<chamada>
<numeroTerminalOriginador>CALLER</numeroTerminalOriginador>
<imeiOriginador></imeiOriginador>
<cgiPrimeiraErbOriginador></cgiPrimeiraErbOriginador>... (2 Replies)
Discussion started by: poulis
2 Replies
2. Shell Programming and Scripting
I need help with sed and awk scripts to search for Symmetrix ID=000090009902 and then grep its child disk devices associated to the dead paths and display them only, so that those dead devices can be removed.
test01:/#powermt display dev=all
Pseudo name=hdiskpower0
Symmetrix ID=000090009902... (4 Replies)
Discussion started by: aix_admin_007
4 Replies
3. Shell Programming and Scripting
Hi expert,
i need URGENT help in bash shell scripting using sed:
i woud like to search for the word XMLRPC which is at theend of the line below in up2date file. Once found or match
serverURL=https://redhat.com/XMLRPC
replace with myserver.com like this
... (1 Reply)
Discussion started by: lamoul
1 Replies
4. Shell Programming and Scripting
Hi all!
I was wondering if anyone could help suggest some solutions to an issue i'm having using the Sed command. I'm still a relative novice at this, but slowly learning and enjoying the power of batch processing.
I am using Sed to extract values from a .txt file containing hundreds of... (2 Replies)
Discussion started by: StudentFitz
2 Replies
5. Shell Programming and Scripting
Hi,
In one of my scripts, I am using sed to do an expression replacement. The code in the script is as under
sed "s|MY_INP_Lab=""|MY_INP_Lab="${2}"|" file1, where $2=xyz_abc_mbk
The EXPECTED output is in file1, all the instances ofMY_INP_Lab="" shall be replaced by... (2 Replies)
Discussion started by: vivekmattar
2 Replies
6. Shell Programming and Scripting
hi all,
i want to display output of sar, whichever idle time is less than 30%..i want to add HI and BYE at the starting and ending of the line.
For an example:
sar
Linux 2.6.9-78.0.1.ELsmp (hostname) 07/10/2009
07:10:01 AM CPU %user %nice %system %iowait %idle... (7 Replies)
Discussion started by: raghur77
7 Replies
7. UNIX for Dummies Questions & Answers
I have a folder with many subdirectories and i need to set the modified date to today for everything in it. Please help, thanks!
I tried something i found online, find . -print0 | xargs -r0 touch
but I got the error: xargs: illegal option -- r (5 Replies)
Discussion started by: glev2005
5 Replies
8. Shell Programming and Scripting
Say I have a file 'example.txt' with these lines of code in it:
hello:anddasd:cheese:gerg
whatever:sdadsa:asdfasdfa:wwew
hmmmm:something:gfhfhgf:sdasdas
Question:
1. How would I write a script which is able to take all the words before the first ':'?
2. How would I write a script which is... (6 Replies)
Discussion started by: i_am_a_robot
6 Replies
9. Shell Programming and Scripting
hey all,
i was just wondering if it was possible to to get data from user input , and parse it through sed to remove or add what that user has entered into a flat file?
do i need awk ?
any help is greatly appreciated
~shan2on (2 Replies)
Discussion started by: shan2on
2 Replies
10. Shell Programming and Scripting
Hi,
I have a script abc.sql which contains a word 'timestamp'.
I have another script xyz.txt genrated everyweek, which has a new timestamp value every week.
How do I replace the word 'timestamp' in script abc.sql with the value mentioned in the script xyz.txt, so that I can run the script... (3 Replies)
Discussion started by: kaushys
3 Replies
TPCTL(8) BSD System Manager's Manual TPCTL(8)
NAME
tpctl -- touch panel calibration utility
SYNOPSIS
tpctl [-D dispdevname] [-d devname] [-f filename] [-hnuv]
DESCRIPTION
tpctl is a touch panel calibration utility. tpctl calibrates a touch panel and saves and restores the calibration parameters into/from a
parameter database file.
Available command-line flags are:
-D dispdevname Specify display device name.
-d devname Specify touch panel device name.
-f filename Specify alternate parameter database file name.
-h Print brief description.
-n Do not change the parameter database file.
-u Force calibration. Without this flag, tpctl won't do calibration if the database file already contains parameters for the
touch panel.
-v Verbose mode.
You calibrate the touch panel the first time you run tpctl. If you see a cross cursor on the screen, you should tap the center of the cursor
to calibrate the touch panel, or you can abort the calibration with the 'ESC' key. Five cursors will appear on the screen in turn. Once
calibration is done, tpctl saves the calibration parameters into the database file and uses the saved parameters to calibrate the touch
panel.
You can run tpctl automatically with /etc/rc.d/tpctl.
FILES
/etc/tpctl.dat The default calibration parameter database file. The -f flag may be used to specify an alternate database file name. tpctl
will create an empty database file if it doesn't exist.
/dev/ttyE0 The default display device, which is used to display the cursor during calibration. The -D flag may be used to specify an
alternate display device name. The display device must provide the 'hpcfb' interface as defined in
/usr/include/dev/hpc/hpcfbio.h.
/dev/wsmux0 The default touch panel device. The -d flag may be used to specify an alternate touch panel device name.
SEE ALSO
rc.conf(5)
BUGS
tpctl isn't available on all ports because it requires a display device which provides the 'hpcfb' interface.
BSD
August 25, 2002 BSD