Search Results

Search: Posts Made By: Henryyy
Forum: Programming 06-21-2012
2,725
Posted By Henryyy
Python, How to print a character \
In python, if I use '\', error, use "\", error again, use '\\' or "\\", the print result will be \\
If I want to print a single \, what can I do?
Thanks in advance

Sorry... I have solved this...
Forum: Cybersecurity 05-10-2012
2,606
Posted By Henryyy
ida-python script
I am writing a python script to add comment to the result of ida pro.
My question is how to add my comment to the area of the assemble codes text?
I remember there is a simple function to realize...
3,338
Posted By Henryyy
Very clear, thank you very much!
Very clear, thank you very much!
3,338
Posted By Henryyy
What's the difference between $* and $@ ?
What's the difference between $* and $@?
And I read that the $* has security problems, why?
11,713
Posted By Henryyy
Oh, I should really read the man page...
Oh, I should really read the man page carefully...
Thanks a lot!
11,713
Posted By Henryyy
Ok, I see, actually I think the difference should...
Ok, I see, actually I think the difference should happen for the ‘f'. But what I got is as follows, a lot of difference:
Henry@^_^> ls /etc/rc0.d/ -printf
263966 S30urandom 263974 S90halt ...
11,713
Posted By Henryyy
Sorry, I didn't get what you mean?
Sorry, I didn't get what you mean?
11,713
Posted By Henryyy
What's the difference between print and printf in command?
For example, in this command:

ls /etc/rc0.d/ -print
ls /etc/rc0.d/ -printfThe outputs are quite different, why?
12,593
Posted By Henryyy
How to show the type of my terminal?
How to show the type of my terminal?
Thanks in advance!
Forum: Programming 01-08-2012
3,081
Posted By Henryyy
I just want a makefile and this makefile should...
I just want a makefile and this makefile should be executed by "make makefile"
Forum: Programming 01-07-2012
3,081
Posted By Henryyy
how to write a makefile based on date
I have 30 files(all are .c file) based on each day of a month. And a app.c and app.h. Now I want to write a makefile to bulid the application based on the date of system. The 1st day I build the 1st...
1,393
Posted By Henryyy
Sorry for my language, I correct the question. ...
Sorry for my language, I correct the question.
But thank you all the same
1,393
Posted By Henryyy
how to cut a string from a string
now I have a string

.a/b/c/done

I want to get "done" from it. That is the result should be "done"

sorry for my language before.

Thanks in advance
1,434
Posted By Henryyy
I dont understand this sentence: count=`echo...
I dont understand this sentence:
count=`echo "${line}"|tr -cd '/'|wc -c
what does tr -cd mean?

---------- Post updated at 02:27 PM ---------- Previous update was at 02:08 PM ----------

tr -cd...
1,434
Posted By Henryyy
Thx,but i want shell.
Thx,but i want shell.
1,434
Posted By Henryyy
How to change the orders of the lines in a txt according to its length
I have a txt:
a/b/c/d
a/b/c
b/f/g/v/m

I want ot change this txt according to the number of '/'

the result should be like:
b/f/g/v/m
a/b/c/d
a/b/c

how to do that?

Thanks in advance
...
1,028
Posted By Henryyy
It works, thx
It works, thx
1,028
Posted By Henryyy
how to find only files
Here is a command: find -atime +30 >olds
This command will give us the files and directories which atime is more than 30 days ago.
But now I want just files to write in the olds, not directories....
Forum: Programming 11-29-2011
2,201
Posted By Henryyy
Python pickle.loads(string)
Will this sentence return the decode of the string?
Why I put a string in it but the system say:

invaild load key
1,712
Posted By Henryyy
Yes, thank you This will print the line I want....
Yes, thank you
This will print the line I want.
But if B.txt is like this:

B.txt
code
when
google

I want to search in A.txt that which words are contain in A and in B, then print them....
1,712
Posted By Henryyy
Ok, thank you very much But one more question,...
Ok, thank you very much
But one more question, if there is a txt B
B.txt
code
when

Now I just know these two txts, I have to find the lines in A.txt which contains the strings in B.txt. How...
1,712
Posted By Henryyy
I want lines contain code and when, not code or...
I want lines contain code and when, not code or when...
1,712
Posted By Henryyy
How to find lines in a .txt contains the strings I want
I have a .txt contains a lot of lines.
Now I want to write a shell script to find out all the lines which contain the strings I want, and print these lines.


For example:
A.txt

when you...
Showing results 1 to 23 of 23

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