Search Results

Search: Posts Made By: namishtiwari
1,208
Posted By namishtiwari
Hi ctsgnb, currentfolder=`ls -l | grep ^d...
Hi ctsgnb,


currentfolder=`ls -l | grep ^d | awk '{print$9}' | grep ^[0-9][0-9]*$ | sort -k 1n | tail -1`
newfolder=`expr $currentfolder + 1`
if [ $newfolder = $currentfolder ]
then...
1,208
Posted By namishtiwari
Thanks for the suggestions. There is one more...
Thanks for the suggestions.
There is one more catch which we need to take care nad that is
Suppose if someone has deleted the current folder then it should send an alert to some addresses.
The...
1,208
Posted By namishtiwari
Hi ctsgnb, You made a valid point, thanks...
Hi ctsgnb,

You made a valid point, thanks for that.
How should i get the highest number ?

Thanks
1,208
Posted By namishtiwari
What i wanto achieve is explained again- The...
What i wanto achieve is explained again-
The current folder is say 22 and it contains the latest release contents.The current foldder will be used by other applications.
After some time there is...
1,208
Posted By namishtiwari
Shell Script
Hi,

I am writing a script which keeps on checking for the folder updated in some directory and and if it updated then the current folder will point to the new folder.

Suppose the folder current...
4,353
Posted By namishtiwari
#!/usr/bin/perl use strict; use warnings; ...
#!/usr/bin/perl

use strict;
use warnings;
use LWP::Simple;
my $filename="data.txt";
open(FILE, $filename) or die ("could not open $filename!") ;
while (my $data = <FILE>)
{
chomp $data;...
1,315
Posted By namishtiwari
Count all columns in a given file
Hi,

I have a file where i have dump of a DB. it has all the columns and rows inside that. I wanted to extract the columns and number of columns from that dump.
Any suggestions will be helpful.
...
1,965
Posted By namishtiwari
Hi, I am trying to use the Cvs::Simple...
Hi,

I am trying to use the Cvs::Simple module of CPAN for perl interface but i am not able to do so here. I did not see a function where i need to put the server details and password. i am trying...
1,965
Posted By namishtiwari
login in wincvs thorugh shell or perl script
Hi ,

I am trying to write a script which does the wincvs login and does some checkout operations.

When i do it from command prompt with command
wincvs -d...
1,693
Posted By namishtiwari
dir="/home/somedirectory" if [ -d $dir ] then...
dir="/home/somedirectory"
if [ -d $dir ]
then
echo "The directory $dir exists"
cp pathoffiletocopy .
else
mkdir -p $dir
cd $dir
cp pathoffiletocopy .
fi


try somethink like this. I did...
2,264
Posted By namishtiwari
Hi, You can aslo use the debug option to...
Hi,

You can aslo use the debug option to identify the root cause of the problem.
put
set -x

below the line

#!/bin/sh


and give it a try to find out where the problem lies.

Thanks
1,027
Posted By namishtiwari
Thank you Drewk. it worked like a charm. ...
Thank you Drewk. it worked like a charm.

Thanks
namish
1,027
Posted By namishtiwari
string find in a big string
Hi,

I have a sample string and wanted to find out a string in between this string.

<?xml version="1.0" encoding="UTF-8"?><GCEmail xmlns:sw="http://www.rediff.com/schemas/email/"...
1,859
Posted By namishtiwari
I did not get what you want to say here. ...
I did not get what you want to say here.


Thanks
NT
1,859
Posted By namishtiwari
Hi Festus, i have already tried this option...
Hi Festus,

i have already tried this option and it does not work. it will delete all the files including access.
1,859
Posted By namishtiwari
No these are not in unix. this is on windows box.
No these are not in unix. this is on windows box.
1,859
Posted By namishtiwari
removing extra files in dos
Hi,

I have same file by name


i want to keep only access file and want to delete rest. This is specific to DOS only.
Any idea of doing this. I tried so many options but none worked for me.
...
1,649
Posted By namishtiwari
echo "Please enter the directory name....." ...
echo "Please enter the directory name....."
read dir
cd $dir
echo " You are in `pwd` directory now"



Thanks
Namish
1,136
Posted By namishtiwari
Does this make a diffrence as i am doing both in...
Does this make a diffrence as i am doing both in one.

Thanks
NT
1,136
Posted By namishtiwari
I tried this option already and it did not work...
I tried this option already and it did not work for me.

some part of my code is like this--

for(;$index<@records;$index++)
{
#printf "LINENO=$index\n";

if ($records[$index] =~...
1,136
Posted By namishtiwari
perl required output
Hi,

I have a string in log file from that i need to pick the username.

the string is like this--


pid 2172 tid 3124: 160: 10110847: userName :[app@abc.com]
pid 2172 tid 3124: 160:...
3,957
Posted By namishtiwari
special characters handling in perl
Hi,

Here is my piece of code--


sub per_user_qna_detail
{
for($index=0;$index<@records;$index++)
{
if($records[$index] =~ m/^(.*)\s*Morocco.*Entering\s*Module::authenticate/)
{...
7,601
Posted By namishtiwari
I got it working guys. Thanks anyway for your...
I got it working guys.
Thanks anyway for your help.

Thanks
NT
7,601
Posted By namishtiwari
I can see in my perl modules that these files are...
I can see in my perl modules that these files are there, but still when i ran the script i got these erros--

Can't locate auto/Compress/Raw/Zlib/autosplit.ix in @INC (@INC contains: C:/Perl
/lib...
7,601
Posted By namishtiwari
Hi Pludi, Thanks for the suggestions. But i...
Hi Pludi,

Thanks for the suggestions. But i could not understand this line
You're trying to use unzip without the module being installed, hence the error message. If you're using ActiveState's...
Showing results 1 to 25 of 383

 

Featured Tech Videos

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