Sponsored Content
Top Forums Shell Programming and Scripting Comando seleccionar(selecionar) lineas(Linhas) Post 302479115 by mcanhizares on Thursday 9th of December 2010 11:25:55 PM
Old 12-10-2010
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 estado buscando pero no sé como hacerlo, alguiém me puede ayuda ?!

saludos y muchas gracias.


Oi, começei a fazer a faculdade de informática e tenho que fazer uns exercicios usando Cygwin.

Eu teho que abrir um arquivo .csv e selecionar as linhas que tenha valor 4 na terceira coluna e 2 na quarta coluna, e não sei como fazer.

alguém pode me ajudar ?

obrigado.
 

6 More Discussions You Might Find Interesting

1. HP-UX

Comando para montar automaticamente un Dlt

Hola no escribo en ingles, pero si alguno puede ayudarme.. Quisiera saber si hay algun comando en unix que me permita hacer el mecanismo de montar el cassette a la unidad de dlt, asi como se que existe para que la expulse , quisiera saber si hay comando, que por decir la introduzca... (1 Reply)
Discussion started by: Kespinoza97
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. Programming

salida de comando a variable

Buenas, estoy intentando hacer lo siguiente: Enviar un comando at a un telefono movil y recibir la respuesta para tratarla. Algo estaré haciendo mal que usando open, write y read, solo consigo enviarle el comando pero no capturar la respuesta, solo aparece en pantalla por el terminal. Asi que... (1 Reply)
Discussion started by: daaran
1 Replies

4. 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

5. Shell Programming and Scripting

Dividir fichero en numero de lineas

Hola, Estoy haciendo un script y queria de un archivo por ejemplo de 650 lineas, recortarlo y hacer archivos mas pequeños de 100 lineas, y que me salieran 7 archivos, por poner un ejemplo. No tengo ni idea de hacerlo la verdad....xD Un saludo y gracias! (3 Replies)
Discussion started by: uri_crack
3 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
File::Spec::Cygwin(3pm) 				 Perl Programmers Reference Guide				   File::Spec::Cygwin(3pm)

NAME
File::Spec::Cygwin - methods for Cygwin file specs SYNOPSIS
require File::Spec::Cygwin; # Done internally by File::Spec if needed DESCRIPTION
See File::Spec and File::Spec::Unix. This package overrides the implementation of these methods, not the semantics. This module is still in beta. Cygwin-knowledgeable folks are invited to offer patches and suggestions. canonpath Any "" (backslashes) are converted to "/" (forward slashes), and then File::Spec::Unix canonpath() is called on the result. file_name_is_absolute True is returned if the file name begins with "drive_letter:", and if not, File::Spec::Unix file_name_is_absolute() is called. tmpdir (override) Returns a string representation of the first existing directory from the following list: $ENV{TMPDIR} /tmp $ENV{'TMP'} $ENV{'TEMP'} C:/temp Since Perl 5.8.0, if running under taint mode, and if the environment variables are tainted, they are not used. case_tolerant Override Unix. Cygwin case-tolerance depends on managed mount settings and as with MsWin32 on GetVolumeInformation() $ouFsFlags == FS_CASE_SENSITIVE, indicating the case significance when comparing file specifications. Default: 1 COPYRIGHT
Copyright (c) 2004,2007 by the Perl 5 Porters. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.18.2 2014-01-06 File::Spec::Cygwin(3pm)
All times are GMT -4. The time now is 10:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy