Search Results

Search: Posts Made By: Tuxidow
3,524
Posted By Tuxidow
Search and delete a row which is delimited by |^
I have a sample text file like this.

CampaignId|^CampaignCd|^InsertionOrderCd|^OwningAdvertiserCd|^CampaignName
998201|^T15-06|^T15|^|^GTA 160x160
998277|^T15-07|^T15|^TEST|^GTA 160x160...
2,131
Posted By Tuxidow
Need to read a csv and create xml - Perl
I have a csv file like below.

john,r2,testdomain1,john.r2@hex.com,DOMAINADMIN,testdomain1.dom
maxwell,b2, testdomain1,maxwell.b2@hex.com,DOMAINADMIN,testdomain1.dom


I would need the perl...
1,441
Posted By Tuxidow
a constant
a constant
1,441
Posted By Tuxidow
Is there a way to print as below for the same...
Is there a way to print as below for the same input?


gg-qa2 /apps/5201/conf qavm01.dev.example.com,qavm02.dev.example.com,qavm03.dev.example.com
1,441
Posted By Tuxidow
Format the contents of a file
I have a file/output like below from a script.


gg-qa2 5201 qavm01.dev.example.com
gg-qa2 5201 qavm02.dev.example.com
gg-qa2 5201 qavm03.dev.example.com



is there anyway I can format...
1,119
Posted By Tuxidow
Parse through a txt file PERL scripting
Below is a perl code I am trying.


#!/usr/bin/perl

#use strict;
use warnings qw/ all FATAL /;

use constant ENV_FILE => '/apps/env_data.txt';

$uenv = $ARGV[0];

my $input = $uenv;

...
1,873
Posted By Tuxidow
This is a snippet from a CGI code. I agree that I...
This is a snippet from a CGI code. I agree that I can do it in shell. But the situation is not permitting. :P
1,873
Posted By Tuxidow
Use of sed inside perl
$string="test.binary.value";
$toggle="test.binary.value=true";
host=test.server.com

my $returnCode = system ( "ssh $host 'cp -p /tmp/testfile /tmp/testfile.bkup; sed -i 's/\$string.*/\$toggle/g'...
1,193
Posted By Tuxidow
multiple occurrences should be ignored. if the...
multiple occurrences should be ignored. if the entry is under a comment, replace it there. ignore the other. I know its bit complex. but trying to make it bug free.
1,193
Posted By Tuxidow
Need a help with sed
I have a file with lines as below


$cat /tmp/foo
#Hello this is 1st line
my.toggle.enabled=true

#Hello this the 2nd line
my.other.toggle.enabled=true


I have a sed command to replace...
1,391
Posted By Tuxidow
Format a file using awk
I have a file as below


empty May7
noread May8


How can process this file and print as below. neat and clean.


Filename Date Created
empty ...
1,111
Posted By Tuxidow
But is there any way we can just exit to main...
But is there any way we can just exit to main menu if the value entered is a null?

Got the answer comparing the vaue with null and doing continue.
1,111
Posted By Tuxidow
that was typo "fname and name" happened when I...
that was typo "fname and name" happened when I pasted it here and edited. But when I put the variables in quotes on if condition, it started working.
1,111
Posted By Tuxidow
Case switching
Hello Folks

I am writing this simple program but I am stuck at this point. Here is the snippet from my script where I have issues.



3) echo "Current Directory: $(pwd) ...
7,051
Posted By Tuxidow
Passing special characters in an SSH connection
I have a script like this



#!/bin/bash

hello=$1
echo `hostname` $hello
ssh gtint16 "echo $hello"



if I run this as #script.sh "hello''", it prints only hello on that ssh session and...
1,730
Posted By Tuxidow
Retrieve the username which got authenticated by the apache
I have an apache 2.2 setup with LDAP auth enabled. The html form in the front end takes some values and processes them using perl script in the background. Is there a way I can get the username which...
13,247
Posted By Tuxidow
I posted the whole file. There is nothing missing...
I posted the whole file. There is nothing missing here... so the 35th line is the last line..
13,247
Posted By Tuxidow
UploadEnv file #!/usr/bin/ksh ...
UploadEnv file



#!/usr/bin/ksh
########################################################
# Configuration variables for the Upload process...
13,247
Posted By Tuxidow
. ./TempUploadVars I am sourcing it like...
. ./TempUploadVars

I am sourcing it like above.

But getting error as below now.

./TempUploadVars[1]: setnev: not found
13,247
Posted By Tuxidow
Setting up env variable in ksh
I am facing a very strange issue. I have script in ksh with #!/bin/ksh as shebang.

This script has function which sets the env variable before running other functions of the script. by
...
1,469
Posted By Tuxidow
Extract three substrings from a logfile
I have a log file like below.



66.249.73.11 - - [13/Aug/2012:06:08:45 +0000] "UCiZ7QocVqYAABgwfP8AAHAA" "US" "Mediapartners-Google" "-" www.mahashwetha.com.sg "GET...
1,700
Posted By Tuxidow
awesome... I was looking for an answer and got 4...
awesome... I was looking for an answer and got 4 different working answers.. This is super cool.. Thank you all. :)

---------- Post updated at 07:30 AM ---------- Previous update was at 07:00 AM...
1,700
Posted By Tuxidow
Format a log file using sed
I am looking to extract something like this from the below sample log file.

10.28.76.15 SSLC=Z42 71.19.175.130
10.28.76.15 SSLC=Z42 71.19.175.130
10.28.76.15 SSLC=Z42 71.19.175.130

for that I...
1,799
Posted By Tuxidow
Extract two strings from a file and create a new file with these strings
I have the following lines in a log file. It would be great if some one can help me to create a new file with the just entries in the below format.
66.150.161.195 HPSAC=Z05
66.150.161.196 HPSAC=A05...
4,305
Posted By Tuxidow
What I am trying is a script which can be...
What I am trying is a script which can be scheduled so that when it runs it should login to a webmail client like gmail and open up the logged in page in a web browser.
Showing results 1 to 25 of 126

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