Evan Cutler
asked on
unhide unix files in SOLARIS
Greetings,
I have a SOLARIS UNIX folder that has files, both hidden and visible
Is there a way, in a bash script to "unhide" test1 and test2?
Thanks.
I have a SOLARIS UNIX folder that has files, both hidden and visible
[root@hermes test]# ls -Al
total 0
-rw-r--r--. 1 root root 0 Oct 9 09:48 .test1
-rw-r--r--. 1 root root 0 Oct 9 09:48 .test2
-rw-r--r--. 1 root root 0 Oct 9 09:57 test3
-rw-r--r--. 1 root root 0 Oct 9 09:57 test4
[root@hermes test]#
Is there a way, in a bash script to "unhide" test1 and test2?
Thanks.
Rename them from .test1 to test1 and similarly for .test2.
ASKER
Greetings,
Thank you so much,
What I'm looking to do is try to this en masse in a shell script.
So, let's say I have four hidden files, I need to "unhide" all four in a script.
The filenames are dynamic.
Thanks
Thank you so much,
What I'm looking to do is try to this en masse in a shell script.
So, let's say I have four hidden files, I need to "unhide" all four in a script.
The filenames are dynamic.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
so I have a folder, where another machine drops files into that folder.
It's the first line of defense for receiving files as the machine is from an outside entity.
For some reason, we are receiving hidden files from that machine.
files that start with the period(.).
.test1
.test2
test3, etc....
This folder is where I do checks to see what I want to process, and throw out the rest.
most commands ignore the hidden files.
I want to make sure they are not something I shouldn't have...
therefor, I need to "unhide" those, so I can do my work against them.
That's what's going on....on SOLARIS
Thanks
It's the first line of defense for receiving files as the machine is from an outside entity.
For some reason, we are receiving hidden files from that machine.
files that start with the period(.).
.test1
.test2
test3, etc....
This folder is where I do checks to see what I want to process, and throw out the rest.
most commands ignore the hidden files.
I want to make sure they are not something I shouldn't have...
therefor, I need to "unhide" those, so I can do my work against them.
That's what's going on....on SOLARIS
Thanks
most commands ignore the hidden files
yes : but they usually provide switches that will instruct them not to ignore hidden files
if needed i'll help you to figure out how to change any existing code to deal with hidden files properly
if not, both arnold and myself gave proper batch renaming code that will work properly on solaris. ask if there is anything these commands do that you do not understand or post back if something does not work as expected including which solaris version and which shell you are using. both are supposed to be run in the directory where those files reside. mine is recursive.
ASKER
Thank you very much.
I will go ahead and award points on this.
If I have further questions, I will as for more.
I will go ahead and award points on this.
If I have further questions, I will as for more.
feel free to post in this thread if they relate