Search Results

Search: Posts Made By: lahiru
16,068
Posted By lahiru
Use arrays to this senarioo.Think it's really...
Use arrays to this senarioo.Think it's really easy

myarray=(`cat table.dat|nawk '{print $1}'` `cat table.dat|nawk '{print $2}'`)

After this Your data will get insert in to the myarray.
...
8,388
Posted By lahiru
Use -n with rsh command & then you'r probelem...
Use -n with rsh command & then you'r probelem will surely get solve.

EG: rsh host -n "cd a/b


Regards,
Lahiru Jeewantha
4,443
Posted By lahiru
Check with this
=======================================================

#!/usr/bin/ksh

ls -l |grep .txt|nawk '{print $9}' > list

while read FILE

do

perl -pi -e...
23,109
Posted By lahiru
This may help you probably
#!/usr/bin/ksh

ls -l |grep .txt|nawk '{print $9}' > list

while read FILE

do

perl -pi -e 's/09\/01\/2009/09\/12\/2008/g' $FILE

done <list
Showing results 1 to 4 of 4

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