10-10-2008
Anything you tried yet yourself and what about looking here again on your own instead of waiting for a mail when the "job" is finished?!
![Mad Smilie](https://www.unix.com/images/smilies/mad.gif)
Sorry staff, but that sounds rude to me.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i have single column which is starting with same string(many number of rows)
i have to convert each into a single row.how can i do that?
laknar
std
mes
23
55
laknar
isd
phone no
address
amount
99
I have to convert above like below.
laknar|std|mes|23|55
laknar|isd|phone... (3 Replies)
Discussion started by: laknar
3 Replies
2. Shell Programming and Scripting
Hello Friends,
I am new to UNIX shell scripting. Using bash....Could you please help me in converting a flat file into an XML style output file.
Flat file: (Input File entries looks like this)
John Miller: 617-569-7996:15 Bunting lane, staten Island, NY: 10/21/79: 60600
The... (4 Replies)
Discussion started by: humkhn
4 Replies
3. UNIX for Advanced & Expert Users
Hi All,
I am new to this forum, could any one help me out in resolving the below issue.
Input of the flat file contains several lines of text for example find below:
5022090,2,4,7154,88,,,,,4/1/2011 0:00,Z,L,2
5022090,3,1,6648,88,,,,,4/1/2011 0:00,Z,,1... (0 Replies)
Discussion started by: av_sagar
0 Replies
4. UNIX for Dummies Questions & Answers
We receive a file which usually has 40 to 50 million rows. I want to set up an audit process by which everytime we receive a file we audit it for # of rows and total number of columns.
So if the # of rows is around 1 million on a particular day, I want to raise a flag or send an email....and if... (3 Replies)
Discussion started by: priya33184
3 Replies
5. Shell Programming and Scripting
Hi all,
I need your help on a multiple row entry into different columns. And do the same with all the entries in file.
File example (showing 2 entries only, there are many like these):
>ABC
*
AGA-AUUCUC-CGGUUCAAUCU
|||
UCUAUAACCGCGCCGAGUUAGU
>ABC
*
AGAUAU-GCUGCAGGCUCAAUUG
||||||... (2 Replies)
Discussion started by: atulkakrana
2 Replies
6. Shell Programming and Scripting
Hi Friends,
I want to convert a XML file to flat file.
Sample I/p:
<?xml version='1.0' encoding='UTF-8' ?>
<DataFile xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' contactCount='4999' date='2012-04-14' time='22:00:14' xsi:noNamespaceSchemaLocation='gen
.xsd'>
<Contact... (3 Replies)
Discussion started by: karumudi7
3 Replies
7. Shell Programming and Scripting
i have output of script as below
name,roll_no,01-05-12,02-05-12,03-05-12
sam,12,24,24,24
jon,145,24,24,22
van,29,24,22,24
i want to convert these into columns as output is not fixed please tell me how to convert 1st row in to 1st columns likewise,as many rows are there are to be converted... (4 Replies)
Discussion started by: sagar_1986
4 Replies
8. UNIX for Dummies Questions & Answers
Hi gurus!
Please help me with this one. I have an file with the following contents:
a
b
c
d
e
f
g
h
i
j
I would like to make to transform it to look like this as my output file:
a,b,c
d,e,f (4 Replies)
Discussion started by: kokoro
4 Replies
9. Shell Programming and Scripting
Dear fellows, I need your help.
I'm trying to write a script to convert a single column into multiple rows.
But it need to recognize the beginning of the string and set it to its specific Column number.
Each Line (loop) begins with digit (RANGE).
At this moment it's kind of working, but it... (6 Replies)
Discussion started by: AK47
6 Replies
10. Shell Programming and Scripting
Hi .. anyone can you help me ?
i need to convert text below into multiple columns
interface; GigabitEthernet0/0/0/0
description; TRUNK_PE-D2-JT2-VPN_Gi0/0/0/0_TO_ME4-A-JKT-JT_4/1/1_1G
mtu 9212
negotiation auto
interface; GigabitEthernet0/0/0/0.11
description; tes
encapsulation;... (1 Reply)
Discussion started by: mad3linux
1 Replies
LEARN ABOUT DEBIAN
mailsound
MAILSOUND(1) General Commands Manual MAILSOUND(1)
NAME
mailsound - play sounds when mail is received
SYNOPSIS
mailsound [-hszZvrd] soundname ...
DESCRIPTION
mailsound allows a user to play sounds when new mail arrives. It reads a mail message from stdin and uses Mark Boyns' rplay library to
play sounds. The sound that is played is determined by a configuration file in the user's home directory called .mailsounds. Each line in
this file has two parts. The first part is a regular expression which will be used to match the from address from a mail message. The
second part describes what to do when a match is found. The options in the second part are identical to the options on the command line.
The command line options will set defaults which will be used if they are not specified in the configuration file.
If not specified, the mailsound program will use the following defaults:
default sound: youvegotmail.au
default volume: 127 (50%)
If the mail address does not match any of the regular expressions in the .mailsounds file, no sound will be played.
OPTIONS
-h hostname:[hostname...]
Play sounds on all of these hosts.
-z <minsize>:<minvolume>,<maxsize>:<maxvolume>
The volume the sound will be played at will be determined by the size of the mail message. The sound for a message with a size
smaller than <minsize> will be played at volume <minvolume>. The sound for a message with a size larger than <maxsize> will be
played at volume <maxvolume>. The sound for a message with a size between <minsize> and <maxsize> will be played at a volume which
is a linear interpolation between <minvolume> and <maxvolume>.
-Z <minsize>,<maxsize>
The sound to be played is determined by the size of the mail message. If the message is smaller than <minsize>, the first listed
sound is played. If the message is larger than <maxsize>, the last listed sound is played. If the message size is between those
two values, the appropriate sound from the list is played.
-s <subject re>
The regular expression supplied will have to match the subject of the message. If this option is not there, the subject of the mes-
sage is completely ignored. Be careful that the regular expression does not contain spaces. Due to laziness of the author of this
program, this will hopelessly confuse the program.
-v <int>
Set the volume at which the sound should be played. The range is 0-255.
-r Pick a sound at random from the list of sounds provided.
-d Turn on debugging. This will produce diagnostic output to stdout.
EXAMPLE
The following could appear in the .forward file in your home directory: (This assumes that your username is pickard)
pickard, |"/usr/local/bin/mailsound"
Here is a sample $HOME/.mailsounds file:
Andrew.* -r Passing_Train riot arrp flinstones
root.* out!
daemon.* -v 220 sci_fi_fun
MAILER.* -S 1000,10000 cuckoo pig Oomph
*. pigs
FILES
$HOME/.mailsounds
SEE ALSO
rplay.conf(5), rplayd(1)
AUTHOR
This program was written by Andrew Scherpbier at San Diego State University. He can be reached by E-mail as follows:
Andrew@SDSU.Edu
The mailsound program makes use of Mark Boyns' rplay package which can play multiple sounds on remote machines.
He can be reached by E-mail as follows:
boyns@sdsu.edu
BUGS
The code does very little error checking. No range checking on any of the values is done.
11 August 1993 MAILSOUND(1)