Search Results

Search: Posts Made By: cmaroju
3,220
Posted By cmaroju
Thaks All..it is now accomplished.. :) ...
Thaks All..it is now accomplished.. :)


echo "UHDR" `while read x ; do echo "$(date -d$x +%Y%j) $x"; done < FILENAME.dat`
3,220
Posted By cmaroju
Hi, The challenge here is I need it as part of...
Hi, The challenge here is I need it as part of single command :(


So can you please help me out, its am running out of time and got to deliver the code at the earlies..

note: at any given...
3,220
Posted By cmaroju
Its giving wrong julian date
currently the date in my file is 20120427 (27th April 2012 in YYYYMMDD format).

I tried using the command as suggested:

awk '{print dte,$0}' dte=$(date +%Y%j) FILENAME

but it is giving me...
3,220
Posted By cmaroju
Issue in Julian date conversion
All, I am facing an issue with julian date conversion..

current command:

echo `date +%Y%j` `cat -n /home/user/FILENAME.dat |awk '{printf "%08s", $2}'`



The above command is working...
972
Posted By cmaroju
Approach on Header record
All,

I currently have a requirement to fetch a Date value from a table. And then insert a Header record into a file along with that date value.
ex:
echo "HDR"" "`date +%Y%j` `date +%Y%m%d`
...
6,119
Posted By cmaroju
methyl, Tried your code too.....am just...
methyl,

Tried your code too.....am just getting an email BUT with No attachment.....
6,119
Posted By cmaroju
This time i tried with my official ID.....still...
This time i tried with my official ID.....still unable to forward the attachment.......
6,119
Posted By cmaroju
gehlnar, This is first time am using that...
gehlnar,

This is first time am using that command...... the host name here is gmail.....
6,119
Posted By cmaroju
Thanks for your early replies,,,,, I tried...
Thanks for your early replies,,,,,

I tried it, same thing, unable to forward that attachment.....
6,119
Posted By cmaroju
But still am unable to forward that...
But still am unable to forward that attachment.....
6,119
Posted By cmaroju
oops am sorry, i posted a partial code..... ...
oops am sorry, i posted a partial code.....

here is my code :

uuencode /var/tmp/chandra/emaillist.txt emaillist.txt | mail -s "message with encoded attachment" xyz@hostname.com
6,119
Posted By cmaroju
unable to send an email attachment
i know its pretty repeated query, but i need to post it in this new thread coz i need it urgently

uuencode /var/tmp/chandra/emaillist.txt emaillist.txt | mail -s "message with encoded attachment" ...
3,380
Posted By cmaroju
path of file is correct...... ok let me be...
path of file is correct......

ok let me be more clear.....

I got 2 scripts.....

script1 creates a logfile and tries to push some echo message using > operator.....

Now, my script2 is...
3,380
Posted By cmaroju
my script has two echoes..... echo "hello" >...
my script has two echoes.....

echo "hello" > [path of file]

echo "world" >> [path of file]
3,380
Posted By cmaroju
the script is created by say user:ABC and...
the script is created by say user:ABC

and now, the script itself is creating the log file and echoing messages into it.

so, the user for the logfile must also be ABC by default.

wondering...
3,380
Posted By cmaroju
unable to push messages into log file
hello all.....

I have a shell script created by the user ABC.

in that script, am trying to push some echo messages into a Log file.....

eg: echo "error occurred" > [path of file]


but...
10,732
Posted By cmaroju
is there any way that we can pass the command as...
is there any way that we can pass the command as a parameter / redirect the its output to dos2unix command ?


Thanks for ur inputs,,,,, please take it as a priority.
10,732
Posted By cmaroju
dos2unix
hi,

need some urgent inputs.....

I have a folder, which has both files and directories as its contents.

I want to convert all the files (Excluding the directories) from dos to unix mode...
129,162
Posted By cmaroju
ls -ltrS will display all the files...
ls -ltrS



will display all the files based on their size in a particular directory in reverse order.
2,658
Posted By cmaroju
comparing part of header with part of detailed records.
Hi there,

I am lil confused with the following issue.

I have a File, which has the following header: IMSHRATE_043008_101016

a sample detailed record is :9820101...
3,361
Posted By cmaroju
hi all, thanks for your quick response. ...
hi all, thanks for your quick response.

However, finally did manage to solve it by using the below code:

if ( awk 'BEGIN{if(0+'$c'>= 0)exit 0;exit 1}')
then
echo "successs"
else
echo...
3,361
Posted By cmaroju
and still am getting the same old error....as...
and still am getting the same old error....as mentioned in mi first post.
3,361
Posted By cmaroju
my mistake....am using "then"......forgot to type...
my mistake....am using "then"......forgot to type that.

a=10
b=10.6
c=$(echo "$a - $b" | bc)
if [[ "$c" -ge 0 ]] ; then
echo "success"
else
echo "failure"
fi
3,361
Posted By cmaroju
error while doing decimal comparision in shell
a=10
b=10.6
c=$(echo "$a - $b" | bc)
if [[ "$c" -ge 0 ]]
echo "success"
else
echo "failure"
fi


while executing the above sample code, am getting the below error:

[[: -.6: syntax error:...
Showing results 1 to 24 of 24

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