Search Results

Search: Posts Made By: Indumathy
2,416
Posted By Indumathy
Try this also, #!/usr/local/bin/perl ...
Try this also,


#!/usr/local/bin/perl
my @source = ("aaa", "aaa", "bbb", "ccc", "ddd");
foreach my $var (@source)
{
push @uniq,$var if(!grep /$var/,@uniq);
}
print "My uniq array::...
1,114
Posted By Indumathy
Try this, nawk...
Try this,

nawk '{gsub(/\[../,"|");gsub(/\{../,"\n")}1' txt

Regards,
Indu
1,790
Posted By Indumathy
Try This, nawk '{if($0!~/###/){$3="madd "...
Try This,
nawk '{if($0!~/###/){$3="madd " $3}}1' txt

Regards,
Indu.
1,374
Posted By Indumathy
Try this, awk -F"," '{for(i=1;i<=NF;i++){print...
Try this,
awk -F"," '{for(i=1;i<=NF;i++){print $i/1024;}}' txt > txt1

Regards,
Indu
1,719
Posted By Indumathy
Try this, nawk -F","...
Try this,

nawk -F"," 'gsub(/"|"/,"",$0){print $2 ",http://"$3"/"}' txt

Regards,
Indu
1,679
Posted By Indumathy
Kindly Try with this for replacing ".", sed...
Kindly Try with this for replacing ".",

sed 's/\(\.\)\([a-zA-Z]\)/\1 \2/g' txt

Regards,
Indu
1,679
Posted By Indumathy
Try this, sed 's/\(\.\)/\1 /g;...
Try this,

sed 's/\(\.\)/\1 /g; s/\"/\V/g' txt
1,343
Posted By Indumathy
Try this, nawk '{if(a[$2] !~ 1){a[$2] =...
Try this,

nawk '{if(a[$2] !~ 1){a[$2] = 1}else{$4=-$4}}1' txt

Regards,
Indu
1,267
Posted By Indumathy
Try this, awk '/string/{print}' test.txt ...
Try this,
awk '/string/{print}' test.txt

Regards,
Indu
1,823
Posted By Indumathy
Try this, sed 's/\%//g; s/G//g' text ...
Try this,
sed 's/\%//g; s/G//g' text

Regards,
Indu
4,389
Posted By Indumathy
Hopes it helps you. sed...
Hopes it helps you.

sed 's/\(..\):\(..\):\(..\..\).. \(..\) \(..\) \(....\)/\1:\2:\3 \4\5\6/' txt1 > txt2

Regards,
Indu
9,983
Posted By Indumathy
Thank u.I mistook that "." have to be deleted. ...
Thank u.I mistook that "." have to be deleted.

Regards,
Indu
9,983
Posted By Indumathy
Hi, You can better use this. sed...
Hi,

You can better use this.
sed 's/^\.\(.*\)//g' filename

Regards,
Indu
Showing results 1 to 13 of 13

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