Search Results

Search: Posts Made By: manit
10,164
Posted By manit
To copy a file from one unix server to another unix server through scripts
I am getting the fallowing error when i am trying to execute the scp commomd in shell script

warning: You have no controlling tty. Cannot read confirmation.
warning: Authentication failed....
18,022
Posted By manit
Thanks guys i simply ignorsd the message and...
Thanks guys
i simply ignorsd the message and again ran the script,its running fine now
thanks
18,022
Posted By manit
^M: not found
Hi All,

when i ran a shell script ,its showing "^M: not found" errore



i used the the code
dos2unix sunshine.sh sunshine1.sh

and then again i ran the scriptand then its still...
1,976
Posted By manit
Thanks for replying actualy i was using the...
Thanks for replying
actualy i was using the command

but what will i do in case of multiple occurence of [mat $ demon to d6s]
Thnax in advance
1,976
Posted By manit
to break a file into 2 files after matching a pattern.
Hi,
i need to break a file into 2 files afetr matching a pattern

for ex. there is a fil, file .txt which contains



here i need to look for mat $ demon if it matches then i need to...
23,738
Posted By manit
Thanks to both of u its working thanks...
Thanks to both of u
its working
thanks...
23,738
Posted By manit
oldname="dashboard.dat" bash-2.05$...
oldname="dashboard.dat"
bash-2.05$ newname=${oldname%%.txt}".xls"
bash-2.05$ mv $oldname $newname
23,738
Posted By manit
hi i had used the code body { margin: 0 0...
hi
i had used the code

body { margin: 0 0 0 0; padding:0 0 0 0 }td,div { font-family:Tahoma;font-size:8pt;vertical-align:top }body { margin: 0 0 0 0; padding:0 0 0 0 }.transcript {...
23,738
Posted By manit
ya the input file is available on the unix server...
ya the input file is available on the unix server with the name "dashboard.dat" i want to copy its content in a .xls file through a unix script.
23,738
Posted By manit
yes i want to open a comma seprated file in...
yes i want to open a comma seprated file in excel, but i want to automate this process,i need a code which will do the same.
thanks
23,738
Posted By manit
To convert a txt file to .xls file
i want to convert a comma seprated file into a .xls file
the file contains 3 fields seprated by a comma.
i want to convert it into a .xls file with 3 columns and 37 rows

...
7,544
Posted By manit
thanks pludi. the cut cammond is also working...
thanks pludi.
the cut cammond is also working here.
bash-2.05$ start_timestamp=`perl -ne 'print $1 if /:\sStarted at (.*)$/;' DPRPT600.log | cut -c 8-26`
++ perl -ne 'print $1 if /:\sStarted at...
7,544
Posted By manit
bash-2.05$ perl -ne 'print $1 if /:\sStarted at...
bash-2.05$ perl -ne 'print $1 if /:\sStarted at (.*)$/;' DPRPT600.log | head -1
+ perl -ne 'print $1 if /:\sStarted at (.*)$/;' DPRPT600.log
+ head -1
`date`"Sun Jan 11 01:06:00 EST 2009Sun Jan 11...
7,544
Posted By manit
i also want to store the first timestamp in a...
i also want to store the first timestamp in a variable.
tahnks
7,544
Posted By manit
i regret for my impoliteness,though i didnt want...
i regret for my impoliteness,though i didnt want to hurt you.
plz help me ,this code is fetching the multiple timestamp,i want only the first one.
like this,
bash-2.05$ perl -ne 'print $1 if...
7,544
Posted By manit
are u getting my problem or shld i clearify more
are u getting my problem or shld i clearify more
7,544
Posted By manit
code: #!/bin/ksh -x ...
code:

#!/bin/ksh -x
#***********************************************************************
#
# Program name : ABCD509.ksh
# Description :
#
# Usage :
#
#...
7,544
Posted By manit
i m still not able to fetch the timestamp plz...
i m still not able to fetch the timestamp
plz help
7,544
Posted By manit
bash-2.05$ grep "^Started at" DPRPT600.log| head ...
bash-2.05$ grep "^Started at" DPRPT600.log| head
+ grep '^Started at' DPRPT600.log
+ head
bash-2.05$ echo $head
+ echo
7,544
Posted By manit
bash-2.05$ VAR=`sed '/^Started at/!d; q'...
bash-2.05$ VAR=`sed '/^Started at/!d; q' DPRPT504.log| sed 's/^Started at \(.*\)/\1/'`
++ sed '/^Started at/!d; q' DPRPT504.log
++ sed 's/^Started at \(.*\)/\1/'
+ VAR=
bash-2.05$ echo $VAR
+...
1,505
Posted By manit
thnx for the reply.. I am still not able to run...
thnx for the reply..
I am still not able to run this command.
i want to copy the timestamp after first occurence of started at and then direct it to some variable
7,544
Posted By manit
thnx for the reply.. I am still not able to run...
thnx for the reply..
I am still not able to run this command.
i want to copy the timestamp after first occurence of started at and then direct it to some variable
1,505
Posted By manit
to fetch the text after only first occurence
I want to fetch text after the first occurance of the word "started at"
i.e. consider a text written below...

echo 'hi how r u '
Started at MON Jan 11 00:03:24 EST 2009
echo 'hi how is ur job...
7,544
Posted By manit
to remove space in a txt file
I want to fetch text after the first occurance of the word "started at"
i.e. consider a text written below...

echo 'hi how r u '
Started at MON Jan 11 00:03:24 EST 2009
echo 'hi how is ur job...
Showing results 1 to 24 of 24

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