Search Results

Search: Posts Made By: Henryyy
Forum: Programming 06-21-2012
2,968
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
3,483
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,554
Posted By Henryyy
Very clear, thank you very much!
Very clear, thank you very much!
3,554
Posted By Henryyy
What's the difference between $* and $@ ?
What's the difference between $* and $@?
And I read that the $* has security problems, why?
12,187
Posted By Henryyy
Oh, I should really read the man page...
Oh, I should really read the man page carefully...
Thanks a lot!
12,187
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 ...
12,187
Posted By Henryyy
Sorry, I didn't get what you mean?
Sorry, I didn't get what you mean?
12,187
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?
13,068
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,308
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,308
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,566
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,566
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,549
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,549
Posted By Henryyy
Thx,but i want shell.
Thx,but i want shell.
1,549
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,093
Posted By Henryyy
It works, thx
It works, thx
1,093
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,498
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,908
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,908
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,908
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,908
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 08:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy