Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: manit
9,362
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....
12,769
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
12,769
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,672
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,672
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...
19,779
Posted By manit
Thanks to both of u its working thanks...
Thanks to both of u
its working
thanks...
19,779
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
19,779
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 {...
19,779
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.
19,779
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
19,779
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

...
6,391
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...
6,391
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...
6,391
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
6,391
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...
6,391
Posted By manit
are u getting my problem or shld i clearify more
are u getting my problem or shld i clearify more
6,391
Posted By manit
code: #!/bin/ksh -x ...
code:

#!/bin/ksh -x
#***********************************************************************
#
# Program name : ABCD509.ksh
# Description :
#
# Usage :
#
#...
6,391
Posted By manit
i m still not able to fetch the timestamp plz...
i m still not able to fetch the timestamp
plz help
6,391
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
6,391
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,299
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
6,391
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,299
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...
6,391
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

 

Featured Tech Videos

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