Search Results

Search: Posts Made By: ksailesh1
4,193
Posted By ksailesh1
This is what i tried. Mainly I'm facing issue...
This is what i tried. Mainly I'm facing issue while applying mutually exclusive conditions of the options. Like either a or b should be passed, but not both and likewise optional arguments as well.
...
4,193
Posted By ksailesh1
Getops usage in UNIX
I have a case where the script has to run in two modes as options and based on the mode, script excepts optional and mandatory arguments.

script.sh -a -f <value1> -d <value2> -h <value3>...
12,380
Posted By ksailesh1
Apologise if my question is not clear. ...
Apologise if my question is not clear.

Basically i need to find all non-hidden files in the current directory only.. It shouldn't traverse through hidden and non-hidden sub directories.

For...
12,380
Posted By ksailesh1
Thanks guys.. I will test both of them.. ...
Thanks guys.. I will test both of them..

Also How about this command?

find . \( ! -name ".*" -prune \) -mtime +2 -type f -print | grep -v "[^.]/"
12,380
Posted By ksailesh1
Find all files in the current directory excluding hidden files and directories
Find all files in the current directory only excluding hidden directories and files.

For the below command, though it's not deleting hidden files.. it is traversing through the hidden directories...
Showing results 1 to 5 of 5

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