02-28-2009
Is there any reason to avoid external commands? Is this a homework question?
Regards
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello guys,
I have a file in the following format(each line seperated by TAB):
=========
Filename id
Filename id1
Filename id
Filename1 id7
Filename1 id7
Filename2 id1
Filename2 id1
Filename2 id3
Filename3 id2
Filename3 id4
Filename3 id4
Filename3 id6
=========
I would like to... (2 Replies)
Discussion started by: jingi1234
2 Replies
2. Shell Programming and Scripting
I have . dat file which contains data in a specific format:
0 3 892 921 342
1 3 921 342 543
2 4 817 562 718 765
3 3 819 562 717 761
i need to compare each field in a row with another field of the same column but different row and cont the... (8 Replies)
Discussion started by: Abhik
8 Replies
3. Shell Programming and Scripting
Dear friends,
I'm stuck with the task below, I would be thankful for all your replies.
INPUT :
Date Price Volume
20110601 73052811.61 2845833
20110602 61489062.96 9909230
20110603 72790724.65 1108927
20110606 48299507.20 7435881
20110607 ... (5 Replies)
Discussion started by: hernand
5 Replies
4. Shell Programming and Scripting
I have a input.txt file which have 3 fields separate by a comma
place, os and timediff in seconds
tampa,win7, 2575
tampa,win7, 157619
tampa,win7, 3352
dallas,vista,604799
greenbay,winxp, 14400
greenbay,win7 , 518400
san jose,winxp, 228121
san jose,winxp, 70853
san jose,winxp, 193514... (5 Replies)
Discussion started by: sabercats
5 Replies
5. UNIX for Dummies Questions & Answers
Hi !
input:
A|B|C|D
A|F|C|E
A|B|I|C
A|T|I|B
As the title of the thread says, I would need to get:
1|3|2|4
I tried different variants of this command, but I don't manage to obtain what I need:
gawk 'BEGIN{FS=OFS="|"}{for(i=1; i<=NF; i++) a++} END {for (b in a) print b}' input
... (2 Replies)
Discussion started by: beca123456
2 Replies
6. Shell Programming and Scripting
Hi all;
Here is my file:
V1.3=4
V1.4=5
V1.1=3
V1.2=6
V1.3=6
Please, can you help me to write a script shell that counts the sum of values in my file (4+5+3+6+6) ?
Thank you so much for help.
Kind regards. (3 Replies)
Discussion started by: chercheur111
3 Replies
7. Shell Programming and Scripting
Hi,
I have a .dat file with contents like the below:
Input file
============SEQ NO-1: COLUMN1==========
9835619
7152815
============SEQ NO-2: COLUMN2 ==========
7615348
7015548
9373086
============SEQ NO-3: COLUMN3===========
9373086
Expected Output: (I just... (1 Reply)
Discussion started by: MS06
1 Replies
8. Shell Programming and Scripting
Hi All ,
I have multiple pipe delimited csv files are present in a directory.I need to find out distinct count on a column on those files and need the total distinct
count on all files.
We can't merge all the files here as file size are huge in millions.I have tried in below way for each... (9 Replies)
Discussion started by: STCET22
9 Replies
9. UNIX for Beginners Questions & Answers
Hi,
Sure it's an easy one, but it drives me insane.
input ("|" separated):
1|A,B,C,A
2|A,D,D
3|A,B,B
I would like to count the occurence of each capital letters in $2 across the entire file, knowing that duplicates in each record count as 1.
I am trying to get this output... (5 Replies)
Discussion started by: beca123456
5 Replies
10. UNIX for Beginners Questions & Answers
I have a file abc.csv, from which I need column 24(PurchaseOrder_TotalCost) to get the sum_of_amounts with date and row count into another file say output.csv
abc.csv-
UTF-8,,,,,,,,,,,,,,,,,,,,,,,,,
... (6 Replies)
Discussion started by: Tahir_M
6 Replies
LEARN ABOUT LINUX
wxclipboard
wxClipboard(3erl) Erlang Module Definition wxClipboard(3erl)
NAME
wxClipboard - See external documentation: wxClipboard.
DESCRIPTION
See external documentation: wxClipboard .
DATA TYPES
wxClipboard() :
An object reference, The representation is internal and can be changed without notice. It can't be used for comparsion stored on disc
or distributed for use on other nodes.
EXPORTS
new() -> wxClipboard()
See external documentation .
addData(This::wxClipboard(), Data::wxDataObject() (see module wxDataObject)) -> bool()
See external documentation .
clear(This::wxClipboard()) -> ok
See external documentation .
close(This::wxClipboard()) -> ok
See external documentation .
flush(This::wxClipboard()) -> bool()
See external documentation .
getData(This::wxClipboard(), Data::wxDataObject() (see module wxDataObject)) -> bool()
See external documentation .
isOpened(This::wxClipboard()) -> bool()
See external documentation .
open(This::wxClipboard()) -> bool()
See external documentation .
setData(This::wxClipboard(), Data::wxDataObject() (see module wxDataObject)) -> bool()
See external documentation .
usePrimarySelection(This::wxClipboard()) -> ok
Equivalent to usePrimarySelection(This, []) .
usePrimarySelection(This::wxClipboard(), Options::[Option]) -> ok
Types Option = {primary, bool()}
See external documentation .
isSupported(This::wxClipboard(), Format::integer()) -> bool()
See external documentation .
get() -> wxClipboard()
See external documentation .
destroy(This::wxClipboard()) -> ok
Destroys this object, do not use object again
AUTHORS
<>
wxErlang 0.98.9 wxClipboard(3erl)