Sponsored Content
Full Discussion: Append to existing line
Top Forums Shell Programming and Scripting Append to existing line Post 302580052 by bombcan on Wednesday 7th of December 2011 09:21:01 AM
Old 12-07-2011
Thanks...I was close but I did not place the + sign in the right place.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Shell script to append a time for the existing error log file

Hi Guys, the requirement is like this, i am having a error log file in this format, 4594.493: parallel nursery GC 2594592K->2544691K (2969600K), 30.848 ms 4605.958: parallel nursery GC 2634887K->2584986K (2969600K), 38.900 ms 4619.079: parallel nursery GC 2822555K->2774812K... (12 Replies)
Discussion started by: gsprasanna
12 Replies

2. Shell Programming and Scripting

append newline to existing variables

firstly, i check is the variable empty or not, if so vesselNameList=`echo $vesselName` if not vesselNameList="${vesselNameList}""\n"`echo "$vesselName"` and it produces this result BUNGA TERATAI 3 5055\ JADE TRADER 143W\ MOL SPLENDOR 0307A BUNGA TERATAI 3 5055\ JADE... (1 Reply)
Discussion started by: finalight
1 Replies

3. Shell Programming and Scripting

append existing file with zeroes bsed on position

Hi i am trying to append value with 0 to an existing file in the position 50-56 & 58-64 only where empty space is there Rule: 1 row already has some value and i do not want to change anything for this row. 2nd record below you see the position 50-64 is empty, i want to replace with 0000000... (3 Replies)
Discussion started by: kshuser
3 Replies

4. Shell Programming and Scripting

Append files to a existing tar file.

Hi all, I want to check whether tar file exists in the directory or not. If tar file exists in the directory then I want to append the files to it. I am using the below command to tar files if the file does not exist. tar zcvf <tar file name> <Files to append> However, if want to... (4 Replies)
Discussion started by: Nagaraja Akkiva
4 Replies

5. UNIX for Dummies Questions & Answers

Appending lines from an existing list to each line in another existing list

Evening all ! I would like to ask your expertise on how to accomplish the following ; I have 2 lists, and would like each line from list2 to be appended to each line in list1, resulting in list3 ; List1; alpha beta charlie List2; one two three (4 Replies)
Discussion started by: TAPE
4 Replies

6. Shell Programming and Scripting

Append next line to previous line when one pattern not found

Hi, I need help for below scenario.I have a flat file which is having records seperated by delimiters which will represent each record for oracle table.My Control file will consider each line as one record for that table. Some of the lines are aligned in two/three lines so that records are... (4 Replies)
Discussion started by: kannansr621
4 Replies

7. Shell Programming and Scripting

Perl - Append data to existing excel cell

Hello All, I have the following code in PERL to write data to excel sheet. Can someone please help me about how to append data to an exisitng cell? For ex in the below given case,Cell 1,1 has Active State PERL Now I want to add a new line like "prorgamming" without overwritting the... (3 Replies)
Discussion started by: prasperl
3 Replies

8. UNIX for Dummies Questions & Answers

How to remove fields space and append next line to previous line.?

awk 'BEGIN{FS = "Ç"} NR == 1 {p = $0; next} NF > 1 {print p; p = $0} NF <= 1 {p = (p " " $0)} END {print p}' input.txt > output.txt This is what the input data file looks like with broken lines Code: 29863 Ç890000000 Ç543209911 ÇCHNGOHG Ç000000001 Ç055 ... (4 Replies)
Discussion started by: cumeh1624
4 Replies

9. Shell Programming and Scripting

Matching column then append to existing File as new column

Good evening I have the below requirements, as I am not an experts in Linux/Unix and am looking for your ideas how I can do this. I have file called file1 and file2. I need to get the second column which is text1_random_alphabets and find that in file 2, if it's exists then print the 3rd... (4 Replies)
Discussion started by: mychbears
4 Replies

10. Shell Programming and Scripting

Remove new line starting with a numeric value and append it to the previous line

Hi, i have a file with multiple entries. After some tests with sed i managed to get the file output as follows: lsn=X-LINK-IN0,apc=661:0,state=avail,avail/links=1/1, 00,2110597,2094790,0,81,529,75649011,56435363, lsn=TM1ITP1-AM1ITP1-LS,apc=500:0,state=avail,avail/links=1/1,... (5 Replies)
Discussion started by: nms
5 Replies
memory(3C)																memory(3C)

NAME
memory: memccpy(), memchr(), memcmp(), memcpy(), memmove(), memset(), bcmp(), bcopy(), bzero(), ffs() - memory operations SYNOPSIS
Remarks and are provided solely for portability of BSD applications, and are not recommended for new applications where portability is important. For portable applications, use and respectively. has no portable equivalent. DESCRIPTION
These functions operate as efficiently as possible on memory areas (arrays of bytes bounded by a count, not terminated by a null byte). They do not check for the overflow of any receiving memory area. Definitions for all these functions, the type and the constant are provided in the header file. Copy bytes from the object pointed to by s2 into the object pointed to by s1, stopping after the first occurrence of byte c has been copied, or after n bytes have been copied, whichever comes first. If copying takes place between objects that overlap, the behavior is undefined. returns a pointer to the byte after the copy of c in s1, or a NULL pointer if c was not found in the first n bytes of s2. Locate the first occurrence of c (converted to an in the initial n bytes (each interpreted as of the object pointed to by s. returns a pointer to the located byte, or a NULL pointer if the byte does not occur in the object. Compare the first n bytes of the object pointed to by s1 to the first n bytes of the object pointed to by s2. returns an integer greater than, equal to, or less than zero, according to whether the object pointed to by s1 is greater than, equal to, or less than the object pointed to by s2. The sign of a non-zero return value is determined by the sign of the difference between the values of the first pair of bytes (both interpreted as that differ in the objects being compared. Copy n bytes from the object pointed to by s2 into the object pointed to by s1. If copying takes place between objects that overlap, the behavior is undefined. returns the value of s1. Copy n bytes from the object pointed to by s2 into the object pointed to by s1. Copying takes place as if the n bytes from the object pointed to by s2 are first copied into a temporary array of n bytes that does not overlap the objects pointed to by s1 and s2, and then the n bytes from the temporary array are copied into the object pointed to by s1. returns the value of s1. Copy the value of c (converted to an into each of the first n bytes of the object pointed to by s. returns the value of s. copies n bytes from the area pointed to by s1 to the area pointed to by s2. Compare the first n bytes of the area pointed to by s1 with the area pointed to by s2. returns zero if they are identical; non-zero other- wise. Both areas are assumed to be n bytes in length. Clear n bytes in the area pointed to by s by setting them to zero. Find the first bit set (beginning with the least significant bit) and return the index of that bit. Bits are numbered starting at one. A return value of 0 indicates that i is zero. International Code Set Support These functions support only single-byte byte code sets. WARNINGS
The functions defined in were previously defined in FILES
SEE ALSO
string(3C), thread_safety(5), glossary(9). STANDARDS CONFORMANCE
memory(3C)
All times are GMT -4. The time now is 01:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy