Why?
In your 2nd example, the 2nd value is 50% of the first value. (${#text1} > ${#text2})
That is 100% accurate.
If you want to get only the bigger value, you need to switch the echo'd values, or you change the order within the awk statement.
Or you make a check for which command to take.
I need to compare two files with exactly same length as example: -
File1 contain 500 records with length of 640 chars of each line.
File2 contain 1500 records with length of 640 chars of each line.
I need get an output to be written in File3 which will contain 1000 records difference.
but... (4 Replies)
Need a script that manipulates a fixed length file that will compare 2 fields in that file and if they are equal write that line to a new file.
i.e. If fields 87-93 = fields 119-125, then write the entire line to a new file. Do this for every line in the file. After we get only the fields... (1 Reply)
I have two very large datasets (>100MB) in a simple vertical list format. They are of different size and with different order and formatting (e.g. whitespace and some other minor cruft that would thwart easy regex).
Let's call them set1 and set2.
I want to check set2 to see if it contains... (2 Replies)
Hi,
Can anyone help with a effective solution ?
I need to change a variable length text field (between 1 - 18 characters) to a fixed length text of 18 characters with the unused portion, at the end, filled with spaces.
The text field is actually field 10 of a .csv file however I could cut... (7 Replies)
Hello,
Is there anyway that I can align a pipe delimited text file by the maxium field length where the field is separated out by pipes for large text files with more than
100,000 rows?
So, far I have searched other forums and google about aligning text files in unix and I have noticed that... (7 Replies)
I am trying to get text from a webpage, in terminal form. So far I am:
1. getting the html for the page printed using curl (curl -s webpage.com), which is then
2. piped to awk, printing line number 29 (awk NR==29), then
3. this is where I am sort of lost. I know where in the printed line I... (7 Replies)
The awk below using the sample input would output the following: Basically, it averages the text in $5 that matches if $7 < 30 .
awk '{if(len==0){last=$5;total=$7;len=1;getline}if($5!=last){printf("%s\t%f\n", last,... (6 Replies)
Hi,
I want to compare strings length to a number but i am getting error. I want first name should be length of 8.
Please help.
#bin !/bin/bash
clear
echo -n "Enter name "
read name
IFS=_
ary=($name)
for key in "${!ary}"; do echo "$key${ary}"; done
##First name should be equal to 8... (8 Replies)
Hi,
I have a text file with sample records as
CASE ID: 20170218881083
Original presentment record for ARN not found
for Re-presentment
I want to extract the 23 digit number from this file. I thought of using grep but initially couldn't extract the required number. However, after... (16 Replies)
Discussion started by: dsid
16 Replies
LEARN ABOUT OSF1
class_change
class_change(3) Library Functions Manual class_change(3)NAME
class_change - Change the alloted resources of an existing class.
LIBRARY
Standard C Library (libclass.a)
SYNOPSIS
#include <apar_types.h> #include <sys/class.h>
class_change(class_apar_handle_t handle, char *class_name, struct resource_limits *limits);
PARAMETERS
The partition descriptor returned by class_open(). The name of the class to change. The input is the new resource limits, the output is
the resources available.
DESCRIPTION
This system call changes the limits of the resources that an existing class is allowed to use. If the value of percent would cause the
total resource percentage of all classes to exceed 100 per cent, then the call will fail. On output, the structure contains the remaining
resource percentages available.
Specify CLASS_RESOURCE_NO_CHANGE for all resources that are to remain unchanged if you only need to change some resources.
Specify CLASS_RESOURCE_SCHED_DISABLED for the target limit of any resource that is not needed.
RETURN VALUES
The operation was successfully completed. An invalid partition handle was specified. The class_name is not an ASCII string. The
class_name does not exist. The requested percentage not is not in the range 0 - 100 or is not CLASS_RESOURCE_SCHED_DISABLED or
CLASS_RESOURCE_SCHED_DISABLED. Requested percentage not available. The struct resource_percent <xxx-available> (where xxx is an integer in
the range 0-100 representing percentage) will contain the maximum available percentage.
SEE ALSO Functions:class_add(3), class_init(3), class_create(3), class_close(3), class_configure(3), class_get_config_stats(3), class_close(3),
class_delete(3), class_destroy(3), class_disable(3), class_enable(3), class_save_database(3), class_restore_database(3), class_load_data-
base(3), class_change_name(3), class_database_file_exists(3), class_database_name(3), class_database_modified(3), class_get_classes(3),
class_get_class_members(3),
Commands:class_admin(8), runclass(1), class_scheduling(4)
Other: The System Administration guide. delim off
class_change(3)