Advertisement
diofanto33

Untitled

Aug 21st, 2023
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.07 KB | Food | 0 0
  1. #!/bin/bash
  2.  
  3. # 1
  4.  
  5. cat /proc/cpuinfo | grep -i "model name"
  6.  
  7. # 2
  8.  
  9. cat /proc/cpuinfo | grep -i "model name" | wc -l
  10.  
  11. # 3
  12.  
  13. curl https://www.gutenberg.org/files/11/11-0.txt 2>/dev/null | sed 's/Alice/Diego/g' > Diego_in_wonderland.txt
  14.  
  15. # 4
  16.  
  17. sort -k 5n weather_cordoba.in
  18.  
  19. sort -k 5n weather_cordoba.in | head -n 1 -c 8
  20.  
  21. sort -k 5n weather_cordoba.in | tail -n 1 | head -c 11
  22.  
  23. # 5
  24.  
  25. sort -k 3n atpplayers.in
  26.  
  27. # 6
  28.  
  29. awk '{$9 = $7-$8;print}' superliga.in | sort -k 2,2nr -k 9nr | awk '{NF--;print}'
  30.  
  31. # 7
  32.  
  33. ip a | grep -C0 "ether" | awk '{print $2}'
  34.  
  35. # 8
  36.  
  37. #a
  38.  
  39. mkdir Mr.\Robot && touch Mr.\Robot/fma_S01E{1..10}.srt
  40.  
  41. #b
  42.  
  43. cd Mr.\Robot && for i in *_es*; do mv "$i" "${i//_es}"; done
  44.  
  45. #Ejercicio opcional:
  46.  
  47. # Salgo del directorio Mr. Robot
  48.  
  49. cd ..
  50.  
  51. #a)
  52.  
  53. ffmpeg -i opcional.mkv -ss 00:05 -t 00:12 recorte.mkv
  54.  
  55. #b)
  56.  
  57. #Primero bajamos el volumen de la pista de sonido, por defecto es 256
  58.  
  59. ffmpeg -i A\ Go\ Go.mp3 -vol 25 pista_a_go_go_v25.mp3
  60.  
  61. #luego hacemos la mezcla
  62.  
  63. ffmpeg -i mi_voz.mp3 -i pista_a_go_go_v25.mp3 -filter_complex amerge podcast.mp3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement