Sponsored Content
Top Forums Shell Programming and Scripting Command to add 1000 spaces to end of line Post 302130508 by matrixmadhan on Monday 6th of August 2007 01:01:44 PM
Old 08-06-2007
one more

Code:
echo "helloworld" | awk '{ print $0; for(i=1; i<=1000; i++) { printf "%s", " " } }'

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Deleting end line spaces for along file

How can i clear all space characteres for a long file at the end of each line? (3 Replies)
Discussion started by: osymad
3 Replies

2. UNIX for Dummies Questions & Answers

add data from command line to end of file

how can I add data from command line to end of file? (3 Replies)
Discussion started by: bryan
3 Replies

3. Shell Programming and Scripting

To Trim spaces at the end of line

Hi Friends, Can any one help with this issue: How to trim spaces for each line at the end, Like I have a file in this format. EMP1 SMITH 46373 5 STREET HOWARD 74636 EMP2 JONES 5454 { these are spaces ........} EMP3 SMITH 46373 5 STREET HOWARD 74636 EMP4 JON 2554 { these are... (1 Reply)
Discussion started by: sbasetty
1 Replies

4. Shell Programming and Scripting

Append Spaces At end of each line Leaving Header and Footer

How to append constant No of spaces suppose 52 at end of each line in a file (xyz) excluding first and last line. Please Help me out for the same. (1 Reply)
Discussion started by: deepam
1 Replies

5. UNIX for Dummies Questions & Answers

how to append spaces(say 10 spaces) at the end of each line based on the length of th

Hi, I have a problem where I need to append few spaces(say 10 spaces) for each line in a file whose length is say(100 chars) and others leave as it is. I tried to find the length of each line and then if the length is say 100 chars then tried to write those lines into another file and use a sed... (17 Replies)
Discussion started by: prathima
17 Replies

6. Shell Programming and Scripting

append end of line with 8 spaces

child_amt=$amount prev_line="$prev_line $child_amt" i am getting the result like this 21234567890001343 000001004OLFXXX029100020091112 0000060 but i want 8 spaces between the eg: 21234567890001343 000001004OLFXXX029100020091112 0000060 how can i do this in .ksh (1 Reply)
Discussion started by: kshuser
1 Replies

7. UNIX for Dummies Questions & Answers

I don't want to truncate trailing spaces and ^M at the end of line

I have a script wherein I access each line of the file using a FOR loop and then perform some operations in each line. The problem is each line that gets extracted in FOR loop truncates trailing blank spaces and control characters (^M) that is present at the end of each line. I don't wan this to... (5 Replies)
Discussion started by: Shobana_s
5 Replies

8. Shell Programming and Scripting

How to add a line to the end of a set of files without using sed command?

I understand that the SED command reads all the lines in the file before adding a required line to the end of the file. Is there another command that adds a line to the end of files without reading the entire file.... SED is increasing the processing time as the number of lines in each of the... (1 Reply)
Discussion started by: Kanch
1 Replies

9. UNIX Desktop Questions & Answers

To remove the extra spaces at the end of each line in a file

I have a file of about 10k records and eace line is having an extra space of 5 byte at the end.. Iwant to remove the extra spaces at the end of each line.. Can someone please help me out.. I tried using sed command and its not working... can someone please help me out. (3 Replies)
Discussion started by: rammohan
3 Replies

10. Shell Programming and Scripting

Removing tab spaces at the end of each line

I have a file which contains the data lines like below.I want to remove the tab spaces at the end of each line.I have tried with the command sed 's/\+$//' file.but it does not work.Can anyone help me on this? 15022 15022 15022 15022 15022 15022 15023 15023 15023 15023 15023 ... (16 Replies)
Discussion started by: am24
16 Replies
ADDR2LINE(1)						    BSD General Commands Manual 					      ADDR2LINE(1)

NAME
addr2line -- translate program addresses to source file names and line numbers SYNOPSIS
addr2line [-b target | --target=target] [-e pathname | --exe=pathname] [-f | --functions] [-j sectionname | --section=sectionname] [-s | --basename] [-C | --demangle] [-H | --help] [-V | --version] [hexaddress...] DESCRIPTION
The addr2line utility translates program addresses specified by the command line arguments hexaddress to their corresponding source file names and line numbers. If no arguments are given to addr2line, it will read these addresses from standard input. Program addresses specified by arguments hexaddress are encoded using the conventions accepted by strtoull(3). By default, addr2line will use the executable ``a.out''. The -e option may be used to specified a different ELF object. The addr2line utility recognizes the following options: -b target | --target=target This option is recognized by addr2line but is ignored. It is supported for compatibility with GNU binutils. -e pathname | --exe=pathname Use the ELF object specified by argument pathname to translate addresses. If this option is not specified, addr2line will use the file ``a.out''. -f | --functions Display function names in addition to file and line number information. -j sectionname | --section=sectionname The values specified by arguments hexaddress are to be treated as offsets into the section named sectionname. -s | --basename Display only the base name for each file name. -C | --demangle Demangle C++ names. -H | --help Print a help message. -V | --version Print a version identifier and exit. OUTPUT FORMAT
If the -f option was not specified, addr2line will print the file name and line number for each address specified on a separate line. If the -f option was specified, addr2line will print a line containing the name of the function corresponding to program address hexaddress, followed by a line with the file name and line number. The addr2line utility prints the file name and line number using the format ``FILENAME:LINENUMBER''. If a file or function name could not be determined, addr2line will print a question mark in their place. If the line number could not be determined, addr2line will print a zero in its place. EXAMPLES
To map address 080483c4 in the default executable a.out to a source file name and line number use: % addr2line 080483c4 To map address 080483c4 in executable helloworld, use: % addr2line -e helloworld 080483c4 To have addr2line act as a filter reading addresses from its standard input use: % addr2line To print the function name corresponding to an address in addition to its source file and line number use: % addr2line -f 080483c4 EXIT STATUS
The addr2line utility exits 0 on success, and >0 if an error occurs. SEE ALSO
nm(1), elfdump(1), elfcopy(1), strtoull(3) AUTHORS
The addr2line utility was written by Kai Wang <kaiwang27@users.sourceforge.net>. BSD
July 25, 2010 BSD
All times are GMT -4. The time now is 12:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy