or in other words, how to cat files from a long path directory
cd /media/home/user/usb/Documents/Linux/test.txt cat test.txt | grep abc
How do I shorten this?
I tried with a script:
#!/bin/bash var1="/media/home/user/usb/locuments/linux/test.txt" var2="cat test.txt | grep abc" "cat test.txt"=`var1 var2"
"cat test.txt"=`cat test.txt | grep abc`
LOL ... Obviously don't have even a basic knowledge about scripting
There should be some other ways of doing this
What would be the best method to use for this to work?
what do I start to search and try for?