View Single Post
Old January 19th, 2013, 02:24 PM   #50 (permalink)
- Crazy peacock person -
Thread Author (OP)
MoodyBlues's Avatar
Join Date: Jan 2011
Location: /home/LosAngeles
Posts: 3,048
Device(s): Kindle Fire HD 8.9" (rooted), Motorola Atrix 2, Motorola Atrix 4G (retired), Motorola Bravo (retired
Carrier: AT&T

Thanks: 1,022
Thanked 1,468 Times in 890 Posts

Originally Posted by argedion View Post
recently working on a project that called to find out if a file existed or not I had no idea of how to do this in Linux. Not being always the sharpest tool in the shed I tried several ways and failed miserably. I searched a little but since I suck at searching (never know really what to ask) somehow though i seemed to have found my way and its really simple.

here is a test condition to find if a file exist or not using bash

if [[ -e "filename" ]] ; then

just thought I would share for those who didn't know
Is it okay if I post the contents of your PM here? Do you even still need help with it? Putting it here will benefit others, too, plus someone besides me can chime in!
Donations gratefully accepted.
(Funeral fund for NightAngel79's son

MoodyBlues is online now  
Reply With Quote