Sponsored Content
Full Discussion: Removing invisible files
Top Forums UNIX for Dummies Questions & Answers Removing invisible files Post 302412370 by methyl on Monday 12th of April 2010 10:36:14 AM
Old 04-12-2010
Enhanced the find and made it easier to deal with filenames containins spaces and easier to test.

Code:
find /appcfg/Admin_Backup_Files/Proofing_Folders/ -type f -name \.\_\* -print|while read filename
do
        # Replace echo with rm when sure
        echo "${filename}"
done

 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Identifying invisible characters in Unix file

I have a file, which when you look at it, appears as if it has spaces.... But sometimes, it is has tab or Nulls or some other character which we are not able to see..... How to find what character exactly it is in the file, where ever we are seeing a space... (Iam in solaris)... (1 Reply)
Discussion started by: thanuman
1 Replies

2. UNIX for Advanced & Expert Users

Invisible login

Hello! My 1st post here, and I am not so sure if it belongs to the "Andvanced" category! I have searched very much to find a way to login to a system in such a way, that others will not be able to "see" me, with the "who" command! So, is there anybody here to help me with this? :rolleyes: ... (1 Reply)
Discussion started by: SmileKilled
1 Replies

3. Shell Programming and Scripting

Problem with alias and invisible text

okay how do i make an alias that has a space in it? for most of my other ones i've simply done within my ~/.bash_profile alias `ls`='ls -laF' but with alias `sudo su`='sh hello.sh' I'm unable to make it work in addition i was wondering how i could allow the user to type in... (1 Reply)
Discussion started by: cleansing_flame
1 Replies

4. UNIX for Advanced & Expert Users

Directory is invisible in listing but it is exist.

Hi ALL. Can anyone could help me. Have you had a chance to experienced that when you list (ls) a directory from ordinary execution of command, you couldn't see the directory. However, when you list it from the directory filename itself or even changing to directory (cd), it will show to you... (9 Replies)
Discussion started by: BCJapan
9 Replies

5. Virtualization and Cloud Computing

Invisible/Transparent Background in VM

Hello, If you switch to "seamless mode" in virtualbox, you can see the taskbar of the OS on your screen , like having a transparent background on your VM. My question: is there a possibility to do the same in VMware's Workstation (7) ? I know and use the "Unity" mode in Workstation/Player, but... (0 Replies)
Discussion started by: al0x
0 Replies

6. Shell Programming and Scripting

Handling Invisible character in a file

Hi Experts, When i am trying to read a csv file ,i could find some invisible character in it. I tried to see those characters by following code od -c filename It is displaying 240 for those invisible character. can some one elobrate on this and provide solution remove those character from... (4 Replies)
Discussion started by: cnraja
4 Replies

7. Shell Programming and Scripting

To make password/input text invisible?

All, My script is ----------- #cat pass.sh password=123 echo -n "Enter pass:" read pass if ; then echo "Correct password" else echo "Wrong password" fi When i run this script, text(password) which i'm entering is visible in screen... (4 Replies)
Discussion started by: thomasraj87
4 Replies

8. UNIX for Beginners Questions & Answers

Find and removing the old files and zipping the files using shell script

Hi, I am trying to removing the old files which were older than 10 days and same g zipping the files using the shell script. script was return as follows. find /jboss7_homes/JBOSS7/SKYLIV??/SKYLIV??_CRM/jboss-eap-7.0/standalone/log -mtime +10 -type f | xargs rm -f find /cer_skyliv??/log... (6 Replies)
Discussion started by: venkat918
6 Replies

9. UNIX for Advanced & Expert Users

To remove any invisible and special characters from the file(exclude @#!$*)

Hi Guys, My requirement is to remove any invisible and special characters from the file like control M(carriage return) and alt numerics and it should not replace @#!$% abc|xyz|acd¥£ó adc|123| 12áí Please help on this. Thanks Rakesh (1 Reply)
Discussion started by: rakeshp
1 Replies
RMM(1)								     [nmh-1.5]								    RMM(1)

NAME
rmm - remove messages SYNOPSIS
rmm [+folder] [msgs] [-unlink | -nounlink] [-version] [-help] DESCRIPTION
By default, rmm will remove the specified messages by renaming each of the message files with a site-dependent prefix (usually a comma). Such files will then need to be removed in some manner after a certain amount of time. Many sites arrange for cron to remove these files once a day, so check with your system administrator. Alternately, if you wish for rmm to really remove the files representing these messages, you can use the -unlink switch. But messages removed by this method cannot be later recovered. If you prefer a more sophisticated method of `removing' messages, you can define the rmmproc profile component. For example, you can add a profile component such as rmmproc: /home/foouser/bin/rmm_msgs then instead of simply renaming the message file, rmm will call the named program or script to handle the files that represent the messages to be deleted. Some users of csh prefer the following: alias rmm 'refile +d' where folder `+d' is a folder for deleted messages, and alias mexp 'rm `mhpath +d all`' is used to "expunge" deleted messages. The current message is not changed by rmm, so a next will advance to the next message in the folder as expected. FILES
$HOME/.mh_profile The user profile PROFILE COMPONENTS
Path: To determine the user's nmh directory Current-Folder: To find the default current folder rmmproc: Program to delete the message SEE ALSO
refile(1), rmf(1) DEFAULTS
`+folder' defaults to the current folder `msgs' defaults to cur `-nounlink' CONTEXT
If a folder is given, it will become the current folder. BUGS
Since refile uses your rmmproc to delete the message, the rmmproc must NOT call refile without specifying -normmproc, or you will create an infinte loop. MH.6.8 11 June 2012 RMM(1)
All times are GMT -4. The time now is 02:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy