Search Results

Search: Posts Made By: prarat
6,586
Posted By prarat
File containing special characters
Hello All,

I am facing challenges in order to transfer a file from windows to unix box,the file contains a special character '×' ,now when I am transferring the file from windows to unix that...
3,065
Posted By prarat
Thanks for the reply. I think -a is for...
Thanks for the reply.
I think -a is for atachment,though I have tried,bu that is also not working.
Only issue i have is it is not giving me any error,but I am not getting the mail in my...
3,065
Posted By prarat
Sending mail from shell script
Hello All,
I m trying to send mail from my unix script,
I have used the below command
mailx -s 'hi' email address < temp.txt
It is not giving me any error,but I couldn't receive the mail
Can you...
4,837
Posted By prarat
Hi, You can use this,this might work ...
Hi,

You can use this,this might work

find filename | cut -d '\' -f4
38,943
Posted By prarat
Hi, Thanks for the help,the problem is whne I...
Hi,
Thanks for the help,the problem is whne I am trying to execute the script its asking for the root's password which I dont know how to pass from the script.
38,943
Posted By prarat
Switch user inside shell script
Hi,
I am trying to create one script where I have to login as another user inside the script to exeute some commands
How can i achieve this?

Many thanks in advance.
1,413
Posted By prarat
Hi all, I have an another issue in the new...
Hi all,

I have an another issue in the new files,I am struggling to remove carriage return at the end of file,because due to that i am getting a extra line at the end of file,I tried the below ...
1,413
Posted By prarat
Hi Bakunin, Its working fine, Thanks a...
Hi Bakunin,

Its working fine,

Thanks a lottttt:b:
1,413
Posted By prarat
Hi Yazu, yes ,its working fine Many...
Hi Yazu,

yes ,its working fine
Many thanks:b:

---------- Post updated 08-03-11 at 04:48 AM ---------- Previous update was 08-02-11 at 06:02 AM ----------

Hi,
This is working fine but it...
1,413
Posted By prarat
[Solved] Script to split a file into two
Hi i have a file like

a 12
b 13

c 14
d 15

I want to split it based on a blank line like in first file I should have
a 12
b 13
and in the second file I have
c 14
d 15
How can i do...
890
Posted By prarat
you can use -o for OR and -a for AND
you can use -o for OR and -a for AND
6,781
Posted By prarat
Could you please try this a=27 date=` date...
Could you please try this

a=27
date=` date +%d`
month=` date +%m`
if [ $date -eq $a ]
then
if [ $month -eq 03 -o $month -eq 06 -o $month -eq 09 -o $month -eq 12 ]
then
echo 'Execute event...
6,781
Posted By prarat
If i understand correctly for the rest of months...
If i understand correctly for the rest of months on 26th day event1 will be executed and for the specified months 26th day event 2 will be executed right?
3,685
Posted By prarat
you want to display the file names along with the...
you want to display the file names along with the count,or you only want the matching file names

if you only want the matching file names then this is enough

ls | grep 'XX_ID*'
2,479
Posted By prarat
You can try this a=12 b=` date +%Y%m%d` ...
You can try this

a=12
b=` date +%Y%m%d`
c=` ls -ltr | grep 'CCD_'$b | tr -s ' ' | cut -d ' ' -f8 | cut -c1-2 | wc -l`
if [$c -eq $a ]
then
echo 'The files are good'
else
echo 'The files...
3,685
Posted By prarat
go to that folder and try this command ls |...
go to that folder and try this command

ls | grep 'XX_IN*'

Thanks,
Pragyan
14,441
Posted By prarat
Row counts
No,there is no header and trailor as of now,we need to append to the existing file

Thanks
14,441
Posted By prarat
row count
Hi,
I want a row count of a file incliding header and trailer
If I do cat Filename | wc -l
then I am only getting the row count excluding the header and trailer
Buit I want the row count...
3,806
Posted By prarat
Thanks scottn, This is exactly what i am...
Thanks scottn,
This is exactly what i am looking for
3,806
Posted By prarat
Adding data in a file on same line
Hi,
I have one file a.txt ,the contents of the file is

A B C
D E F
and I have another file b.txt, the contents of the file is

1 2 3
4 5 6
now when I am using this command

cat...
Showing results 1 to 20 of 20

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