Sponsored Content
Full Discussion: Ignoring certain extensions
Top Forums Shell Programming and Scripting Ignoring certain extensions Post 302480866 by R0H0N on Thursday 16th of December 2010 04:26:00 AM
Old 12-16-2010
Code:
for file in `ls|xargs`
  case "$file" in 
    "*.[tT][tT][mM]"|"*.[hH][mM][tT]"|"*.[dD][mM][tT]") echo "not to do anything" ;;
    ?) mv $file /tmp/ ;;
  esac
done

R0H0N
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

.gz extensions

What do I use to open a file with a .gz extension? I'm guessing I need some kind of "unzipping" tool. (1 Reply)
Discussion started by: flopper
1 Replies

2. UNIX for Dummies Questions & Answers

extensions

Hey! Do you guys know of a good site that can explain all the Unix commands... I have been using Unix för almost 6 months but still have probelms with things like -u -U -g -G -R -T bla bla bla bla thanks! Dave (3 Replies)
Discussion started by: inkastinka
3 Replies

3. Shell Programming and Scripting

Ignoring a Pattern

Hi, I have a requirement to find and replace contents from multiple files. I am able to replace the contents. but i am facing a issue while replacing when finding a certain charcter pattern as unix is treating this is a command. Please find below sample on the same Output file to be generated... (1 Reply)
Discussion started by: seeki
1 Replies

4. Red Hat

Sendmail ignoring Mailertable

Hi Friends, I am running sendmail 8.14 on rhel6. I have 2 mail servers as serv1.home.com and test.home.com. Currently test.home.com is pointing as MX for home.com domain. So what I am trying to do is to route emails arriving at test.home.com server to serv1.home.com using mailertable. I have... (0 Replies)
Discussion started by: Rohit Bhanot
0 Replies

5. Shell Programming and Scripting

grep ignoring punctuation

I have a file xxx.txt containing winter_kool sugar_"sweet" Is there anyway i can grep xxx.txt for strings without using punctuations. for eg: `grep sugarsweet xxx.txt` should give output : sugar_"sweet" (2 Replies)
Discussion started by: jack_gb
2 Replies

6. Shell Programming and Scripting

ignoring case

in if clause , how 1 can ignore case (i.e. small or capital) ny suggestions? (2 Replies)
Discussion started by: Gl@)!aTor
2 Replies

7. Cybersecurity

Server is ignoring slashes

When I try to access my website's Administrator page (mysite.com/administrator), I'm redirected to (mysite.comadministrator), as if the slash was removed from the URL The funny thing is that I can access it if I enter 2 slashes (mysite.com//administrator) Any ideas of what might be causing it? (4 Replies)
Discussion started by: rlopes
4 Replies

8. AIX

AIX : Find files ignoring certain file extensions

Hi All, I am scripting a program to find and archive files. There are certain file types that I do not want to archive. Below is the scenario. I have created a lookup file which has details on folders days and file extensions that needs to be ignored I have separated the individual into... (4 Replies)
Discussion started by: kavinmjr
4 Replies

9. Shell Programming and Scripting

Ls without extensions.

Hello everyone. :) I need to write a script and I'm newbie in it. Sorry for my English, I've been learning that amazing language for one year. Task: Write script called 'myls', "wrapper" program call ls in such a way that you could ask it the name of the file without extension, for example:... (1 Reply)
Discussion started by: Sweetheart
1 Replies

10. UNIX for Beginners Questions & Answers

Ignoring decimal in comparision

HI All, I am having a requirement on ignoring mismatch on 2 file File 1: A,B,US,10.02 A,B,US,10.02 A,B,US,11.02 File 2: A,B,US,10.02 A,B,US,10.00 A,B,US,12.02 Here I want to ignore the decimal . If I do diff it is showing File1 AND File2 are different.If I ignore the... (2 Replies)
Discussion started by: arunkumar_mca
2 Replies
MYSQL_FIX_EXTENSI(1)					       MySQL Database System					      MYSQL_FIX_EXTENSI(1)

NAME
mysql_fix_extensions - normalize table file name extensions SYNOPSIS
mysql_fix_extensions data_dir DESCRIPTION
mysql_fix_extensions converts the extensions for MyISAM (or ISAM) table files to their canonical forms. It looks for files with extensions matching any lettercase variant of .frm, .myd, .myi, .isd, and .ism and renames them to have extensions of .frm, .MYD, .MYI, .ISD, and .ISM, respectively. This can be useful after transferring the files from a system with case-insensitive file names (such as Windows) to a system with case-sensitive file names. Invoke mysql_fix_extensions like this, where data_dir is the path name to the MySQL data directory. shell> mysql_fix_extensions data_dir COPYRIGHT
Copyright (C) 1997, 2014, Oracle and/or its affiliates. All rights reserved. This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with the program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see http://www.gnu.org/licenses/. SEE ALSO
For more information, please refer to the MySQL Reference Manual, which may already be installed locally and which is also available online at http://dev.mysql.com/doc/. AUTHOR
Oracle Corporation (http://dev.mysql.com/). MySQL 5.5 01/30/2014 MYSQL_FIX_EXTENSI(1)
All times are GMT -4. The time now is 05:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy