Search Results

Search: Posts Made By: sivakumar.rj
Forum: Programming 07-23-2009
4,230
Posted By sivakumar.rj
Executable file in C
Hi all,

I have modified a C file and executed it. While executing the executable file for that C file, it shows à is cannot be printed.
I have given isprint(à) to test it. When I copy the old...
Forum: Programming 07-21-2009
2,583
Posted By sivakumar.rj
Need help with the Pointers in C
I have a special character called ô. When it is declared as a character variable its showing it can be printed. But when it is declared as a character pointer variable its showing it cannot be printed....
1,963
Posted By sivakumar.rj
Filename Manipulation in AWK
I have created a nawk program and passing a file as an input parameter.
The filename will be /home/dir/ksh/test.out

I need to extract the filename alone. Is there anyway to get this ?

Input...
1,722
Posted By sivakumar.rj
Differences
Hi all,

I am using korn shell. I want to know what is the difference between hey and echo commands.
3,444
Posted By sivakumar.rj
s...the delimiters have to be filled int...
s...the delimiters have to be filled int his...case

AAABBB<1 space>9<1 space>JJJ
AAABBC<1 space>9<1 space><4 spaces will be here>TTTTT

The input file will be like this...
3,444
Posted By sivakumar.rj
Delimiter
I am having the following file. I need to insert a delimiter in this file. I used sed but its not working.

AAABBB 9 JJJ
AAABBC 9 TTTTT
AAABBA 8 JJJ
AAABBC 7 TTTTT
AAABBC 6 ...
3,815
Posted By sivakumar.rj
Will this awk command searches for the whole...
Will this awk command searches for the whole directory..
3,815
Posted By sivakumar.rj
a small addition on this...I need to find the...
a small addition on this...I need to find the list of the files which does not have the word "hello" at the last 10 lines of each files....
3,815
Posted By sivakumar.rj
Grep the word at the end of the file
I need to grep the word "hello" in each and every file. This word will be placed either at the end of the file or before the end of the file.

Ex:

file1: file2:

afdsaf ...
5,378
Posted By sivakumar.rj
the input can also be read by giving the...
the input can also be read by giving the following

value=$1

or read $1
5,560
Posted By sivakumar.rj
Hi Vgersh, Thank you very much.....I solved...
Hi Vgersh,

Thank you very much.....I solved the problem....its because of ' when invoked in program so I replaced ' with ''. Now its working fine. Tks for ur tip and trick.....
5,560
Posted By sivakumar.rj
Hi, Thnx vgersh...but i am not getting the...
Hi,

Thnx vgersh...but i am not getting the desired output....Its showing no match ....pls help on this...
5,560
Posted By sivakumar.rj
I am using kornshell...when i give sed -i '1i...
I am using kornshell...when i give sed -i '1i $file1' > file2

Its showing illegal option -i...or sed command garbled...
5,560
Posted By sivakumar.rj
Hi Zaxxon, Thanks for your quick reply. ...
Hi Zaxxon,

Thanks for your quick reply.
The problem is I should not use the new file. In file2 itself the contents of file1 have to be included...so usage of new file is not allowed here....
5,560
Posted By sivakumar.rj
adding text from a file to the top of the file
Hi all,

I need a include a text from the file and include it in the top of the other file..

i.e file 1 contains
AAA
BBB
CCC
DDD
EEE
file2 contains
333
44
23
452
54235
232341...
2,166
Posted By sivakumar.rj
I think you are asking abt the copying of...
I think you are asking abt the copying of directories...If so means pls find the command for it...

cp <directory1> <directory2>
4,740
Posted By sivakumar.rj
If you are using Korn shell means, you can use...
If you are using Korn shell means, you can use the compress command to zip the files.

Zip is actually to compress the data which a file is having a huge numbers.
2,177
Posted By sivakumar.rj
ls a*.erc I think you r expecting this...
ls a*.erc

I think you r expecting this command....
6,556
Posted By sivakumar.rj
-s does not create symbolic link when used with...
-s does not create symbolic link when used with mailx. -s denotes the subject in the mailx.

mailx -s <subject> <emailid>

eg. mailx -s "Test mail" xxx.yyy@zzz.com
13,368
Posted By sivakumar.rj
preinstall.sh if [[ $? -ne 0 ]]; then ...
preinstall.sh

if [[ $? -ne 0 ]]; then
echo "Program failed"
exit 2
fi

This will check whether the program has successfully end or not...
1,710
Posted By sivakumar.rj
hi vidhya.. tks for ur reply...but i am using...
hi vidhya..
tks for ur reply...but i am using nawk.....
1,710
Posted By sivakumar.rj
AWK Program
:(Hi all,

I have a doubt in AWK program. I am writing an awk program which accepts a parameter as input and it should display the corresponding details.

if the country as "US" it should be...
17,962
Posted By sivakumar.rj
var=`sqlplus -s <<EOF <statement> ...
var=`sqlplus -s <<EOF
<statement>
>>EOF`
1,900
Posted By sivakumar.rj
AWK program
Hi all,

I need to grep the 3 characters from a file, and to fetch the corresponding words to that character. My file is in the following format..

The below text will be in the separate...
8,792
Posted By sivakumar.rj
#!/bin/ksh a=1.3 b=3.4 c=`echo $a + $b |...
#!/bin/ksh
a=1.3
b=3.4
c=`echo $a + $b | bc`
echo "The value is $c"
exit 0

Try this....
Showing results 1 to 25 of 74

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