Search Results

Search: Posts Made By: minifish
11,670
Posted By minifish
Thank you so much:b::b::b::b::b::b:
Thank you so much:b::b::b::b::b::b:
11,670
Posted By minifish
ls how to not show date
Hello,
I'm using ls -laR to print out a list of file and folders. I want to print only the permission, file size and file name. Also, excluding the '.' and '..'.

result from ls -laR:

total 6...
6,818
Posted By minifish
THANK YOU~~~~~~~~~~~~~~~~~~~~~~~~~~ ;)
THANK YOU~~~~~~~~~~~~~~~~~~~~~~~~~~
;)
6,818
Posted By minifish
mm..I get an empty output.
mm..I get an empty output.
6,818
Posted By minifish
mm..I'm not very familiar with awk, but it's not...
mm..I'm not very familiar with awk, but it's not giving what I want.
it outputs something like:

string=\Pattern>
string=
string=
6,818
Posted By minifish
hm.. I tried this one before, it output all...
hm.. I tried this one before, it output all values up to the 1st pattern.

so
file:
<before>blah<\before>
<before>blah1<\before>
<before>blah2<\before>
<Pattern>file<\Pattern>
.....
6,818
Posted By minifish
original sed command: sed -n...
original sed command:
sed -n '/<pattern>/s/.*>\(.*\)<.*/string=\1/gp' file
6,818
Posted By minifish
ok so file: <Pattern>file<\Pattern> ...
ok

so
file:
<Pattern>file<\Pattern>
<Pattern>file2<\Pattern>
..
<Pattern>file3<\Pattern>
..
<Pattern>file4<\Pattern>

sed -n '/<pattern>/s/.*>\(.*\)<.*/string=\1/gp' file
returns:
...
6,818
Posted By minifish
sed very confused
Hello experts,
I have this complicated code that output value in between pattern and add "a string" to the front of the output.
The problems I have many pattern that are the same.
so I want to...
3,126
Posted By minifish
beautiful~:b::b::b::b::b::b::b::b:
beautiful~:b::b::b::b::b::b::b::b:
3,126
Posted By minifish
What's wrong with this sed command? delete & append
I want to write a sed command that does the following work:

file: <a>asdfasdf<\s>
<line>hello</line>
<b>adf<\c>
<b>tttttttt<\c>

output:
name=hello

sed -e 's/^[ \t]*//' -n...
5,756
Posted By minifish
thank you thank you
thank you thank you
5,756
Posted By minifish
yes, there are more text outside the separators....
yes, there are more text outside the separators. I'm trying to change the command people provide me to make it more suitable for my case.
and maybe my sed is too old, I get unrecognized command with...
5,756
Posted By minifish
get the value between 2 patterns
hello experts,

I want to get the value between 2 patterns.
ex. get hello in <line>hello</line>
Any suggestions?
any sed, grek, awk commands?
18,997
Posted By minifish
I got the remove last 10 line part, but starting...
I got the remove last 10 line part, but starting from 3rd line doesn't work for me.
18,997
Posted By minifish
hehehe sorry, I meant a file: blablabla...
hehehe
sorry, I meant

a file:
blablabla
blablabla
blablabla
asdfasdf0123456789
asdfasdf0123456789

output:
blablabla
blablabla
blablabla
asdfasdf
asdfasdf
18,997
Posted By minifish
say I have a line: blablabla blablabla ...
say I have a line:
blablabla
blablabla
asdfasdf0123456789
asdfasdf0123456789

I want the out put to be:
blablabla
blablabla
asdfasdf
asdfasdf

thank you
18,997
Posted By minifish
sed remove last 10 characters of a line start from 3rd line
hello experts,
I need a sed command that remove last 10 characters of a line start from 3rd line.
any suggestions?

Thanks you
8,511
Posted By minifish
one interesting thing is using "cat tfile1 | cut...
one interesting thing is using "cat tfile1 | cut -c10- >$f1out "
tfile1 and f1out must be different.
is there any way to replace the same file?
what about "sed"?
8,511
Posted By minifish
Sorry, can't express enough of my thanks~~~~~~ ...
Sorry, can't express enough of my thanks~~~~~~
I was stuck on it for so long.
THANK YOU
3,755
Posted By minifish
YAY:b::b::b::b::b::b:
YAY:b::b::b::b::b::b:
3,755
Posted By minifish
ok, I got this part. If I want to redirect error...
ok, I got this part. If I want to redirect error message I should use 2>.
now come to my 2nd question. how do I put the program in the background and redirect the error message to a file?
file.sh &...
3,755
Posted By minifish
Cannot redirect ouput?????
Hello experts,
I'm testing a program that prints error message to the screen.
I want to redirect the output to a file using >. but the message only prints on screen and not writing to the file,...
8,511
Posted By minifish
The files contain more than 1 line, a more likely...
The files contain more than 1 line, a more likely example would be:

file1:
lalalala good file
lalblala good file
lalalalb good file
lalalbla good file

file2:
lblblblb good file
lblblclb...
8,511
Posted By minifish
diff part of file
Hello experts,
I have 2 files
file1:
lalalala good file

file2:
lblblblb good file

these two files are the same in my test case, how can I start compare after certain number of characters?...
Showing results 1 to 25 of 31

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