I tried to put the history line number and the date into the file with one command, and failed. Can't figure out how to get the date variable substituted for the last space captured.
history | tail -1 | sed -e 's/.\{7\}/&/g' | head -1 | sed 's/ $/$date/'
Result was:
729 $date
So, I... (8 Replies)
Dear all,
I would like to combine all lines of a file with all lines of another file:
The input are
file 1
A
B
C
D
file 2
A
B
C
D
The output is
final file
A_A
A_B
A_C (3 Replies)
Hi,
I have an issue to combine multiple lines of a file. I have records as below.
Fields are delimited by TAB. Each lines are ending with a new line char (\n)
Input
--------
ABC 123456 abcde 987
890456 7890 xyz
ght gtuv
ABC 5tyin 1234 789
ghty kuio
ABC ghty jind 1234
678 ght
... (8 Replies)
Hello,
Input file looks like this:
apples
bananas
oranges and rice
pears
cherries
mango
I want output to look like this:
apples bananas
oranges and rice pears
cherries mango
It should combine line 1 with line 2 and line 3 with line 4 like that....
Right now, only way I can... (4 Replies)
I can't decide if I should use AWK or PERL after pouring over these forums for hours today I decided I'd post something and see if I couldn't get some advice.
I've got a text file full of hundreds of events in this format:
Record Number : 1
Records in Seq : ... (3 Replies)
Hi All,
I am trying to understand if its possible to carry out the following.
I have a text file which contains output from multiple commands, within the file a node will be quiered twice if there was 2 commands for example. Is it possible do combine 2 lines into 1 if the first word is the... (1 Reply)
Hi,
I have a requirement where I need to combine two lines in a file based on first character of each line in a file.
Please find the sample content of the file below:
Code:
_______________________
5, jaya, male, 4-5-90, single
smart
6, prakash, male, 5-4-84, married
fair
7, raghavi,... (1 Reply)
Hi,
I have a requirement where I need to combine two lines in a file based on first character of each line in a file.
Please find the sample content of the file below:
Code:
_______________________
5, jaya, male, 4-5-90, single
smart
6, prakash, male, 5-4-84, married
fair
7, raghavi,... (1 Reply)
Hi,
I have a requirement where I need to combine two lines in a file based on first character of each line in a file.
Please find the sample content of the file below:
_______________________
5, jaya, male, 4-5-90, single
smart
6, prakash, male, 5-4-84, married
fair
7, raghavi, female,... (12 Replies)
I am trying to combine all matching lines in the tab-delimited using awk. The below runs but no output results. Thank you :).
input
chrX 110925349 110925532 ALG13
chrX 110925349 110925532 ALG13
chrX 110925349 110925532 ALG13
chrX 47433390 47433999 SYN1... (3 Replies)
Discussion started by: cmccabe
3 Replies
LEARN ABOUT HPUX
gss_compare_name
gss_compare_name(3) Library Functions Manual gss_compare_name(3)NAME
gss_compare_name() - allow an application to compare two internal names to determine whether they are equivalent
SYNOPSIS DESCRIPTION
The routine lets an application compare two internal names to determine whether they are the same. This routine does not resolve the names
to see if they refer to the same object. It simply compares the input names for equivalence. If either name presented to denotes an
anonymous principal, the routines should indicate that the two names do not refer to the same identity.
Input Parameters
name1 Specifies the first internal name.
name2 Specifies the second internal name.
Output Parameters
name_equal Returns one of the following values:
The names are the same.
The names are not the same.
minor_status Returns a status code from the security mechanism.
STATUS CODES
The following status codes can be returned:
The routine was completed successfully.
The name passed by the name1 or name2 parameter is unsupported.
An invalid name was passed by the
name1 or name2 parameter.
The routine failed. Check the
minor_status parameter for details.
AUTHOR
was developed by Sun Microsystems, Inc.
SEE ALSO gss_import_name(3), gss_release_name(3).
The manpages for DCE-GSSAPI are included with the DCE-CoreTools product. To see those manpages add to
gss_compare_name(3)