10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I will appreciate if you help me here in this script in Solaris Enviroment.
Scenario:
i have 2 files :
1) /tmp/TRANSACTIONS_DAILY_20180730.txt:
201807300000000004
201807300000000005
201807300000000006
201807300000000007
201807300000000008
2)... (10 Replies)
Discussion started by: teokon90
10 Replies
2. Shell Programming and Scripting
hi, i have a big file like this:
>s31 length=12 numreads=6 gene=isotig454 status=igo
ldfddfdfdfdkkkkkkfdfdkkkksdfdkkkkkkkkkksdfd
dfdfdfldfdkdffdlfddflfdjkkkkkkfdgkkgfhghfgkkk
ldfddfdfdfdkkkkkkfdfdkkkksdfdkkkkkkkkkksdfd
dfdfdfldfdkdffdlfddflfdjkkkkkkfdgkkgfhghfgkkk
>c2 length =344... (4 Replies)
Discussion started by: the_simpsons
4 Replies
3. UNIX for Dummies Questions & Answers
Hello All,
this is my first post so I don't know if I am doing this right.
I would like to append entries from a series of strings (contained in a text file) consecutively at the end of specifically labeled lines in another file.
As an example:
- the file that contains the values to be... (3 Replies)
Discussion started by: gus74
3 Replies
4. Shell Programming and Scripting
The question is not as simple as the title... I have a file, it looks like this
<string name="string1">RZ-LED</string>
<string name="string2">2.0</string>
<string name="string2">Version 2.0</string>
<string name="string3">BP</string>
I would like to check for duplicate entries of... (11 Replies)
Discussion started by: raidzero
11 Replies
5. Shell Programming and Scripting
Been searching for about 3 hours for similar functionality that I can get examples of how to output text from variables into certain locations in a file. I would like to incorporate this into a script. I have not been able to find a command example that does it all in one method. I find part of... (1 Reply)
Discussion started by: bennu_500
1 Replies
6. UNIX for Dummies Questions & Answers
Hello guys,
should be a very easy questn for you:
I need to delete strings in file1 based on the list of strings in file2.
like file2:
word1_word2_
word3_word5_
word3_word4_
word6_word7_
file1:
word1_word2_otherwords..,word3_word5_others... (7 Replies)
Discussion started by: roussine
7 Replies
7. Shell Programming and Scripting
HI,
if a String is present in file1.txt, i want to delete that String from file2.txt.
How can i do this??
I am sure that the file1.txt is a subset of file2.txt. (2 Replies)
Discussion started by: jathin12
2 Replies
8. Shell Programming and Scripting
i have 200000bytes size of a unix file i need to delete some text between two strings recursively using a loop with sed or awk . these two strings are : 1st string getting from a file :::2 nd string is fi...its constant . can anyone help me sed -n'/<1 st string >/,/fi/' <input_filename> is the... (2 Replies)
Discussion started by: santosh1234
2 Replies
9. Shell Programming and Scripting
Hello
i want to know a way so i can delete all the strings in file from the begning till a specific string (1 Reply)
Discussion started by: modcan
1 Replies
10. Shell Programming and Scripting
Hi,
I have a file named status.txt that looks like the file below. What I want to do is to delete the part <status> and </status> and just leave the number and print each number per line. How can I do it? If I will use sed or awk how can I do it? I tried with sed but it didn't work. Maybe I... (8 Replies)
Discussion started by: ayhanne
8 Replies
ddi_strtoll(9F) Kernel Functions for Drivers ddi_strtoll(9F)
NAME
ddi_strtoll, ddi_strtoull - string conversion functions
SYNOPSIS
#include <sys/ddi.h>
#include <sys/sunddi.h>
int ddi_strtoll(const char *str, char **endptr, int base,
longlong_t *result);
int ddi_strtoull(const char *str, char **endptr, int base,
u_longlong_t *result);
PARAMETERS
str pointer to a character string to be converted
endptr post-conversion final string of unrecognized characters
base radix used for conversion
result pointer to variable which contains the converted value
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI)
DESCRIPTION
The ddi_strtoll() function converts the initial portion of the string pointed to by str to a type longlong_t representation and stores the
converted value in result.
The ddi_strtoull() function converts the initial portion of the string pointed to by str to a type u_longlong_t representation and stores
the converted value in result.
These functions first decomposes the input string into three parts:
1. An initial (possibly empty) sequence of white-space characters (" ", " ", "
", "
", "f")
2. A subject sequence interpreted as an integer represented in some radix determined by the value of base
3. A final string of one or more unrecognized characters, including the terminating null byte of the input string.
The ddi_strtoll() function then attempts to convert the subject sequence to an integer and returns the result. The ddi_strtoull() function
attempts to convert the subject sequence to an unsigned integer and returns the result.
If the value of base is 0, the expected form of the subject sequence is that of a decimal constant, octal constant or hexadecimal constant,
any of which may be preceded by a plus ("+") or minus ("-") sign. A decimal constant begins with a non-zero digit, and consists of a
sequence of decimal digits. An octal constant consists of the prefix 0 optionally followed by a sequence of the digits 0 to 7 only. A hexa-
decimal constant consists of the prefix 0x or 0X followed by a sequence of the decimal digits and letters a (or A) to f (or F) with values
10 to 15 respectively.
If the value of base is between 2 and 36, the expected form of the subject sequence is a sequence of letters and digits representing an
integer with the radix specified by base, optionally preceded by a plus or minus sign. The letters from a (or A) to z (or Z) inclusive are
ascribed the values 10 to 35 and only letters whose ascribed values are less than that of base are permitted. If the value of base is 16,
the characters 0x or 0X may optionally precede the sequence of letters and digits, following the sign if present.
The subject sequence is defined as the longest initial subsequence of the input string, starting with the first non-white-space character
that is of the expected form. The subject sequence contains no characters if the input string is empty or consists entirely of white-space
characters, or if the first non-white-space character is other than a sign or a permissible letter or digit.
If the subject sequence has the expected form and the value of base is 0, the sequence of characters starting with the first digit is
interpreted as an integer constant. If the subject sequence has the expected form and the value of base is between 2 and 36, it is used as
the base for conversion, ascribing to each letter its value as given above. If the subject sequence begins with a minus sign, the value
resulting from the conversion is negated. A pointer to the final string is stored in the object pointed to by endptr, provided that endptr
is not a null pointer.
If the subject sequence is empty or does not have the expected form, no conversion is performed and the value of str is stored in the
object pointed to by endptr, provided that endptr is not a null pointer.
RETURN VALUES
Upon successful completion, these functions return 0 and store the converted value in result. If no conversion is performed due to an
invalid base, these functions return EINVAL and the variable pointed by result is not changed.
CONTEXT
These functions may be called from user, kernel or interrupt context.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
SEE ALSO
Writing Device Drivers
SunOS 5.11 25 Feb 2009 ddi_strtoll(9F)