The filemanager has upgraded to v. 1.1 beta. Here is the link to the project page: https://github.com/postman721/Spin-Fm
Monthly Archives: December 2021
Spin FM filemanager v 1.0 Beta relased
Spin FM filemanager has been released as a beta. Sources and more information are available at: https://github.com/postman721/Spin-Fm
Here are some screenshots.
Continue readingBash: File content tricks
Using bash to get some data from the files can be very useful. Here are some essential tricks to get you started.
- See if the file has a word called “hello”:
cat file.txt |grep hello
- Compare two files using cmp / cmp is usually part of the diffutils package.
This part is best done with simple script. However, scripting is not mandatory when using cmp.
#!/bin/bash
#
Creating two new files with: echo "Helllo" > file.txt && echo "Hello" > file2.txt
file1="file.txt"
file2="file2.txt"
if cmp "$file1" "$file2"; then
echo "Files are the same."
else
echo "Files are not the same."
fi