Search Results

Search: Posts Made By: squardius
2,580
Posted By squardius
Awesome, thanks guys ... How can I cut the...
Awesome, thanks guys ...
How can I cut the permission string to display it by itself if the permissions match?
2,580
Posted By squardius
String Comparison
Is there a way to compare the permission string of two files and output the string if they match?

For ex:
-rw-r--r-- 1 user newuser 0 2009-03-12 16:45 file2
-rw-r--r-- 1 user newuser ...
2,768
Posted By squardius
Thanks Khare, Here is the whole script: if [...
Thanks Khare,
Here is the whole script:
if [ "$1" = "-c" ]; then
cp -- $2 $3

elif [ "$1" = "-r" ]; then
mv -- $2 $3

elif [ "$1" = "-x" ]; then
rm -- $2 $3
else...
2,768
Posted By squardius
Thanks methyl for the hint...duh However,...
Thanks methyl for the hint...duh

However, I'm still getting this after running the program.
Please input file name after option and use -c to copy, -r
replace, or -x to delete
cp: cannot stat...
2,768
Posted By squardius
Copy Option
I need to be able to choose an option in order to copy a file. So far, I have this:

echo "Please input file name after option and use -c to copy, -r
replace, or -x to delete"

if [ $# -eq 0 ]
...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 09:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy