I'm trying make a variable length file to a fixed length of 4000.
I'm to pad spaces on the right of a record if length is less than 4000 to make the record length 4000.
I'm trying to use the below commands But I'm getting error that :
And similar error for sed command. Is there a workaround or alternate options to acheive this.
Thanks!
Moderator's Comments:
Please use code tags next time for your code and data. Thanks
Goodmorning,
I have MKS Toolkit (K-Shell) running on a windows server. On it I have a c program that in a true unix environment works fine, but here it adds an extra '0000000000000016000A' in various places in the file that the c program produces that I need to remove.
Here is what the file... (3 Replies)
Hey All,
I need to reorganize a file's text. Here is the source:
host John_Doe
filename "config.cfg";
hardware ethernet 98:10:3d:13:8f:98;
fixed-address 10.10.10.29;
}
host Jane_Doe
filename "config.cfg";
hardware ethernet 98:13:11:fd:5a:57;
fixed-address 10.10.5.24;
}
host... (2 Replies)
I want to get an output from the input as below:
Input:
ASDDS14 RXOTX-39-8 AB0991C TRY1900
AEDFS12 RXOTX-39-9 TK0991C TRY800
HSVDS11 RXOTX-389-10 LG0991C TRY1900
BSDDS09 RXOTX-394-0 AA0066A TRY800
OUTPUT:
ASDDS14 RXOTS-39-8-0 AB0991C TRY1900... (2 Replies)
I have a awk script called test.awk which I run using
awk -f test.awk file1.txt > file2.txt
I am doing a long print statement and want to put it in separate lines
Do I need a '/' at the end or not?????
Should it be like this
print... (12 Replies)
Hello,
I'm trying to figure out how to use sed or awk to delete single lines in a file. By single, I mean lines that are not touching any other lines (just one line with white space above and below).
Example:
one
two
three
four
five
six
seven
eight
I want it to look like: (6 Replies)
Hi friends,
This is sed & awk type question.
I have a text file which has numbers spread all over the file. I want to sum the series of numbers whenever i find it and produce an output file with the sum. For example
###start of input text file ####
abc
def
ghi
1
2
3
4
kjld
random... (3 Replies)
Experts,
Can you please help how to get the output that are written just below "bad"
calls badcalls nullrecv
439486 54 0
badlen xdrcall dupchecks ... (6 Replies)