nmap result as comma separated list, csv
grep “^[0-9*]” nmap.out|awk ‘{print $1 “,” $2 “,” $3 “,” $4 “,” $5}’
A chronological documentation test project, nothing serious, really!
grep “^[0-9*]” nmap.out|awk ‘{print $1 “,” $2 “,” $3 “,” $4 “,” $5}’
awk -F ” ” ‘{print $22 ” “$23}’ /var/log/mail.log|grep @pario|sort|uniq awk -F ” ” betyr at separator i fila er mellomrom (” “).
This command will install all of the files in the old_world_file (/var/lib/portage/world) while also adding them to the world of the new machine. The –noreplace was added in case some packages had already been installed, in order to avoid repeating one’s self. emerge -va –noreplace $(cat old_world_file)
#!/bin/bash # Use a shell loop #mkdir thumbnails if [ ! -f *.JPG ] ; then echo “Ingen filer tilgjengelig!” else for file in *.JPG do width=`identify -format %w ${file}`; \ convert -background ‘#0008’ -fill white -gravity center -size ${width}x90 \ -font Sketchy -pointsize 50 \ caption:”Copyright © 2007 Pario.no” \ +size ${file} +swap -gravity […]
#!/bin/bash # Hans-Henry Jakobsen # Script som bl.a resizer bilder og legger de i rett mappe # NB! ikke bruk originalfil da dette script sletter fila # Sjekker at mapper eksisterer if [ ! -d 320 ] then mkdir 320 fi if [ ! -d 480 ] then mkdir 480 fi for file in $(ls|grep […]