Search Results

Search: Posts Made By: mimilaw
1,007
Posted By mimilaw
How to tar a file?
Dear All,

I try to tar file on my linux server, it show the message below. Can anyone tell me what happen?

Input:
tar -cvf output.tar input_dir

Output:
Usage: tar...
1,574
Posted By mimilaw
It works!! Thanks
It works!! Thanks
1,574
Posted By mimilaw
sed awk to remove the , in a string
Dear All,

Can anyone help to remove the , bewteen "" in a string by using sed or awk?

e.g.

input : 1,4,5,"abcdef","we,are,here",4,"help hep"
output:1,4,5,"abcdef","wearehere",4,"help hep"...
1,666
Posted By mimilaw
sed the find the third , and replace with a space
Dear All,

I am new here. Could anyone help to find a sed script for replace the third "," to " "?

input:
abc,def,ghi,jkl,mno,pqr,stu,vxz

output:
abc,def,ghi jkl,mno,pqr,stu,vxz

Many...
1,367
Posted By mimilaw
get xml note by awk
Hi all,

I have a file contain 100 lines xml. Would like to get the note value of special attribute. Could anyone help?

input:
<a>1</a><b>2</b><c>3</c><d>4</d><e>5</e><f>64</f>...
7,932
Posted By mimilaw
It work. Thanks everyone. :>
It work. Thanks everyone. :>
7,932
Posted By mimilaw
result print the original file, but not what I...
result print the original file, but not what I expect
7,932
Posted By mimilaw
Get index value by awk
HI All,

I would like to pass a integer and get all values under this index the by using awk. Could anyone help?

Thanks :>

input:
1,2,3,4,5,6,7
1,2,3,48,5,6,7
1,2,3,4,5,6,7

e.g. i pass...
4,358
Posted By mimilaw
HI itkamaraj, Thanks for yours help. It's...
HI itkamaraj,

Thanks for yours help. It's work. But how can the result output in a file?

Thanks,
Mimi
4,358
Posted By mimilaw
2 lines
2 lines
4,358
Posted By mimilaw
Hi Agama, It get error - sed: command...
Hi Agama,

It get error - sed: command garbled: s/ ([0-9][0-9]) ([0-9][0-9]) ([0-9][0-9][0-9][0-9])/ \1\2\3/

Could you please help?
4,358
Posted By mimilaw
using sed to find a pattern
Hi All,

I have a file with 100 lines contain a pattern like:

input:
a,b,4,2343,56456,7656,78787,786234,00:59:16.740 04 17 2012,4564,2453,556
f,j,er,45,fh,67,00:59:45.840 04 25 2012,...
3,905
Posted By mimilaw
Thanks birei~ but cannot use perl :(
Thanks birei~ but cannot use perl :(
3,905
Posted By mimilaw
editing file with awk cut and sed
HI All,
I am new to unix. I have a file would like to do some editing by using awk, cut and sed. Could anyone help?

This file contain 100 lines. There are one line for example: ...
Showing results 1 to 14 of 14

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