[md5sum] script


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Old 2 Weeks Ago
[md5sum] script

I am getting No such file or directory if my variable contains white spaces... Is there a way to fix this?


This works
Code:
x="1.md5"
md5sum -c "$x"

This, does not
Code:
x="23\ 5\ 6\ 7\ 8\ 9\ 10.md5"
md5sum -c "$x"
md5sum: '23\ 5\ 6\ 7\ 8\ 9\ 10.md5': No such file or directory

How do I fix the above error?

--- Post updated at 09:29 AM ---

Never mind.. I figured it out..


I just have to remove from my variable all the "\"
# 2  
Old 2 Weeks Ago
Yes, that's an XOR. Either use slashes XOR use quotes.


I marked the thread solved for you...
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Compare two md5sum toscan Shell Programming and Scripting 5 09-07-2016 01:43 AM
Md5sum on crontab Mr. Piros Shell Programming and Scripting 1 06-19-2014 05:42 AM
Making a script to copy files not seen before (using md5sum) nbsparks Shell Programming and Scripting 29 09-11-2013 01:54 PM
Query on md5/md5sum karthikram Shell Programming and Scripting 2 07-01-2013 04:13 AM
Md5sum script shadyuk Shell Programming and Scripting 4 02-01-2013 07:58 AM
md5sum in different linux zbc Shell Programming and Scripting 3 11-18-2011 01:05 PM
md5sum output append kogorman Shell Programming and Scripting 9 06-20-2011 12:03 PM
how to get a md5sum in perl kingdream Shell Programming and Scripting 1 06-14-2011 05:58 AM
Script to check MD5SUM on file tb1986 Shell Programming and Scripting 0 10-16-2010 07:47 PM
Computing an MD5Sum in C snag49ers Programming 3 04-09-2010 12:56 PM
Restart script based on MD5sum Bakes Shell Programming and Scripting 6 01-02-2009 10:32 AM
md5sum and execve nicos Programming 2 12-14-2008 05:37 PM
recursive md5sum check blowFish@ubuntu Shell Programming and Scripting 2 08-05-2008 01:24 AM
the file: MD5SUM samprax UNIX for Dummies Questions & Answers 1 07-05-2002 03:30 AM
What is md5sum??? solvman UNIX for Dummies Questions & Answers 1 09-25-2001 12:31 PM