CARI Infonet

 Forgot password?
 Register

ADVERTISEMENT

View: 2680|Reply: 4

unix scripting: minta tolong

[Copy link]
Post time 28-5-2009 02:13 PM | Show all posts |Read mode
Camne nak baca dr flat file/xls
pastu extract value , masuk ke output file

cth:
test.xls
column1  column2  column3
1             2              3
11           22            33
-------------------------------

script akan loop and read  column2 and append ke string, output ke myfile.txt, spt dibwh:
myfile.txt
the result is 2 value;
the result is 22 value;

diakhirnya test.xls tu kene delete.

So, ade sesiapa leh tolong. mekasih byk.
Reply

Use magic Report


ADVERTISEMENT


Post time 28-5-2009 02:31 PM | Show all posts
tak bape paham sangat... camni kot boleh ek...

for i in `cat test.xls | grep -v column`
do
echo result is $i
done
Reply

Use magic Report

Post time 28-5-2009 02:32 PM | Show all posts
add line... rm test.xls kalau nakk delete ....
Reply

Use magic Report

Post time 29-5-2009 03:13 AM | Show all posts
unix boleh baca excel file ke? selalunya guna text file je
Reply

Use magic Report

Post time 30-5-2009 02:59 AM | Show all posts
mengapa tidak menggunakan java?<br />
<br />
bukankah adekmanis tere java?
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

 

ADVERTISEMENT



 

ADVERTISEMENT


 


ADVERTISEMENT
Follow Us

ADVERTISEMENT


Mobile|Archiver|Mobile*default|About Us|CariDotMy

12-5-2024 12:40 PM GMT+8 , Processed in 0.059038 second(s), 31 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

Quick Reply To Top Return to the list