Sponsored Content
Full Discussion: awk on multiple colums
Top Forums UNIX for Dummies Questions & Answers awk on multiple colums Post 302967257 by RudiC on Monday 22nd of February 2016 02:33:12 AM
Old 02-22-2016
It usually pays off to post adequate, representative (mayhap abbreviated) samples helping to describe the problem in more detail, so solutions can be neatly tailored.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

[Shell] How make colums in text file ??

hi, i have little pb, i would like make a colums, but my server not recongize "\t" or i write wrong.... and iam little noobs and no know awk... #!/bin/ksh #---------------------------------------------------------------------------- # Fichiers : ctrl.sh et ctrl2005.txt ... (6 Replies)
Discussion started by: parola
6 Replies

2. Shell Programming and Scripting

merging colums from different files

hi all , i have three files that contain numbes as the first column . i want to add these files together so the numbers from the first file is in the first column ; the numbers from the second file in the second column; and the numbers from the third file in the third column . as an... (5 Replies)
Discussion started by: ppass
5 Replies

3. Shell Programming and Scripting

Sorting a flat file based on multiple colums(using character position)

Hi, I have an urgent task here. I am required to sort a flat file based on multiple columns which are based on the character position in that line. I am restricted to use the character position instead of the space and sort +1 +2 etc to do the sorting. I understand that there is a previous... (8 Replies)
Discussion started by: cucubird
8 Replies

4. Shell Programming and Scripting

Need to print last column based on the value of first 2 colums

Hi Everybody. I need an urgent help, it would be great if somebody will help me out in this regard. See below sample file 1525 805 26 2036 219644. 2598293. 1525 805 126 2327 1525 805 226 ... (6 Replies)
Discussion started by: syahmed
6 Replies

5. Solaris

awk - Print variable number of colums from a starting column

Hi guys, I usualy am able to google awk stuff but I can't find it so far and there are so many awking gurus here that I will give it a shot. I want to print $1;$3;"$5 up to the $NF". In other words, I can have 1000 colums, but need to have $5 up to the end. I started with the idea of... (2 Replies)
Discussion started by: plmachiavel
2 Replies

6. Shell Programming and Scripting

Rearranging the colums in a tab delimited file

I want to rearrange some of my columns in my dat file; how do i do this using a script Suppose, I have an input file like this: BASENAME STREETTYPE PREFIX SUFFIX HOUSENUMBER BUILDUP ORDER8 ORDER2 ORDER1 ISOCOUNTRYCODE POSTALCODE SILVER LAKE RD NW 1135 NEW BRIGHTON RAMSEY MINNESOTA USA 55112... (4 Replies)
Discussion started by: ramky79
4 Replies

7. Shell Programming and Scripting

Help on convert rows to colums

Need help to convert the following data Account name: admin Role: admin Description: Administrator Enabled: Yes to Account Name Role Description Enabled admin admin Administrator Yes Perl or AWK? Thanks San (9 Replies)
Discussion started by: sanguy
9 Replies

8. Shell Programming and Scripting

Reading colums from a text file

Hi all, I have a text file that has (4) columns. There are about 300 lines on this file. It is a plain text file. I am looking to write a simple script that will read each line from the file and generate another text file. The file looks something like this: These are the columns: ... (4 Replies)
Discussion started by: adamw
4 Replies

9. Shell Programming and Scripting

Compare 2 colums in two files

Hi , I am trying to write a part in shell script. I have two files with one column each and would like to output it to a new file giving the records which are different.Pls help experts. File1 Column name 11 12 13 14 18 File2 Column name 11 12 14 17 19 (2 Replies)
Discussion started by: Rossdba
2 Replies

10. UNIX for Dummies Questions & Answers

Find the timestamp difference between two different colums in a file

Sample Input File 2014/10/09 CDE876172588765 00:09:45 00:10:10 200 200 11.7093 2014/10/09 CDE366134588757 01:04:34 01:04:54 210 210 9.8898 2014/10/09 CDE765172345745 03:05:46 03:06:01 100 100 10.0601 2014/10/09 ... (8 Replies)
Discussion started by: rpm120
8 Replies
pods::SDL::AudioSpec(3pm)				User Contributed Perl Documentation				 pods::SDL::AudioSpec(3pm)

NAME
SDL::AudioSpec -- SDL Bindings for structure SDL::AudioSpec CATEGORY
Core, Audio, Structure SYNOPSIS
use SDL; use SDL::AudioSpec; SDL::init(SDL_INIT_AUDIO); my $audio_spec = SDL::AudioSpec->new(); $audio_spec->freq(22050); # 22050Hz - FM Radio quality $audio_spec->format(AUDIO_S16SYS); # 16-bit signed audio $audio_spec->samples(8192); # Large audio buffer reduces risk of dropouts but increases response time $audio_spec->channels(1); # Mono $audio_spec->callback('main::callback'); sub callback { # do something here } DESCRIPTION
The "SDL::AudioSpec" structure is used to describe the format of some audio data. This structure is used by "SDL::Audio::open_audio" and "SDL::Audio::load_wav". While all fields are used by "SDL::Audio::open_audio", only "freq", "format", "samples" and "channels" are used by "SDL::Audio::load_wav". We will detail these common members here. METHODS
freq The number of samples sent to the sound device every second. Common values are 11025, 22050 and 44100. The higher the better. format Specifies the size and type of each sample element. Values it can take are: AUDIO_U8 Unsigned 8-bit samples. AUDIO_S8 Signed 8-bit samples. AUDIO_U16 or AUDIO_U16LSB not supported by all hardware (unsigned 16-bit little-endian) AUDIO_S16 or AUDIO_S16LSB not supported by all hardware (signed 16-bit little-endian) AUDIO_U16MSB not supported by all hardware (unsigned 16-bit big-endian) AUDIO_S16MSB not supported by all hardware (signed 16-bit big-endian) AUDIO_U16SYS Either AUDIO_U16LSB or AUDIO_U16MSB depending on hardware CPU endianness AUDIO_S16SYS Either AUDIO_S16LSB or AUDIO_S16MSB depending on hardware CPU endianness channels The number of separate sound channels. 1 is mono (single channel), 2 is stereo (dual channel). samples When used with "SDL::Audio::open_audio" this refers to the size of the audio buffer in samples. A sample is a chunk of audio data of the size specified in format multiplied by the number of channels. When the "SDL::AudioSpec" is used with "SDL::Audio::load_wav" samples is set to 4096. callback To be documented. AUTHORS
See "AUTHORS" in SDL. perl v5.14.2 2012-05-28 pods::SDL::AudioSpec(3pm)
All times are GMT -4. The time now is 07:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy