Search Results

Search: Posts Made By: tententen
1,416
Posted By tententen
Compare 1st column from 2 file and if match print line from 1st file and append column 7 from 2nd
hi


I have 2 file with more than 10 columns for both



1st file

apple,0,0,0......
orange,1,2,3.....
mango,2,4,5.....


2nd file
apple,2,3,4,5,6,7...
orange,2,3,4,5,6,8......
5,150
Posted By tententen
Sorry quick question. Somehow, there are some...
Sorry quick question. Somehow, there are some rows which has double quotes. Seems like the ones with double quotes was ignored. I just noticed. Is there a way to also handle double quotes?

Sorry...
5,150
Posted By tententen
Yes that was it!. Thank you sooo much!.:D:o....
Yes that was it!. Thank you sooo much!.:D:o. Would you be so kind to explain the command please whenever you're free :). I would really highly appreciate it!. :)
5,150
Posted By tententen
Hi, Yes!, I realized this today that its the...
Hi, Yes!, I realized this today that its the double quote causing the problem. I used your solution and got this result

HUAWEI,20LMG011_DEKET_1296_RTN-980_IDU-1-11-ISV3-1(to...
5,150
Posted By tententen
Matching column value from 2 different file using awk and append value from different column
Hi,

I have 2 csv files.

a.csv
HUAWEI,20LMG011_DEKET_1296_RTN-980_IDU-1-11-ISV3-1(to LAMONGAN_M),East_Java,20LMG011_DEKET_1296_RTN-980_IDU-1,20LMG011,20LMG...
12,769
Posted By tententen
Thank you everyone!. it worked nicely! :) ...
Thank you everyone!. it worked nicely! :)

---------- Post updated at 10:47 PM ---------- Previous update was at 08:32 PM ----------

Dear all,

Let say I just want to alter the first row for...
12,769
Posted By tententen
Dear carloM and yazu, Thank you for your...
Dear carloM and yazu,

Thank you for your replies. However I am getting syntax error and bailing out on line 1 for carloM and syntax error and bailing out on line 2 for yazu. I wonder whats wrong :(
12,769
Posted By tententen
Replace 2nd column for each line in a csv file with fixed string+random number
Hi experts,

My csv file looks like this
U;cake;michael;temp;;;;
U;bread;john;temp;;;;
U;cocktails;sarah;temp;;;;

I'd like to change the value fo 2nd column to cf+random number , which will...
5,787
Posted By tententen
Perl crashed basically. I wonder if there are any...
Perl crashed basically. I wonder if there are any other methods to do this beside using that XSLT.
5,787
Posted By tententen
had problem with perl when executing it. I...
had problem with perl when executing it. I installed the necessary perl modules but it failed to run. Is there an alternative for this?
5,787
Posted By tententen
Perl XML, find matching condition and grep lines and put the lines somewhere else
Hi,

my xml files looks something like this

<Instance Name="New York">
<Description></Description>
<Instance Name="A">
<Description></Description>
<PropertyValue...
2,322
Posted By tententen
Thank you very much!
Thank you very much!
2,322
Posted By tententen
Replacing strings in perl script
HI all,

These are examples of the original value from a variable

$abc can be

FastEthernet1/0
GigabitEthernet3/1
Serial1/0

If $abc is FastEthernet*/* (where * can be any number),...
1,788
Posted By tententen
Thx for the fast respond!.
Thx for the fast respond!.
1,788
Posted By tententen
Perl removing all strings but the final few characters from a variable value
Dear all,

I have a variable called $abc, which the value is something like below,

*** *********** : *****

where * can be anything. I need to remove all but the final characters until last...
2,224
Posted By tententen
it worked!, thank you so much! :D
it worked!, thank you so much! :D
2,224
Posted By tententen
change of plan :P I need help with the...
change of plan :P

I need help with the regular expressions instead as I have tweaked my script

if $cookie =~ /^cookie(.)\/(.)\/(.)/

$cookietype="$1.$2.$3"

so if my $cookie is...
2,224
Posted By tententen
Replacing variable value in perl script
hi I have this line in my perl script


if (($cookie =~ /^cookie(.*)\/(.*)/) && ($ !~ /^cookie(10)\/(.*)|/)) {
$cookienumber = "$1.$2";
}
now if...
7,156
Posted By tententen
Here is my latest update, based on ksh -x...
Here is my latest update, based on ksh -x script.sh, I figured out it wont stop looping when the IP-List.txt* file is no longer available (all removed), instead, $lastfile variable was assigned to a...
6,054
Posted By tententen
the loop is to check is if the file I want...
the loop is to check is if the file I want (matches the string) exists, and if it does, keep processing, until the file are no more available

I think my code is wrong logic wise :p

what is...
6,054
Posted By tententen
so like, how do I fix that? can u please help...
so like, how do I fix that? can u please help thanks :)
6,054
Posted By tententen
it does
it does
6,054
Posted By tententen
getting infinite loop :P
getting infinite loop :P
6,054
Posted By tententen
Check file and if it doesnt exist , exit script
Hi,

Another problem, here is my code


#!/bin/sh

dir='/opt/apps/script/CSV'
datadir='/opt/apps/script/data'

while : ; do
ls -1rt $dir/*.csv > /dev/null 2>&1
if [ $? -eq 0 ] ;then
cp...
7,156
Posted By tententen
errmm hmm
errmm hmm
Showing results 1 to 25 of 35

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