Hi
I have few files. For some files the cursor is at the end of last line. For other files, cursor is at the new line at the end.
I want to bring the cursor down to next line for the files that are having cursor at the end of last line
In otherwords, I want to introduce a blank line at the... (5 Replies)
I have a file with varying record length in it. I need to reformat this file so that each line will have a length of 100 characters (99 characters + the line feed).
AU * A01 EXPENSE 6990370000 CWF SUBC TRAVEL & MISC
MY * A02 RESALE 6990788000 Y... (3 Replies)
Hello, I'm looking for sed solution to change
...
<li>keyword</li>
<li>keyword
<li>keyword</li>
<li>keyword
<li>keyword</li>
...
to
...
<li>keyword</li>
<li>keyword</li>
<li>keyword</li>
<li>keyword</li>
<li>keyword</li>
...
I.e., if lines beginning with <li> do not end with... (3 Replies)
Hi all,
I have this sample file (actual file is larger) and i need to add comma at the end of every line.
1234
4335
232345
1212
3535
Output
1234,
4335,
232345,
1212,
3535,
TIA - jak (2 Replies)
How can I specify special meaning characters like ^ or $ inside a regex range. e.g
Suppose I want to search for a string that either starts with '|' character or begins with start-of-line character.
I tried the following but it does not work:
sed 's/\(\)/<do something here>/g' file1
... (3 Replies)
I trying to make a simple script to get info from remote servers my problem is the output of this line-
SERVER_NAME=`ssh -t $USER@$REMOTESERVER 'hostname'`the output is
linux1^M
I would like to remove the ^M
where is my error?
Many Thanks
-Steve (1 Reply)
Hello Everyone,
I need a help from experts of this community regarding one of the issue that I am facing with shell scripting.
My requirement is to append char's at the end of each line of a file. The char that will be appended is variable and will be passed through command line.
The... (20 Replies)
Hi,
I have a script which I need to change. I want to add a semicolon at the end of each line where the line starts with "grant"
for e.g.
create table(....
);
grant select on TABL1 to USER1
grant select on TABL1 to USER2should become
create table(....
);
grant select on TABL1 to... (3 Replies)
I have a file with dates as
'2013-01-01'
'2013-01-02'
I want the output to be '2013-01-01','2013-01-02'
if there is only 1 entry then there should not be any comma. (6 Replies)
Discussion started by: ATWC
6 Replies
LEARN ABOUT ULTRIX
uuencode
uuencode(5) File Formats Manual uuencode(5)Name
uuencode - format of an encoded uuencode file
Description
Files output by consist of a header line, followed by a number of body lines, and a trailer line. The command ignores any lines preceding
the header or following the trailer. Lines preceding a header must not, of course, look like a header.
The header line is distinguished by having the first six characters by the word ``begin'', followed by a space. The next item on the line
is a mode (in octal) and a string which names the remote file. A space separates the three items in the header line.
The body consists of a number of lines, each at most 62 characters long including the trailing new line. These consist of a character
count, followed by encoded characters, followed by a new line. The character count is a single printing character and represents an inte-
ger, the number of bytes the rest of the line represents. Such integers are always in the range from 0 to 63 and can be determined by sub-
tracting the character space (octal 40) from the character.
Groups of 3 bytes are stored in 4 characters, with 6 bits per character. All are offset by a space to make the characters print. The last
line may be shorter than the normal 45 bytes. If the size is not a multiple of 3, this fact can be determined by the value of the count on
the last line. Extra dummy characters are included to make the character count a multiple of 4. The body is terminated by a line with a
count of zero. This line consists of one ASCII space.
The trailer line consists of "end" on a line by itself.
See Alsomail(1), uucp(1c), uudecode(1c), uuencode(1c), uusend(1c)uuencode(5)