Search Results

Search: Posts Made By: davidkhan
2,525
Posted By davidkhan
Many thanks for all reply , it work great, but...
Many thanks for all reply , it work great, but want to ask a question , if i want to modify

if string startwith <div class="codedom"> and endwith <code> , i mean

stringstart = <div...
2,525
Posted By davidkhan
printing lines contain double quote
Hello ,
I got html file , these file are normal html as we can see .

what i would like to do is in this html file , i want to print only string start with double quote and end with double...
3,891
Posted By davidkhan
Many thanks for reply, both while read...
Many thanks for reply, both

while read line; do echo "$line""/alpha.jpg"; done < file and
awk '{print $0 "/alpha.jpg"}' file


working great, but just want to know, there are many empty...
3,891
Posted By davidkhan
print string at the end of lines in text file
hello,

I go text file like this

E:/DDD/Dyndede/wwww
E:/DDD/sss.com/ffffg/fff
E:/DDD/vvvvvv/dd
E:/DDD/sss.com/bbbbbb
E:/DDD/sss.com/nnnn/xxI want to print

/alpha.jpg at the end of every...
1,526
Posted By davidkhan
about selecting lines
Hello ,
i got text file like that'

C:\Users\Public\Pictures\Sample Pictures\aa.jpg
C:\Users\Public\Pictures\Sample Pictures\thumb.jpg
C:\Users\Public\Pictures\vv\cc.jpg...
1,641
Posted By davidkhan
Many thanks for all reply all work great.
Many thanks for all reply all work great.
1,641
Posted By davidkhan
about the modify lines
Hello,

I am trying to convert lines from text file, I got lines in text files like that

ALPHA.cab
tomtom.cab
vgame.cab
converter.cabWhat i want to do is I want to conver these lines like...
3,273
Posted By davidkhan
Working great, many thanks
Working great, many thanks
3,273
Posted By davidkhan
Many thanks for reply, they are working great , a...
Many thanks for reply, they are working great , a bit more study , is there any way to replace all .deb files in the text file with *.deb


input file

...
3,273
Posted By davidkhan
Many thanks ---------- Post updated at 10:34...
Many thanks

---------- Post updated at 10:34 AM ---------- Previous update was at 10:16 AM ----------

Many thanks for reply , now i got a little problem getting many same lines like that
...
1,476
Posted By davidkhan
Removing same line from a file
Hello ,

I got a text file like that with many same line

main/a/antlr/
main/a/apache2/
main/a/app-install-data-ubuntu/
main/a/apparmor/
main/a/apport/
main/a/apport/
main/a/apport/...
1,339
Posted By davidkhan
regarding about the (/) in the phrase
Hello,

I am trying to print lines from a text file using this command

gawk '/Filename:/' 11.rtf >> 22.rtf

and it work ok.

but if the phrase has included forward (/) something like...
3,273
Posted By davidkhan
WORKING GREAT, MANY THANKS
WORKING GREAT, MANY THANKS
3,273
Posted By davidkhan
Remove filename is text file
Hello,

I got files full path in a text file like that

/main/k/kdelibs/kdelibs4c2a_3.5.10.dfsg.1-2ubuntu7_i386.deb...
2,140
Posted By davidkhan
Hello, I am using microC text editor and...
Hello,
I am using microC text editor and using cygwin.

Thanks
2,140
Posted By davidkhan
hello, Many thanks for your reply, i have...
hello,

Many thanks for your reply, i have tested your code and the output look like the one you sent , but when i open with text editor the output is like below and not fix column and error when...
2,140
Posted By davidkhan
regarding about printing row to column
Hello,
I got data like that,

[id]=111
A= alpha
B= 1
C= qq
D= 45
F= ss
G= 334
[id]=1234
A=
B= 2w
C=
D= 443
F=
G=
[id]=3434
A=
B= e3e
3,012
Posted By davidkhan
Many thanks for all replies, that code solved the...
Many thanks for all replies, that code solved the problems



awk '{
FIRST=substr($0,1,7);
SECOND=substr($0,30,17);
THIRD=substr($0,47,4);
$1=FIRST
$2=SECOND
$3=THIRD...
3,012
Posted By davidkhan
Hello, Many thanks for your reply, i have...
Hello,
Many thanks for your reply, i have test both of them
for this code,
awk -F"!" '{ printf("%-7s%-22s%-17s%-4s\n",$1,FNR,$2,$3,$4); }' input_file.txti got this error "bash: !: event not...
3,012
Posted By davidkhan
regarding about printing line number
Hello,
I am testing some data to get line number at cursor position 9 and found some problem, the code is below.Assume we got 3 attribute. At second attribute, there are some data(eg.A41/A6) missing...
1,831
Posted By davidkhan
hello, Many thanks for your reply, i have...
hello,

Many thanks for your reply, i have tested with my simple data and it is woking perfect. I will be testing with some complex data and if i stuck with something i will get back to forum.
...
1,831
Posted By davidkhan
Regarding about the print line number/order
Hello,
I am trying to print line number/order using this command

awk '{print $0, FNR}' myfilename

11006 A41 1888
11006 A41 ...
1,737
Posted By davidkhan
Hello, thanks for your reply , i am trying to...
Hello, thanks for your reply , i am trying to generate street number , street type and position as follows

print >>maps_sql, streetname +" " + streettype +" " +position
...
1,737
Posted By davidkhan
Regarding about the printing script/python
Hello,
I am not sure whether this is the right forum or not, if not sorry for that.
I am trying to print text at desire column with python script.
eg. in this sentence
print >>AA_sql,...
Showing results 1 to 24 of 24

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