elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: AIO elhacker.NET 2021 Compilación herramientas análisis y desinfección malware


+  Foro de elhacker.net
|-+  Sistemas Operativos
| |-+  GNU/Linux (Moderador: MinusFour)
| | |-+  Ayuda comandos linux
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: Ayuda comandos linux  (Leído 1,754 veces)
KiddKeo

Desconectado Desconectado

Mensajes: 24


Ver Perfil
Ayuda comandos linux
« en: 7 Junio 2017, 18:26 pm »

Hola buenas estoy haciendo un ejercicio y me he encontrado con estas dos preguntas las cuales no se resolver me seria de mucha ayuda que me dierais una manita :P

El ejercicio es sobre comandos Linux


Con un sólo comando encontrar el número de palabras del fichero pin y la longitud de la línea más larga.

Mostrad cuantas líneas del fichero fich3 contienen la palabra tal. Ha de contar tanto las minúsculas como las mayúsculas.


En línea

Slava_TZD
Wiki

Desconectado Desconectado

Mensajes: 1.466

♪ [8675309] ♪


Ver Perfil WWW
Re: Ayuda comandos linux
« Respuesta #1 en: 7 Junio 2017, 19:14 pm »

Código:
$ wc -wL fichero
       -L, --max-line-length
              print the maximum display width

       -w, --words
              print the word counts
Código:
$ grep -io '\btal\b' fichero | wc -l
       -i, --ignore-case
              Ignore case distinctions in both the PATTERN and the input files.
       -o, --only-matching
              Print only the matched parts of a matching line, with each such part on a separate output line.

       -l, --lines
              print the newline counts


« Última modificación: 8 Junio 2017, 17:51 pm por Slava_TZD » En línea


The fact is, even if you were to stop bombing us, imprisoning us, torturing us, vilifying us, and usurping our lands, we would continue to hate you because our primary reason for hating you will not cease to exist until you embrace Islam.
Randomize
Colaborador
***
Desconectado Desconectado

Mensajes: 20.599


Beautiful Day


Ver Perfil
Re: Ayuda comandos linux
« Respuesta #2 en: 8 Junio 2017, 17:33 pm »

Es una tarea del cole pero por lo menos lo intentas...

La dejaremos pasar...
En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Ayuda con mi EXAMEN de COMANDOS en gnu-linux
Scripting
beholdthe 8 7,703 Último mensaje 25 Enero 2011, 00:21 am
por Foxy Rider
Ayuda con programa y comandos en shell de linux
Java
turion 2 3,055 Último mensaje 17 Agosto 2010, 00:39 am
por danielo-
COMANDOS DE LINUX
GNU/Linux
Nemur 3 2,783 Último mensaje 3 Marzo 2012, 22:42 pm
por Nemur
Ayuda memoria de comandos Gnu-Linux con útiles ejemplos
Scripting
scalverth 0 3,815 Último mensaje 22 Septiembre 2012, 03:30 am
por scalverth
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines