I'm trying to extract a certain (the fourth) field from the column-based, 'space'-adjusted text stream. I'm trying to use the cut command in the following manner:
cat text.txt | cut -d " " -f 4
Unfortunately, cut doesn't treat several spaces as one …
So I have a file with the text:
puddle2_1557936:/home/rogers.williams/folderz/puddle2
I want to use the grep command
grep puddle2_1557936
Mixed in with the cut command (or another command if neccessary) to display just this part:
/home/…
I'm trying to output the amount of free disk space on the filesystem /example.
If I run the command df -k /example I can get good information about available disk space in kb but only by being human and actually …