12-24-2013
Akshay,
Please respect if someone in the forum is asking OP a question. Please do refrain from posting answers before the OP get back to us with an answer to the question raised.
I am requesting so just to make sure that the special homework rules are followed.
Thank you
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
I am looping through the contents of a file as follows
cat file |while read inrec
do
echo $inrec >> $TMP
done
(obviously this isn't all i am doing as it would be pointless but for the sake of the problem this is the important bit)
The file has fields which are separated by... (1 Reply)
Discussion started by: handak9
1 Replies
2. Shell Programming and Scripting
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
3. Shell Programming and Scripting
hi i have a file like (every string contains 16 chars)
CTL1330000000000
0000 00
008000
0080000000
i need to form a line and write to a file
CTL13300000000000000 00008000 0080000000
total chars should be 64
... (2 Replies)
Discussion started by: Satyak
2 Replies
4. UNIX for Dummies Questions & Answers
HI
In my script, i am reading the input from the user and want to find the length of the string.
The input may contain leading spaces. Right now, when leading spaces are there, they are not counted.
Kindly help me
My script is like below. I am using the ksh.
#!/usr/bin/ksh
echo... (2 Replies)
Discussion started by: dayamatrix
2 Replies
5. UNIX for Dummies Questions & Answers
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
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. AIX
i/o file:
abc,efg,xyz
Required o/p file:
"abc (Value + blank spaces=16) " ,"efg (Value +blank spaces=15) " ,"xyz (Value+ blank spaces =20) "
In short input file value stores in result file with " i/p Value " added with spaces and are of fixed size like 16,15,20
How to do using... (2 Replies)
Discussion started by: AhmedLakadkutta
2 Replies
8. UNIX for Dummies Questions & Answers
Right now, my code is:
s/Secondary Ins./Secondary Ins.\
1/g
It's adding a 1 as soon as it finds Secondary Ins.
Primary Ins.: MEDICARE B DMERC Secondary Ins.
1: CONTINENTAL LIFE INS
What I really want to achieve is having a 1 added on the next line that contain "Secondary Ins." It... (4 Replies)
Discussion started by: newbeee
4 Replies
9. Shell Programming and Scripting
Hello, could you please help with this one. I have an input file like this:
123,4567,89000
123456789,9876543,12
and for the output I need strings to be with the fixed length, let's say 15, and if the string is -lt 15 to be populated with blanks at the end until it reach 15, like this:
123 ,4567... (1 Reply)
Discussion started by: apenkov
1 Replies
10. Shell Programming and Scripting
I want to make a script to read row by row and find its length. If the length is less than my required length then i hav to append spaces to that paritucular row. Each row contains special characters, spaces, etc.
For example my file contains ,
12345 abcdef
234 abcde
89012 abcdefgh
... (10 Replies)
Discussion started by: Amrutha24
10 Replies
LEARN ABOUT SUSE
mrtg-forum
MRTG-FORUM(1) mrtg MRTG-FORUM(1)
NAME
mrtg-forum - Interactive Help for MRTG users
SYNOPSIS
There is a lot of written documentation for mrtg, but nevertheless you may have a problem where you can't find the solution. In this case
some Human Help may be necessary. With MRTG there are several ways to get Humans to help you.
MAILING-LIST
There are three mailing lists for MRTG available.
mrtg
for discussion among mrtg users.
mrtg-announce
for announcements regarding new versions of mrtg related software.
mrtg-developers
for discussion among people who write software in connection with mrtg or who hack mrtg itself.
THE RULES
Please note that the memebers of the mrtg mailinglist value politeness highly. This means behave in a way you would like others to behave
towards you.
o No shouting. (NO CAPS)
o No rude language
o No demands. everybody is on the list out of their own free will. If you do not get an answer to your question, chances are high that
you did not give sufficent details about the nature of your problem or that the answer to your problem is in the documentation.
o If you do not follow the rules you will be unsubscribed from the list with no further questions asked.
o Decisions about your unsubscription from the list will be taken by
Alex van den Bogaerdt <alex at ergens.op.het.net>
Paul C. Williamson <pwilliamson at MANDTBANK.COM>
If you feel that you have been treated unfairly, you may send mail to me and explain the situation.
Tobi Oetiker <tobi@oetiker.ch>
SUBSCRIBING
These lists are managed by a mailing-list management program (listar). It allows you to subscribe to these lists by sending a message with
the subject: subscribe to the following address:
listname-request@lists.oetiker.ch
You will then get a message asking you to confirm your subscription.
For posting to the lists use the following address
listname@lists.oetiker.ch
Note that only people who are subscribed to the list can post.
Further information about the usage of the mailing lists is available by sending a message with the subject line help to either one of the
request addresses.
There is also a webinterface to the lists on
http://lists.oetiker.ch
List archives are on
http://www.mail-archive.com/index.php?hunt=mrtg
and
http://gmane.org/find.php?list=mrtg
NEWSGROUP
For discussion of MRTG or related topics on the Usenet, please send your posts to:
news:comp.dcom.net-management
Many MRTG users are in this forum and will help you. You can also find an archive of past activity from this Newsgroup on:
http://groups.google.com/group/comp.dcom.net-management
IRC Channel
For discussion of MRTG and related topics on IRC, the `#mrtg' channel on EFNet has been created.
More information can be found at
http://mrtg.easymac.org
MRTG Japan
There is a special Mailinglist for MRTG Users in Japan. It carries translations of the traffic from MRTG-ANNOUNCE as well as updates on the
Japanese Translation of the MRTG documentation. Go to http://www.mrtg.jp/ for further Information.
MRTG Turkiye
There is a special Mailinglist for MRTG Users in Turkey. Go to http://groups.yahoo.com/group/mrtg-turkiye/ for more information.
AUTHOR
Tobias Oetiker <tobi@oetiker.ch> and many contributors
2.16.2 2008-05-16 MRTG-FORUM(1)