Search Results

Search: Posts Made By: krishnampkkm
10,049
Posted By krishnampkkm
Is it possible ? (woi)
Is it possible ?

(woi)
10,049
Posted By krishnampkkm
How to call a batch file in Make file?
Hii

I wanna call a batch file from a make file. Doesn't work , what is the procedure to do this.? Any idea

thanks:eek:
3,389
Posted By krishnampkkm
How to read a line of text from user input?
Hiii
I wanna a read a line of text from standard input. The user enter data like this way

name phone_no month1_salary month2_salary

that is user enter the name ,phone no and salary...
20,385
Posted By krishnampkkm
Display lines not starts with #
hiiiii

$ grep ^"#" $file

Will give the lines , which starts with # .And I wanna get the lines which are not starting with #.
How to implement that.

Thanking you
Krish:b:
20,201
Posted By krishnampkkm
Check if input is an integer or a floating point?
Hiii

I actually intent to check the integer or floating point number input by user i.e. 23, 100, 55.25, 12.50 ..etc. However, when someone input strings or alpha character, my program has to show...
Forum: Fedora 03-11-2010
4,212
Posted By krishnampkkm
I tried the same script in another system fedora...
I tried the same script in another system fedora 11, it works... but mine is Slackware...
shows the following errors...

echo -n "The week of the date 01jan0001 : "
echo -n `date -d 00010101 +%A`...
Forum: Fedora 03-11-2010
4,212
Posted By krishnampkkm
Script to find out first day of our calender
I try to find the first day of our calender. So I used this script ...

echo -n "The week of the date 01jan0001 : "
echo -n `date -d 00010101 +%A`
echo


But its shows error

bash-3.1$ sh...
1,592
Posted By krishnampkkm
you may remove this thread
you may remove this thread
1,592
Posted By krishnampkkm
Update a particular line in a file
Hii to all..

I have a file stud.lst

bash-3.1$ cat stud.lst
NO NMAE DOB 10 +2 BE AVG
075 syam saksena 12/12/55 500 398 550 48.26
099 sachin 11/05/47 450 500 600...
2,542
Posted By krishnampkkm
yyy thank you
yyy thank you
2,537
Posted By krishnampkkm
Thank you mr. karthigayan'...
Thank you mr. karthigayan' (https://www.unix.com/members/302059553.html)

Now the script works fine.....:b:
2,542
Posted By krishnampkkm
Delete a file after comparing with another file.
I need a shell script which takes two files as input, compare the contents of the files and delete the second file if both the files are same,

echo -n "Enter file 1:"
read filename1
echo -n...
2,537
Posted By krishnampkkm
Still I'm getting errors...
Still I'm getting errors...
2,537
Posted By krishnampkkm
Deletes those files in a directory ?
I need a shell script that accepts 2 directories names bar1 and bar2
as arguments , and deletes those files in bar2 which are are identical to their name
spaces in bar1.

I tried with this...
3,965
Posted By krishnampkkm
Okk thank you it works fine,,,
Okk thank you

it works fine,,,
24,145
Posted By krishnampkkm
yes..... ls *.c | awk -F. '{system("mv "$0 " "...
yes..... ls *.c | awk -F. '{system("mv "$0 " " $1 ".h")}'

works fine..
thank you.
3,965
Posted By krishnampkkm
Helooo...Daptal ls -l > temp awk '{print ...
Helooo...Daptal

ls -l > temp
awk '{print $NF,length($NF)}' temp
gives


36 2
21.sh 5
21.sh~ 6
good.sh 7
good.sh~ 8
input 5
new1.sh 7
new1.sh~ 8
temp 4
test1.sh 8
test1.sh~ 9...
3,965
Posted By krishnampkkm
The actual result I need is ls -l total...
The actual result I need is

ls -l
total 36
-rw-r--r-- 1 krishna users 146 2010-03-10 10:11 21.sh
-rw-r--r-- 1 krishna users 147 2010-03-10 10:11 21.sh~
-rw-r--r-- 1 krishna users 505...
24,145
Posted By krishnampkkm
Fine working wellll...then how to change the *.c...
Fine working wellll...then how to change the *.c file to *.h
Forum: Programming 03-09-2010
12,539
Posted By krishnampkkm
Client server communication using FIFO.
Hiii.....
I need a client server communication using a FIFO. Sever is contacted by multiple clients.Each client writes its request to a FIFO.The server replies back to the client through a...
3,965
Posted By krishnampkkm
I'm stii getting the same old wrong...
I'm stii getting the same old wrong output............does not get the length of file name
24,145
Posted By krishnampkkm
convert all *. c files to *.cpp files in a directory
Hiiiii....

how to convert all *. c files to *.cpp files , in a directory given using shell script.

:pThnaking u.:p
3,965
Posted By krishnampkkm
shell script to find noof characters in a file name
hiiii

shell script to find noof characters in a file name, when you run ls -l (using awk)

I tried with this

ls -l > temp
awk -F"," '{print $1 " " expr length $9}' temp


but it give...
3,271
Posted By krishnampkkm
What are the contents of a symbolic link?
Hiii...

I wanna know "What are the contents of a symbolic link?".......
From google I dint get a good answer....that's why I posts here......

Thanking you.
Krishna
29,038
Posted By krishnampkkm
# compare the contents of two file , if same...
# compare the contents of two file , if same delete 2nd one

echo -n "Enter file 1:"
read file1
echo -n "Enter file 1:"
read file1

if [ `diff $file1 $file2 >/dev/null` -eq 0 ]
then
echo...
Showing results 1 to 25 of 26

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