Published on March 11, 2017 by ProgrammingKnowledge

For more detailed Tutorial visit – goo.gl/vn9xIb

Shell Script has many operators that you can use to test different aspects of a file. For example, you can use the -e operator to ensure that a file exists before deleting it. Or, you can check that a file can be written to before appending to it. By checking the feasibility of the impending file operation, you can reduce the number of errors that your program will encounter.

My Website – www.codebind.com
My Blog – goo.gl/Nd2pFn
My Facebook Page – goo.gl/eLp2cQ
Google+ – goo.gl/lvC5FX
Twitter – twitter.com/ProgrammingKnow
Pinterest – goo.gl/kCInUp
Text Case Converter – goo.gl/pVpcwL
Epoch Timestamp Converter – goo.gl/Zedjo5
Decimal – Binary – Hexadecimal Converter – goo.gl/rkX3JE
8-bit Checksum Calculator – goo.gl/inxvIT

Leave a Reply

9 Comments on "Shell Scripting Tutorial for Beginners 6 – File test operators"

Notify of
avatar

Gleb Bondarenko
Guest
Gleb Bondarenko
1 month 6 days ago

Instead of echo -e "… c"you can useecho -n "…"

Ergis Hotza
Guest
Ergis Hotza
3 months 12 days ago

Very well explained thnx

Mohammad Faizan
Guest
Mohammad Faizan
3 months 13 days ago

Nice…Very understandable..Thankx

faiz shaikh
Guest
faiz shaikh
3 months 14 days ago

ECOMMERCE BASED…

faiz shaikh
Guest
faiz shaikh
3 months 14 days ago

PLEASE….

Anonymous
Guest
Anonymous
3 months 14 days ago

is it helps for marketing sir?

lexand007
Guest
lexand007
3 months 14 days ago

Learn marketing with shell? I don't think it's the best idea.

Ajmery Yeasmeen Bithi
Guest
Ajmery Yeasmeen Bithi
3 months 14 days ago

i wanna learn about marketing please help me.

faiz shaikh
Guest
faiz shaikh
3 months 14 days ago

SIR MAKE AN PROJECT IN ASP.NET MVC ….

wpDiscuz