Sponsored Content
Full Discussion: Text file arrangement
Top Forums UNIX for Dummies Questions & Answers Text file arrangement Post 75326 by merry susana on Thursday 16th of June 2005 08:10:50 PM
Old 06-16-2005
Power Text file arrangement

Dear UNIX experts:

Hi, I have a text file which the contents are arranged vertically down, line by line.
How do use a loop (I think) to make it arrange in vertical arrangement with a tab delimitated and write to a new file?

Eg: of source file
Hello World
Good-day
Thanks
Welcome

The expected output :-
Hello World Good-day Thanks Welcome



Thanks in advance.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Data arrangement

I have these following data: Home Tom Member List 100 Yes 200 No Home Tom Member List 1 No 2 Yes Home Tome Member List 3 No 400 Yes I want my data to be consistants like this: (4 Replies)
Discussion started by: bobo
4 Replies

2. UNIX for Dummies Questions & Answers

Cell arrangement

I have a data file with hundreds of lines: I want to place a YES right below the line that say mydata....can someone please help! on the left is my the original data on the right the data format need to be: left > Right mydata > mydata yes > yesno > no mydata > mydata... (12 Replies)
Discussion started by: bobo
12 Replies

3. UNIX for Dummies Questions & Answers

Data arrangement

10 2 1 2 3 4 5 6 7 8 20 3 2 1 3 2 9 8 2 1 Need the data to be arranged: 10 2 1 5 2 6 3 7 4 8 20 3 2 1 1 2 3 8 2 9 please help! (6 Replies)
Discussion started by: bobo
6 Replies

4. UNIX for Dummies Questions & Answers

Help on file arrangement

Can anyone help me on this. I have a file that looks like this: color red green blue color pink yellow number one two gender male gender female The output would look like this: color red green blue pink yellow number one two gender male female I have over 5000 rows and i dont want... (5 Replies)
Discussion started by: kharen11
5 Replies

5. Shell Programming and Scripting

Re-arrangement of data

Dear Frineds, I have a flat file as follows ABCD ABDCWQE POIERAS ADSGASGFG GHJKFHD XBDFGHFGDH POIU IJPFG AFGJFPGOU A;DGUPGU SFSDFDSDFHDSF SDFGHSFDH I want this column to be converted into row like follows ABCD, ABDCWQE, POIERAS, ADSGASGFG, GHJKFHD, XBDFGHFGDH (6 Replies)
Discussion started by: anushree.a
6 Replies

6. Shell Programming and Scripting

directories and file arrangement in bash

im trying to write a script that will put files with different extensions into their specified directories In the directory are files of various types, i want to arrange the files on individual directories under their type. There are three distinct types of files: 1) Text documents - files with... (2 Replies)
Discussion started by: elginmulizwa
2 Replies

7. UNIX for Advanced & Expert Users

Data re-arrangement

Hi I have a huge problem to solve ASAP. Can someone please help!!! My format is arranged in this format: It has three columns. LOGIN ALIAS REC_ID A BB1 0 A ... (1 Reply)
Discussion started by: Mapilo
1 Replies

8. UNIX for Dummies Questions & Answers

Tar command to preserve the folder/file arrangement

Hi, I do have question for un tar a file. I have several 'tar'ed files. For example: SRS.tar.bz2. I was trying to untar them in a linux server using the command: tar xvjf SRS.tar.bz2 It worked perfectly. but when I open this file in my mac computer all the files are extracted into a... (7 Replies)
Discussion started by: Lucky Ali
7 Replies

9. Shell Programming and Scripting

Retreive data with arrangement

Hi all I have following part of a big file TTDS00002 Synonyms M1 receptor TTDS00002 Disease Alzheimer's disease TTDS00002 Disease Bronchospasm (histamine induced) TTDS00002 Disease Cognitive deficits TTDS00002 Disease Schizophrenia TTDS00002 Function The muscarinic acetylcholine... (2 Replies)
Discussion started by: kareena
2 Replies

10. Shell Programming and Scripting

Match text to lines in a file, iterate backwards until text or text substring matches, print to file

hi all, trying this using shell/bash with sed/awk/grep I have two files, one containing one column, the other containing multiple columns (comma delimited). file1.txt abc12345 def12345 ghi54321 ... file2.txt abc1,text1,texta abc,text2,textb def123,text3,textc gh,text4,textd... (6 Replies)
Discussion started by: shogun1970
6 Replies
SAY(1)							     Speech Synthesis Manager							    SAY(1)

NAME
say - Convert text to audible speech SYNOPSIS
say [-v voice] [-r rate] [-o outfile [audio format options] | -n name:port | -a device] [-f file | string ...] DESCRIPTION
This tool uses the Speech Synthesis manager to convert input text to audible speech and either play it through the sound output device chosen in System Preferences or save it to an AIFF file. OPTIONS
string Specify the text to speak on the command line. This can consist of multiple arguments, which are considered to be separated by spaces. -f file, --input-file=file Specify a file to be spoken. If file is - or neither this parameter nor a message is specified, read from standard input. -v voice, --voice=voice Specify the voice to be used. Default is the voice selected in System Preferences. To obtain a list of voices installed in the system, specify '?' as the voice name. -r rate, --rate=rate Speech rate to be used, in words per minute. -o out.aiff, --output-file=file Specify the path for an audio file to be written. AIFF is the default and should be supported for most voices, but some voices support many more file formats. -n name, --network-send=name -n name:port, --network-send=name:port -n :port, --network-send=:port -n :, --network-send=: Specify a service name (default "AUNetSend") and/or IP port to be used for redirecting the speech output through AUNetSend. -a ID, --audio-device=ID -a name, --audio-device=name Specify, by ID or name prefix, an audio device to be used to play the audio. To obtain a list of audio output devices, specify '?' as the device name. --progress Display a progress meter during synthesis. -i, --interactive, --interactive=markup Print the text line by line during synthesis, highlighting words as they are spoken. Markup can be one of o A terminfo capability as described in terminfo(5), e.g. bold, smul, setaf 1. o A color name, one of black, red, green, yellow, blue, magenta, cyan, or white. o A foreground and background color from the above list, separated by a slash, e.g. green/black. If the foreground color is omitted, only the background color is set. If markup is not specified, it defaults to smso, i.e. reverse video. If the input is a TTY, text is spoken line by line, and the output file, if specified, will only contain audio for the last line of the input. Otherwise, text is spoken all at once. AUDIO FORMATS
Starting in MacOS X 10.6, file formats other than AIFF may be specified, although not all third party synthesizers may initially support them. In simple cases, the file format can be inferred from the extension, although generally some of the options below are required for finer grained control: --file-format=format The format of the file to write (AIFF, caff, m4af, WAVE). Generally, it's easier to specify a suitable file extension for the output file. To obtain a list of writable file formats, specify '?' as the format name. --data-format=format The format of the audio data to be stored. Formats other than linear PCM are specified by giving their format identifiers (aac, alac). Linear PCM formats are specified as a sequence of: Endianness (optional) One of BE (big endian) or LE (little endian). Default is native endianness. Data type One of F (float), I (integer), or, rarely, UI (unsigned integer). Sample size One of 8, 16, 24, 32, 64. Most available file formats only support a subset of these sample formats. To obtain a list of audio data formats for a file format specified explicitly or by file name, specify '?' as the format name. The format identifier optionally can be followed by @samplerate and /hexflags for the format. --channels=channels The number of channels. This will generally be of limited use, as most speech synthesizers produce mono audio only. --bit-rate=rate The bit rate for formats like AAC. To obtain a list of valid bit rates, specify '?' as the rate. In practice, not all of these bit rates will be available for a given format. --quality=quality The audio converter quality level between 0 (lowest) and 127 (highest). ERRORS
say returns 0 if the text was spoken successfully, otherwise non-zero. Diagnostic messages will be printed to standard error. EXAMPLES
say Hello, World say -v Alex -o hi -f hello_world.txt say --interactive=/green spending each day the color of the leaves say -o hi.aac 'Hello, [[slnc 200]] World' say -o hi.m4a --data-format=alac Hello, World. say -o hi.caf --data-format=LEF32@8000 Hello, World say -v '?' say --file-format=? say --file-format=caff --data-format=? say -o hi.m4a --bit-rate=? SEE ALSO
"Speech Synthesis Programming Guide" 1.0 2012-09-15 SAY(1)
All times are GMT -4. The time now is 02:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy