|
|
jt_5353
Fresh Boarder
Blog Posts: 0
Forum Posts: 13
Rating: 0  
|
|
Saludos a todos. Tengo una pregunta sencilla, pero que no se como se hace.
Si por ejemplo, en un archivo tengo:
llamo fernando hola yo me
como puedo hacer con alguna herramienta gnu (cat, o algo por el estilo) para que se imprima en la pantalla 'hola yo me llamo fernando'?
muchas gracias
|
|
Answer
|
Pidarazzz
Fresh Boarder
Blog Posts: 0
Forum Posts: 11
Rating: 0  
|
Sorry, wrong group...
|
|
Answer
|
pranav
Fresh Boarder
Blog Posts: 0
Forum Posts: 8
Rating: 0  
|
|
Hi. This is an international newsgroup, so you'll have to write in english to conform.
(es un grupo internacional, entonces hace falta escribir en ingles)
Well, YOU think it's simple, but you don't know how to treat it?
You mean, how can you remove the newlines from the file as you echo it to the screen? Well, swap them for spaces:
tr 'n' ' ' < file
Denada.
Preguntatelo en la jeraquia ecol (es.comp.os.linux) la proxima vez. Hablan habitualmente en idiomas espanolas.
|
|
Answer
|
|
The Content on this site is provided for general information purposes only. Your use of the Content, or any part thereof, is made solely at Your own risk and responsibility. By entering this site you declare you read and agreed to its Terms, Rules & Privacy.
Copyright © 2006 - 2010 My Linux Gang
|
TIP: Write your question in detail [
why?
]
|