To print the first column of a CSV file:
awk -F, '{print $1}' file.csv
To print the first and third columns of a CSV file:
awk -F, '{print $1 "," $3}' file.csv
To print only the lines of a CSV file that contain a specific string:
To print the first column of a CSV file:
awk -F, '{print $1}' file.csv
To print the first and third columns of a CSV file:
awk -F, '{print $1 "," $3}' file.csv
To print only the lines of a CSV file that contain a specific string:
| You only need this if you want to redo/replace your PS4's HDD for some reason but you don't want to go to the trouble of downloading everything again. | |
| You need to jailbreak the PS4 and then connect with FTP (Filezilla is perfect for this). | |
| Then you just go to the /user/app/CUSAxxxxx folder for the game you want to back up and copy out the app.pkg to your PC. Also check the /user/patch/CUSAxxxxx folder if you want to keep the update pkgs. |
| #!/bin/bash | |
| # save as system_check.sh and run with sudo | |
| echo "=== SYSTEM HEALTH REPORT ===" > system_report.txt | |
| echo "Generated: $(date)" >> system_report.txt | |
| echo "" >> system_report.txt | |
| echo "=== BOOT ERRORS (last 3 boots) ===" >> system_report.txt | |
| journalctl -b -p 3..3 --no-pager >> system_report.txt 2>&1 | |
| echo "" >> system_report.txt |