For example, with your given sample this should work:
But whether that is usable for you depends on more precise specification of what you require exactly and what variations of the input file must be tolerated, for example:
Are the two values that need to be switched always on two adjacent lines or is that variable like xml allows?
Are they in that exact order or is that variable?
Do you want to flip whatever is between those tags?
Do you want the values to flip when they have specific values?
Do you want the values to flip when they have specific values, no matter within what tags they appear?
Last edited by Scrutinizer; 07-08-2019 at 11:45 PM..
I have a data file. I want to write a shell script that reads a data file and reads position 19 thru 24. if the data in those fields is 002006, than it should change it to 002007.
example:
hello world hello 002006 hello world hello world
hello world hello 002005 hello world hello world... (6 Replies)
TRASH_PATH:~/deleted/
MAX_VERSIONS:5
FILE_MAX_SIZE:1024
FOLDER_MAX_SIZE:8096
TRASH_MAX_SIZE:1024
LOG_MAX_SIZE:100
how do i change the value of TRASH_MAX_SIZE to 2040 using the script?
the filename is config.ini
please advice
Use code tags, ty. (5 Replies)
Hi all,
Let say I have 2 files, 1 is source file and another is destination file.
Source file contains the following :
Kitten
Dogs
Donkey
Chicken
Turkey
And destination file contains :
Kitten, 0
Dogs, 0
Donkey, 0
Chicken, 0
Turkey, 0
Kitten, 0
Dogs, 0
Donkey, 0 (16 Replies)
Hi all,
I have this source file source.txt :
hdrEthernetSwitch1IPAddress 112.13.9.34
hdrEthernetSwitch2IPAddress 112.13.8.245
noOfRevASLAvailable 8000
noOfRevASLInUse 122
maxDOSPayload 7777
pcmdEvdoRUM Enabled
pcmdEvdoFlow Enabled
And I have this datafile to be modified :
... (5 Replies)
I have an array
X = ( -100 -90 -80 -70 -60 -50 -40 30 40 50 60 70 80 90 100 )
I want to find the place where values change from negative to positive. (8 Replies)
Hello Guys
I need your suggestions for the below
We have few unix jobs running in different queues
Is there any way I can manage which jobs goes to which queue and to change their nice value as well
Thanks a lot for your valuable suggestions (1 Reply)
Hi all,
i need help to replace certain values in a file. I need the script to check and match the ID and exNum1. if match, values in $3 (file2.txt) need to replace the value for 'START' (file1.txt) for each match.
The sample structure is like this:-
File1.txt
ID P_6
START ... (4 Replies)
This is my first time posting here...so be gentle.
Suppose I have a test.conf file that contains a value such as a IP. I would like to be able to use the Dialog Utility in Linux to allow me to enter the new IP in a Dialog form...and the results get saved into the test.conf file in the place... (4 Replies)
Hello I have a script that searches a file for a specific string and then changes the nth column after that string. I have searched online for how to do this with sed but have not seemed to find a solution that works for me. I am using bash.
Some background info:
- Currently I am using awk to... (4 Replies)
I have xml file like below, i want change the values at default-value place of each argument name using shell script. like
where argument name= protocol and default-value=tcp,
where argument name =port and default-value= 7223,
where argument name = username and default-value=test,
example
... (12 Replies)
Discussion started by: s1s2s3s4
12 Replies
LEARN ABOUT HPUX
scroll_lines
scroll_lines(5) File Formats Manual scroll_lines(5)NAME
scroll_lines - number of scrollable lines used by the Internal Terminal Emulator
VALUES
Failsafe
Default
Allowed values
Recommended values
No larger than is sufficient for a user's purposes.
DESCRIPTION
This tunable specifies the total number of scroll buffer lines used by the HP-UX graphics console Internal Terminal Emulator (ITE). This
value is the sum of both on-screen and off-screen lines. For instance, if the ITE has 68 on-screen lines, and the value of scroll_lines is
128, then there will be 60 off-screen lines that can be scrolled back into view.
During boot, the system may adjust the value of upward, depending upon the installed graphics hardware. On graphics cards capable of run-
ning at more than one resolution, the ITE will first determine the maximum number of on-screen lines across all possible resolutions. The
ITE will then ensure that is at least equal to this number of on-screen lines. For example, assume the graphics card supports two possible
resolutions which result in one ITE resolution of 160 characters by 62 lines and another ITE resolution of 120 characters by 78 lines. If
a value of 62 had been specified for in the system file, the ITE would then adjust this value upwards to 78.
Who Is Expected to Change This Tunable?
Anyone.
Restrictions on Changing
Changes to this tunable take effect at the next reboot.
When Should the Value of This Tunable Be Raised?
The value of can be increased if the user would like to retain additional lines in the scroll buffer.
What Are the Side Effects of Raising the Value of This Tunable?
Increasing the size of the ITE scroll buffer consumes kernel memory which will be dedicated to the ITE and cannot be used for other pur-
poses by the rest of the system. Memory is used at the rate of 2 bytes per off-screen character.
When Should the Value of This Tunable Be Lowered?
If the additional off-screen lines in the scroll buffer are not required, can be decreased to free up a small amount of memory. The sav-
ings will be two bytes per off-screen character. For instance, if the display is 160 characters wide, decreasing by 10 will free up 3200
bytes.
What Are the Side Effects of Lowering the Value of This Tunable?
If is set below or equal to the number of lines displayed on the ITE screen, no off-screen text will be accessible.
What Other Tunables Should Be Changed at the Same Time?
None.
WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of
HP-UX.
Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation,
some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun-
able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was
factory installed on your system, see at
AUTHOR
was developed by HP.
Tunable Kernel Parameters scroll_lines(5)