Sponsored Content
Full Discussion: Delete rest of the line
Top Forums UNIX for Advanced & Expert Users Delete rest of the line Post 302190244 by Aejaz on Tuesday 29th of April 2008 05:32:50 AM
Old 04-29-2008
Thanks to all.
Sanjay it worked.
Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Removing the rest of line from the second entry of an expression

Dear people, can you please enlighten: I need to do a (most probably) very simple thing but couldn't figure how. I have files with lots of lines starting with a fixed expression: Query=. (the dot is a space) followed by different combinations of characters including special ones such... (5 Replies)
Discussion started by: roussine
5 Replies

2. Shell Programming and Scripting

Search a string and print the rest of line

Hi Guys, I need to search a string and print the rest of the lines... input: 8 0 90 1 0 59 20 2488 96 30006dde372 S ? 0:00 /etc/opt/SUNWconn/atm/bin/atmsnmpd -n output: 00 /etc/opt/SUNWconn/atm/bin/atmsnmpd -n Actually i don even need the first "00".. any suggestions is appreciated..... (13 Replies)
Discussion started by: mac4rfree
13 Replies

3. Shell Programming and Scripting

Delete rest of line with sed works on Linux but not on Solaris

Hi all, Our application installation uses "sed" command to delete rest of line. It work perfect on Linux but fail on Solaris. The OS versions are Solaris 9 and Linux Red Hat AS 3. yourfile.txt hello and world cat and dog hello world in linux: cat yourfile.txt | sed ‘s/\(\+\)... (3 Replies)
Discussion started by: javac2005
3 Replies

4. UNIX for Dummies Questions & Answers

How get only required lines & delete the rest of the lines in file

Hiiii I have a file which contains huge data as a.dat: PDE 1990 1 9 18 51 28.90 24.7500 95.2800 118.0 6.1 0.0 BURMA event name: 010990D time shift: 7.3000 half duration: 5.0000 latitude: 24.4200 longitude: 94.9500 depth: 129.6000 Mrr: ... (7 Replies)
Discussion started by: reva
7 Replies

5. Shell Programming and Scripting

Find and delete rest of the line

i need to find ' - ' in a line , if i found i need to rest of the line including '-' example libmm-2.0 libytytsunos-5.6 output libmm libytytsunos (7 Replies)
Discussion started by: girija
7 Replies

6. Shell Programming and Scripting

awk delete/remove rest of line on multiple search pattern

Need to remove rest of line after the equals sign on search pattern from the searchfile. Can anybody help. Couldn't find any similar example in the forum: infile: 64_1535: Delm. = 86 var, aaga 64_1535: Fran. = 57 ex. ccc 64_1639: Feb. = 26 (link). def 64_1817: mar. = 3/4. drz ... (7 Replies)
Discussion started by: sdf
7 Replies

7. UNIX for Dummies Questions & Answers

find string and get the rest of the line in a pipe delimited file

Hi friends, I have a file where I should search for a string and get the rest of the line but without the delimiter using awk. for example I have the series of string in a file: input_string.txt bbb ccc aaa and the mapping file looks like this. mapping.txt aaa|12 bbb|23 ccc|43... (11 Replies)
Discussion started by: kokoro
11 Replies

8. Shell Programming and Scripting

Find the text in the file and delete the rest of the line.

Hi, I have one requiremnet like this. I need to find some particular string (eg.IncludeDateTime = ) in a file. And wherever it finds the string the unix script has to delete the remaining text coming after the string (ie., 'IncludeDateTime = ' ) in the same line. I tried to write this script in... (5 Replies)
Discussion started by: jannusuresh
5 Replies

9. UNIX for Advanced & Expert Users

How to find a string in a line in UNIX file and delete that line and previous 3 lines ?

Hi , i have a file with data as below.This is same file. But actual file contains to many rows. i want to search for a string "Field 039 00" and delete that line and previous 3 lines in that file.. Can some body suggested me how can i do using either sed or awk command ? Field 004... (7 Replies)
Discussion started by: vadlamudy
7 Replies

10. Programming

Mismatched free() / delete / delete [] line no missing

Could you tell me the possibilities of the reason to get the Mismatched free() / delete / delete . I unable to see the line no in the valgrind report. it displays the function name. with that function name, I am not able to find where exactly the issue is there.I am getting the Mismatched free()... (3 Replies)
Discussion started by: SA_Palani
3 Replies
tpm_nvwrite(8)															    tpm_nvwrite(8)

NAME
tpm_nvwrite SYNOPSIS
tpm_nvwrite [OPTIONS] DESCRIPTION
tpm_nvwrite writes data to an NVRAM area. The user must provide the index of the NVRAM area as well as the data to write into the NVRAM area. Optionally an offset into the NVRAM area can be given where the writing of the data is to start. Similarly the use may provide the number of bytes to write into the NVRAM area. Some NVRAM areas only allow write sizes of zero, i.e., NVRAM area index 0. If the NVRAM area has permission bits set that require owner or NVRAM area authentication, then the password must be provided via the password option. The following options are supported: -h, --help Display command usage info. -v, --version Display command version info. -l, --log [none|error|info|debug] Set logging level. -u, --unicode Use TSS UNICODE encoding for passwords to comply with applications using TSS popup boxes -z, --well-known Use a secret of all zeros (20 bytes of zeros) as either the NVRAM area or owner secret. -p, --password Depending on what type of authentication is required for the NVRAM area, this must either be the NVRAM area or owner password. A password may be directly provided for example by using '--password=password' or -ppassword. If no password is provided then the program will prompt the user for the password. -i, --index (optional parameter) The index of the NVRAM area. The parameter may either be a decimal number or a hexadecimal number starting with '0x'. -s, --size The number of bytes to write to the NVRAM area. This parameter may be used to truncating the data that are for example read from a file. The parameter may either be a decimal number or a hexadecimal number starting with '0x'. -n, --offset (optional parameter) The offset into the NVRAM area where to start writing. The parameter may either be a decimal number or a hexadecimal number starting with '0x'. -f, --filename (optional parameter) The name of a file from which to read data and copy them into the NVRAM area. -d, --data (optional parameter) The data to write into the NVRAM area passed in the command line. -m, --fill-value (optional parameter) The byte to fill the NVRAM area with. SEE ALSO
tpm_nvdefine(8), tpm_nvinfo(8), tpm_nvread(8), tpm_nvrelease(8) REPORTING BUGS
Report bugs to <trousers-users@lists.sourceforge.net> TPM Management 2011-07-11 tpm_nvwrite(8)
All times are GMT -4. The time now is 07:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy