10-11-2011
It would be easier if you post sample data and expected output.
This User Gave Thanks to radoulov For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm declaring a variable within a Korn shell to represent the total number of records in a SAS dataset and could use a little help with the syntax. This is what I have thus far:
#!/usr/bin/ksh
RecCount = `sas -x "select count(*) from /users/abc/123/sas_dataset.sas7bdat"` (2 Replies)
Discussion started by: sasaliasim
2 Replies
2. UNIX for Dummies Questions & Answers
I have two files one (numbers file)contains the numbers(approximately 30000) and the other file(record file) contains the records(approximately 40000)which may or may not contain the numbers from that file.
I want to seperate the records which has the field 1=(any of the number from numbers... (15 Replies)
Discussion started by: Shiv@jad
15 Replies
3. Shell Programming and Scripting
I have a file which has about 10000 records and I need to delete about 50 records from the file. I know line numbers and am using
sed '134,1357,......d' filename > new file.
It does not seem to be working.
Please Advice (5 Replies)
Discussion started by: mad_man12
5 Replies
4. UNIX for Dummies Questions & Answers
hey,
I have a file with numbers in US notation (1,000,000.00) as well as european notation (1.000.000,00)
i want all the numbers to be in european notation.
the numbers are in a text file, so to prevent that the regex also changes the commas in a sentence/text i thought of:
sed 's/,/\./'... (2 Replies)
Discussion started by: FOBoy
2 Replies
5. Shell Programming and Scripting
hi,
i have various csv files, the file format is as follows
Entry: "1",4,2010/08/15-10-00-00.01,,"E",,,,,,,,,120,0,"M4_","C","KEW-011-5337140-20100916163456-540097","1234567890","N N 0 ",,,"NUK 800100200",,,"NN",,,,,,,,,,,,"0000000001|0001|20150401... (2 Replies)
Discussion started by: niteesh_!7
2 Replies
6. Shell Programming and Scripting
hello everyone
i searched the net and i could not find script for this request.
i believe sed command will do it but i'm not sure about how.
my file contains thousands of records, the following is sample:
BEGIN
ASX15001
BEGIN
ASX15000000500020101230
ASX18001020070002010123... (10 Replies)
Discussion started by: neemoze
10 Replies
7. Shell Programming and Scripting
Dear All,
I am struggling with the following task and would appreciate some help. I have a large table (file1.txt). The first column of this table contains an ID. I would like to replace the ID with a label according to a reference file.
Here is an example:
cat infile.txt
0 AJ2312 310 ... (7 Replies)
Discussion started by: GDC
7 Replies
8. UNIX for Dummies Questions & Answers
I need to replace the (*) in the fist of a list with numbers using sed for example >
this file contain a list
* linux
* computers
* labs
* questions
to >>>>
this file contain a list
1. linux
2. computers
3. labs
4. questions (7 Replies)
Discussion started by: aalbazie
7 Replies
9. Shell Programming and Scripting
I have a test file a.txt
001 123 456 789
002 This is just a
001 test data
003 file.
I want to clear columns 5 and 6 if the first 3 characters are 001 using awk.
I tried following but does not work. Any suggestions?
awk 'BEGIN{OFS=FS=""} {if (substr($0,1,3)=="123") $5=" "; $6="... (20 Replies)
Discussion started by: Soham
20 Replies
10. Shell Programming and Scripting
Hello ,
I have below files
a) File A
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<root xmlns="http://aaa/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema" version="2.0">
<project name="source">
<mapping name="m_Source">
<parameter... (3 Replies)
Discussion started by: Pratik4891
3 Replies
LEARN ABOUT SUSE
esdsample
esdsample(1) User Commands esdsample(1)
NAME
esdsample - play a sample
SYNOPSIS
esdsample [-s hostname:port] [-b] [-d] [-e] [-h] [-m] [-r freq] samplename
DESCRIPTION
The esdsample utility plays a sample using the Enlighted Sound Daemon (esd).
OPTIONS
The following options are supported:
-s hostname:portContact the esd server on hostname at port.
-b Specify that the output should be in 8-bit format. By default, the output is in 16-bit format.
-d Play the sample from file as raw data. The default behavior is to read the data from a sound file (.wav, .au, and so on).
If this option is chosen, samplename is the name of a file.
-e Play the sample from the esd cache. If this option is chosen, samplename is the name of the sample in the cache.
-h Display help text, and exit.
-m Specify that the output should be in mono format. By default, the output is in stereo format.
-r freq Specify that the output rate should be set to freq. By default, the output rate is set to 44.1 kHz.
OPERANDS
The following operands are supported:
samplename The name of the sample to be played. If the -e option is used, samplename is the esd cache name. Otherwise, samplename is
a filename.
EXAMPLES
Example 1: Playing a sample from a file
example% esdsample generic.wav
Example 2: Playing a sample from the esd cache
example% esdsample -e esdctl:generic.wav
(where esdctl:generic.wav is the cache name)
EXIT STATUS
The following exit values are returned:
0 Application exited successfully
>0 Application exited with failure
FILES
The following files are used by this application:
/usr/bin/esdsample Executable for Enlightened Sound Daemon sound sampler.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWgnome-audio |
+-----------------------------+-----------------------------+
|Interface stability |External |
+-----------------------------+-----------------------------+
SEE ALSO
esdcat(1), esdmon(1), esdplay(1), esdrec(1), esdctl(1), esd-config(1), libesd(3)
NOTES
Written by Brian Cameron, Sun Microsystems Inc., 2003.
SunOS 5.10 8 Jan 2003 esdsample(1)