Search Results

Search: Posts Made By: muru
9,841
Posted By muru
how to differentiate system call from library call
Hi,
Ho do I differentiate system call from library call?
for example if I am using chmod , how do I find out if it is a system call or library call?

Thanks
Muru
4,171
Posted By muru
thanks, that works
thanks, thats what I wanted! :)
4,171
Posted By muru
thanks a lot, but how can I do include the...
thanks a lot,
but how can I do include the recursive option to the above command?
6,636
Posted By muru
Hi , All those suggestions worked, except I...
Hi ,
All those suggestions worked, except I couldn't test Hitori's, I only have Sun OS 5.7.

Thanks a lot guys, I liked

find. -type f -name "*.cpp" | cpio -pmd <destination directory> by...
6,636
Posted By muru
copy files with diresctory hirarchy
I have a directory x and in that I have x.cpp and a directory named Y

and in y I have y.cpp and so on. and some other files too in those directories.

How can I copy only *.cpp files in whole...
4,171
Posted By muru
tar and compress
I need to compress and tar a couple files in a directory, but I also want the original files unchanged, ie

if I compress a1.cpp , then a1.cpp becomes a1.cpp.z,
but what I want after running the...
9,591
Posted By muru
try this x=`echo $COMP_TEMP | wc -c ` if...
try this

x=`echo $COMP_TEMP | wc -c `
if [ $x -lt 4 ] then
echo $COMP_TEMP
fi
130,752
Posted By muru
[muru:~]cat lastchar word=$1 num=`echo $word...
[muru:~]cat lastchar
word=$1
num=`echo $word | wc -c `
let num-=1
last=`echo $1 | cut -c$num`
echo $last

assumptin: the string that comes after scriptname (its lastchar here) is the string...
3,029
Posted By muru
Thanks, it shows ksh. When I try which ksh...
Thanks, it shows ksh.

When I try which ksh it shows /usr/bin/ksh.

Is not a must for the shell executable be in /etc/shells (i am probably wrong here) or since ksh is one of the available...
3,029
Posted By muru
invoke ksh in SunOS 5.7
Hi I have the following in .kshrc file

set -o allexport
HOSTNAME=$(uname -n)
HISTSIZE=50
EDITOR=vi
ENV=$HOME/.kshrc
PATH=$HOME/bin:/usr/bin:/usr/local:/etc/bin/:/bin:/usr/local/bin:.
bind...
29,979
Posted By muru
That works, thanks a lot for the guidence! ...
That works, thanks a lot for the guidence!

I could substitute
find . -name '*.txt '
with
ls *.txt
too!
29,979
Posted By muru
Hi Jim, Thanks a lot for ur reply. I...
Hi Jim,

Thanks a lot for ur reply. I understand what you say is right, that it is hard to read in a single line. This was one of my interview questions. I told them that I could it and explained...
29,979
Posted By muru
Thanks for the reply, both the above suggestions...
Thanks for the reply, both the above suggestions works.

Can we do it in a single line using something like this

for file in `ls *.txt` ;do mv $file `sed 's/\..*$/.txt/'`;done

this doesn;t...
29,979
Posted By muru
Thanks for your reply, unfortunately SunOs 5.7...
Thanks for your reply, unfortunately SunOs 5.7 doesn't seem to have mmv.

is there any way we could achieve this by following pseudo

find
mv [the file given by find to] ["work on the result...
29,979
Posted By muru
find and mv files in single line
I have a.txt and b.txt (and so on ) in a directory.

I need to move these files to a.xml , b.xml and so on, basically I just need to rename all the XXX.txt files to XXX.xml using find and mv , how...
Showing results 1 to 15 of 15

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