Search Results

Search: Posts Made By: kinmak
17,057
Posted By kinmak
Read csv into Hash array?
Hi all experts,

May I know how to read a csv file and read the content in a hash in PERL?
Currently, I hard-coded and defined it in my code. I wanna know how to make up the %mymap hash thru...
7,580
Posted By kinmak
Hi all, how to re-write the code in perl?
Hi all,
how to re-write the code in perl?
3,000
Posted By kinmak
use awk instead of nawk
Hi all,
In addition, if awk is used, bailing out msg is appeared.


awk: syntax error near line 2
awk: bailing out near line 2

Can someone pls kindly help?
7,580
Posted By kinmak
really need help on awk
Hi,
regarding the reply, the script has been modified to cope with new requirement of checking last servel characters in a column for replacement.

config file:
001,333

port.csv:...
3,000
Posted By kinmak
How to use awk instead of nawk?
Hi all,
I can run the following script using nawk..However, I find that teh server dun support nawk.. May I know how to change teh script to use awk such that it will work? Very urgent.. thx!
...
7,580
Posted By kinmak
thx alot for yr explanation
thx alot for yr explanation
5,605
Posted By kinmak
Thx for yr reply...as I am a newbie in unix...
Thx for yr reply...as I am a newbie in unix scripts , would u please kindly explain the lines of code? Also, where is the checking of word "Documentation"? Updated is ony performed if the line in the...
5,605
Posted By kinmak
How to replace word in CSV
Hi,
Can someone please help? I am using Sun OS unix:
1. read a CSV file, port.csv
2. find out all lines which has word "Documentation"..as I only need to change on those lines which has word,...
7,580
Posted By kinmak
Hi aigles, would u please kindly explain the...
Hi aigles,
would u please kindly explain the program.. For usage of awk, I ony know how to use it to parse a string. So, I dun quite get the meaning of each ine of code.. The script should be...
7,580
Posted By kinmak
replace words in file based on another file
Hello,
Can someone kindy help me solve this problem..I am using SunOS shell script
I got a file A with following content:

This is my correct document. I wrote 111
This is my incorrect word ,...
45,260
Posted By kinmak
Thanks.. once I changed the first line to...
Thanks..
once I changed the first line to #!/bin/sh, it works fine. Thanks for yr help!!
45,260
Posted By kinmak
ZB, thx for yr reply but same problem even...
ZB,

thx for yr reply but same problem even I re-run it like following,

[devuser]/project/sfs/ostdev/ftp/snd/ondemand/rpt_txt: ls
SFSBR101R01I123.D20050131.TXT SFSBR101R01ITLS.D20050131.TXT...
45,260
Posted By kinmak
Thx for all reply first. To be more specific,...
Thx for all reply first. To be more specific, this is my data..

SSSBR101R01A123.D20041224.TXT

I want to copy this file to another directory with a new name
...
45,260
Posted By kinmak
copy and rename list of files
Hi all,

I am a newbie in writng unix..I am using ksh shell..Does anyone know how to copy a list o files from directory A to directory B with differnt names? i.e
in Dir A, I have
RPT101.555.TXT...
26,527
Posted By kinmak
Vgersh99,yhx for your prompt reply.. However,...
Vgersh99,yhx for your prompt reply..
However, if I don't need any output, can I simply
type
chmod 777 "${line}" in the batch file?
26,527
Posted By kinmak
Hi Vgersh99 , Thansk for yourr reply... may I...
Hi Vgersh99 ,
Thansk for yourr reply...
may I know what does this part of command mean >/dev/null 2>&1 ?

thx
26,527
Posted By kinmak
read input file for batch job
hi all,

I am a newbie in unix shell script. May I know how to write a bacth job to
read a list of files afrom the inout file and do the chmod ? Thanks.
i.e.
inside input.txt
====
a.txt...
Showing results 1 to 17 of 17

 
All times are GMT -4. The time now is 04:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy