Search Results

Search: Posts Made By: samplify
2,593
Posted By samplify
CD (change directory) - Not advisable for executing a command
Hi,

This is a quick one.
I have got a review comment in one of the scripts that i wrote:

"In UNIX script it not advisable to use cd to a directory and then run command."

Is this true?
I...
Forum: Solaris 10-29-2007
4,907
Posted By samplify
Solution
you need to give permission to the script to make it running without prefixing it with a 'sh' or '.'

try
$ chmod 777 abc.sh
$ abc.sh
9,495
Posted By samplify
Another way
If i were you , this is what i would do

$ ls -lRt | grep $filename
<notice the 'R' , its list RECURSIVE>

-Samarth
3,727
Posted By samplify
Solution!
If i were you , this is what i would do

$ ls -lRt | grep -v Archive
<notice the 'R' , its list RECURSIVE>

or here is another one:

$ for x in `ls -lF | grep '/' | grep -v Archive`;do
echo...
Showing results 1 to 4 of 4

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