Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Stop Shell intepret DOS filenames
Name: BPeacocke Date: November 1, 2004 at 03:11:10 Pacific OS: UNIX CPU/Ram: NA
Comment:
If I pass a DOS filename to a ksh script in Solaris it interprets the "\t" from C:\testfile (for example) as a TAB. Anyone know a way to prevent the shell from doing this - or at least getting the correct filename within a script?
Summary: Thank you so much for your help. I was coming up with something, would you advice if this would be correct in Bash shell. if [ -f ./$filename ] || [ -f ../$filename ]; then echo "file exists. else ech...
Summary: Hello, I want to know how to create an alias in C-shell to do a long listing of all files in your home directory, regardless of where in the system you are. I appreciate your helps. ...
Summary: Hi: awk will do the trick, but the shell can do it to. I'm assuming your delimiter is the ":", and I'm using the printf command to arbitrarily place the fields on the screen: #!/bin/ksh while IFS=":"...