[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[K12OSN] Most Bash scripting questions? :)



I cat a file...   .bash_history in this case.

it has...

ls
cd RadioMadness
ls
cd /home/torkch/profile/Desktop/
ls Research\ Paper/
rm -rf Research\ Paper/
ls
rm Thumbs.db
cd /home/wincst/
ls
ls Physics/
rm -rf Physics/


for examply...


I want to strip out and KEEP... all lines that say

cd /home/

and keep that in a separate file...

Thanks for the help you Lovely Bash Script Gurus!!!


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]