Search Results

Search: Posts Made By: daniel.gbaena
14,741
Posted By daniel.gbaena
Yes, I use the second code but about the first...
Yes, I use the second code but about the first code, I have solved the problem escaping the dot. The problem was that I have proved to scape the dot, before your answer, but not using quotes. Using...
14,741
Posted By daniel.gbaena
Sorry but I could not answer before. I have...
Sorry but I could not answer before. I have solved the problem but I still have a doubt. The next first code give me all the scripts of my computer but also give me some files that ends with ".bsh"....
14,741
Posted By daniel.gbaena
Hi Franklin52. Actually I do this: find...
Hi Franklin52.

Actually I do this:

find / -user user_name | grep "*.sh"
It works but it only search into directories that resides under the path of the script and I want to do it all over the...
14,741
Posted By daniel.gbaena
List All the Scripts
Hi there.

I need to list all the sh extension files, from a particular user, that exists on a computer. How can I do it?

Thanks for reading.
Forum: Programming 05-28-2010
3,143
Posted By daniel.gbaena
The code thats calls this function is quite...
The code thats calls this function is quite simple.


typedef struct node {

char caracter;
struct node *nextNode;
} NodeTipe;

int main(int argc, char argv[]) {
NodeTipe *pList;
...
Forum: Programming 05-28-2010
3,143
Posted By daniel.gbaena
Segment Violation
Hi to all.

I'm reciving a "Segment violation" error from this code and I don't know why.


void insertAtEnd(NodeType *pList) {

char element;

printf("Introduce a element: \n");
...
2,099
Posted By daniel.gbaena
Thanks, it's works great.
Thanks, it's works great.
2,099
Posted By daniel.gbaena
Thanks anchal_khare, your code works. I...
Thanks anchal_khare, your code works.

I found the problem.


#If I do this, it doesn't works.
for i in `find / -name "*.sh" -user $user_name 2> /dev/null | tr " " "_"`
do
...
2,099
Posted By daniel.gbaena
Problems with Blank Spaces
Hi to all.

How can I pass to the stat command a file path with blank spaces? And another question, if I use stat command like this:


stat / -name "*.sh" -user $user_name -exec stat -c %n%x {}...
3,439
Posted By daniel.gbaena
Hi vgersh99. It's very usefull the post that...
Hi vgersh99.

It's very usefull the post that you have linked me, but if I have asked for this question is becasuse I hoped that Unix be able to compare the dates directly.

Any way, I let here...
2,204
Posted By daniel.gbaena
Actually I prefer don't use AWK. Anyway, thanks...
Actually I prefer don't use AWK. Anyway, thanks for your reply.
2,204
Posted By daniel.gbaena
Thank you both. Both solutions works.
Thank you both. Both solutions works.
3,439
Posted By daniel.gbaena
The Best Way to Compare Dates
Hi to all.

When you have to compare a lot of dates in a SH code, there is a way to directly compare? For example, how can I check if two dates differ in less than a week?

Thank's for reading.
2,204
Posted By daniel.gbaena
How to Delete the First Blank of the First Col?
Hi to all.

In the following example, how can I delete the first blank of the first col? (using shell scripting)


first second third fourth
fifth sixth seventh eighth


Thank's for...
29,547
Posted By daniel.gbaena
Finally it works. It seems like the coma, in...
Finally it works. It seems like the coma, in Spain we use as float delimiter a coma and not a point, was the problem. If I use the next code it works right:

cat opositores1 | tr "." "," | sort -t...
29,547
Posted By daniel.gbaena
Hi durden_tyler. The example that I left...
Hi durden_tyler.

The example that I left don't show the error. If you test with this other example.

user1:12345678:3.5:2.5:8:1:2:3
user2:12345679:4.5:3.5:8:1:3:2...
29,547
Posted By daniel.gbaena
Hi kshji and thanks for asking so fast. ...
Hi kshji and thanks for asking so fast.

Sorry but I tried your code and don't sort the floating numbers.

Any other suggestions?
29,547
Posted By daniel.gbaena
How to Sort Floating Numbers Using the Sort Command?
Hi to all.

I'm trying to sort this with the Unix command sort.

user1:12345678:3.5:2.5:8:1:2:3
user2:12345679:4.5:3.5:8:1:3:2
user3:12345687:5.5:2.5:6:1:3:2
user4:12345670:5.5:2.5:5:3:2:1...
Showing results 1 to 18 of 18

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