Hat sich schon erledigt. Hier das Skript:
#!/bin/bash
system_profiler SPHardwareDataType >Desktop/test.txt
system_profiler SPSoftwareDataType >Desktop/test1.txt
chmod 755 Desktop/test.txt
chmod 755 Desktop/test1.txt
processor=`sysctl -n machdep.cpu.brand_string`
echo " "Processor: $processor >Desktop/sysinfo.txt
sed -n "13p" Desktop/test.txt >Desktop/sysinfo.txt
sed -n "10p" Desktop/test1.txt >Desktop/sysinfo.txt
echo " "Manufacturer: Apple >Desktop/sysinfo.txt
sed -n "5p" Desktop/test.txt >Desktop/sysinfo.txt
sed -n "6p" Desktop/test.txt >Desktop/sysinfo.txt
sed "16p" Desktop/test.txt >Desktop/sysinfo.txt
rm -f Desktop/test.txt
rm -f Desktop/test1.txt