Search Results

Search: Posts Made By: adam25bc
1,651
Posted By adam25bc
linux installation question?
Hi

I accidentally installed another operating system after I had installed Linux and now I can no longer access your Linux system.any solution?

Thanks
3,896
Posted By adam25bc
Thank you very much. it worked!!
Thank you very much. it worked!!
3,896
Posted By adam25bc
awk
sorry to keep bothering you.

my input is not a file is a user entry coming from a read command .

I have tried your way but it just over-writing the file and makes an empty file.

i did as...
3,896
Posted By adam25bc
sorry , you are right I am not explaining very...
sorry , you are right I am not explaining very well.

I am trying to find one instance and replace with variable.

as i said

jsmith:12-11-2011:55:r234

I am going to find 12-11-2011 in al...
3,896
Posted By adam25bc
awk
my data is inside test file is as following:
jsmith:12-11-2011:r234:50

now as I said before I am getting passing 4 variables to over-write the file :

as example I am passing $var2 to modify...
3,896
Posted By adam25bc
AWK Issue
Hello Ahmed and everyone,

Now I have another issue. I have a flat file as example test
inside this file I have information as following :
user:date:number:phone (all using : as delimiter)
...
3,896
Posted By adam25bc
Thanks Ahmed, what about the file? ...
Thanks Ahmed,

what about the file?

Thanks
3,896
Posted By adam25bc
one more question
hi bartus

thank you.

now can i translate
=`sed 's/^[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:\([^:]*\):.*/\1/' file|awk '{ printf "%-2s", $1 }'`
to
awk -F":" '{print $6}' file |awk '{ printf "%-2s",...
3,896
Posted By adam25bc
translate sed to awk
hi,

can someone tell me how can I translate the following line from sed to awk?
`sed 's/^[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:\([^:]*\):.*/\1/

How to use code tags...
Showing results 1 to 9 of 9

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