Search Results

Search: Posts Made By: avi.skynet
1,836
Posted By avi.skynet
Access value from different server
Hi

my problem goes like dis

i have two linux pc

i have configure in /etc/hosts file
192.168.50.1 avinash
192.168.50.2 pradeep .......... in pc1
so that echo $avinash and echo...
5,584
Posted By avi.skynet
Partial Solution
Hi i can solve your first 2 requirement the third i hope some one will post the solution ... will the solution for first 2 options follows
------------------------------
NumOfColumn=0...
16,233
Posted By avi.skynet
solution
hi
you can compare the string by the following commands as u have told strcmp() in C
if [ "$string1" == "$string2" ]
then

else


fi
17,575
Posted By avi.skynet
sol
user
du -h /abc/def/ghi

#which will give the actual size of the folder in kb or mb or gb
8,043
Posted By avi.skynet
replace
sed -i 's|0108/|2008/|' infile
the original file will be over written
3,652
Posted By avi.skynet
Password
Hi guys... there is one small and interesting quiesion with me
Most of us will write many codes using shell script, Is there any way to protect it by password.
I mean to say if i write a code in a...
14,754
Posted By avi.skynet
Thanks
First of all Thanks for all the reply

ill work out with mr angheloko code which he has sent


pls work it out is there any possibilities to read twise stdin .. :D
4,318
Posted By avi.skynet
File creation Time
Hi dude
there is a command to know the file creation, access and modify

stat filename.txt


but you have to do some grep and cut operation to get the time.
since iam sending replay to ur post...
14,754
Posted By avi.skynet
reply
hi thanks for the reply..
my work is done wit my code. but iam debugging the code.. so i just want to know what is happening in side the while loop one by one ... so that i can make my code...
14,754
Posted By avi.skynet
read command in while
hi all
iam not able use read command in the while loop in the following program

while read line
do
echo $line
echo "enter name"
read name
echo "your have entered $name"
done...
19,183
Posted By avi.skynet
problem in problem
hi Ravi Kumar Garlapati
i worked out ur problem
it works fine in bash shell with the code which you have posted
i have one more doubt in ur code

if i want to read some thing from user inside...
2,444
Posted By avi.skynet
Deleting the similar lines
Dear Friends
myself Avinash working in bash shell
The problem goes like this
I have a file called work.txt [ the content of the file as follows]
assume that
first colum=mac address
second...
50,218
Posted By avi.skynet
cat <inputfile> | grep -n '' > <outputfile> ...
cat <inputfile> | grep -n '' > <outputfile>

Note: grep -n '' (its single quotes without scpace in between)
5,889
Posted By avi.skynet
for each in `find server/ -name "*" -print` do ...
for each in `find server/ -name "*" -print`
do
if [ -f $each ]
then
#set all files to 644
chmod 644 $each
else
#set all directory to 755
...
39,762
Posted By avi.skynet
Yes i understood your problem .. ill tell you...
Yes i understood your problem ..
ill tell you the simple command to solve your problem
1> To delete only the specified files in a perticular directory and subdirectory use the below command
find...
Showing results 1 to 15 of 15

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