Sponsored Content
Top Forums Shell Programming and Scripting Dividir fichero en numero de lineas Post 302427875 by Franklin52 on Tuesday 8th of June 2010 07:11:56 AM
Old 06-08-2010
Hello.

Per our forum rules, all posts must be in English.

We do provide translation services for posts from English to a number of languages as a benefit to users. However, posts must be in English.

Please repost in English.

Thank you for your cooperation.

The UNIX and Linux Forums.
 

7 More Discussions You Might Find Interesting

1. HP-UX

Numero de Discos Espelhados (Mirroring) em HP-UX

Gostaria que me ajudassem como pesquisar em HP-UX: -Se ha discos espelhados -Quantos sao e o respectivo espaco ocupado (1 Reply)
Discussion started by: cgege
1 Replies

2. Shell Programming and Scripting

Comparar 2 archivos y agregas lineas faltantes

Hi I have 2 files where i save the IP adress of many printers that work on UNIX, one of these files, which is the 'Main File', is on a server call PROD, and the other one is on a different server call Al. What I want, is to make a comparison between the 2 files, and then, copy the IPs that... (4 Replies)
Discussion started by: Athlon1
4 Replies

3. Shell Programming and Scripting

Necesito la fecha de creacion, modificacion y ultimo acceso de un fichero!

Hola, no se casi nada de linux pero tengo que hacer un tp para la facultad, y uno de los puntos me pide que muestre en pantalla la fecha de creacion , modificacion y ultimo acceso de un fichero pasado por parametro a un script.:confused: Alguien me ayuda!? gracias. (1 Reply)
Discussion started by: palitodlselva
1 Replies

4. Shell Programming and Scripting

Insertar saltos de pagina en un fichero

Hi, I need help urgently. Something that seems simple, does not come out. Attempt to insert into a text file page breaks. I need that the execution is fast (as I have to change many files and very large). I have tried using the sed command to replace the characters "C$" with "\f"C$, but... (5 Replies)
Discussion started by: e437109
5 Replies

5. Shell Programming and Scripting

Eliminar lineas con ******

Hola. Tengo un problema. En un archivo tengo distintos campos y en alguno de ellos y en alguna linea me aparecen ******. ej: hola 0.1 ****** 85 adios 1.2 9650 23 gracias 2 ****** 54 bye 87 5666 89 hi ... (1 Reply)
Discussion started by: kekaes
1 Replies

6. Shell Programming and Scripting

Eliminar lineas con SED en Bash?

Hola a todos les cuento que estoy haciendo un programa en bash y queria saber como puedo hacer para borrar lineas de un documento de las palabras que NO terminen en S con SED, es decir, mostrar solamente las que terminan con la letra S. les cuento que probe con: sed -e /$.*/d "$archivo" |... (1 Reply)
Discussion started by: adiegorpc
1 Replies

7. Shell Programming and Scripting

Comando seleccionar(selecionar) lineas(Linhas)

Hola, he empezado la carrera de informática y tengo que hacer uno ejercicios con Cygwin ( mismos comandos que UNIX ). Y en el ejercicio me dice que tengo que abrir un archivo .csv y que selecione las lineas en que en la tercera columna el valor sea 4 y en la cuarta columna el valor sea 2, he... (1 Reply)
Discussion started by: mcanhizares
1 Replies
escape(1)                                                       Mail Avenger 0.8.3                                                       escape(1)

NAME
escape - escape shell special characters in a string SYNOPSIS
escape string DESCRIPTION
escape prepends a "" character to all shell special characters in string, making it safe to compose a shell command with the result. EXAMPLES
The following is a contrived example showing how one can unintentionally end up executing the contents of a string: $ var='; echo gotcha!' $ eval echo hi $var hi gotcha! $ Using escape, one can avoid executing the contents of $var: $ eval echo hi `escape "$var"` hi ; echo gotcha! $ A less contrived example is passing arguments to Mail Avenger bodytest commands containing possibly unsafe environment variables. For example, you might write a hypothetical reject_bcc script to reject mail not explicitly addressed to the recipient: #!/bin/sh formail -x to -x cc -x resent-to -x resent-cc | fgrep "$1" > /dev/null && exit 0 echo "<$1>.. address does not accept blind carbon copies" exit 100 To invoke this script, passing it the recipient address as an argument, you would need to put the following in your Mail Avenger rcpt script: bodytest reject_bcc `escape "$RECIPIENT"` SEE ALSO
avenger(1), The Mail Avenger home page: <http://www.mailavenger.org/>. BUGS
escape is designed for the Bourne shell, which is what Mail Avenger scripts use. escape might or might not work with other shells. AUTHOR
David Mazieres Mail Avenger 0.8.3 2012-04-05 escape(1)
All times are GMT -4. The time now is 12:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy