# How to use scp for case insensitive copy?

**URL:** <https://community.unix.com/t/how-to-use-scp-for-case-insensitive-copy/335138>\
**Category:** Shell Programming and Scripting\
**Created:** [October 7, 2013, 7:35am UTC](https://community.unix.com/t/how-to-use-scp-for-case-insensitive-copy/335138 "2013-10-07T07:35:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikhath](https://community.unix.com/letter_avatar/nikhath/32/6_22734026db12803ebb3e059622ac3534.png) [@Nikhath](https://community.unix.com/u/Nikhath)\
**Post date:** [October 7, 2013, 7:35am UTC](https://community.unix.com/t/how-to-use-scp-for-case-insensitive-copy/335138/1 "2013-10-07T07:35:11Z")

</div>

Hi,

I have a requirement to copy files from one server to other using SCP.  
I am using \* to copy files as I just need to pick up the files that are ending with .OK. But few ok files are in upper case and few are in lower case. If I am using below code, only files with upper case OK are being picked up.

Is there any way to make scp case insensitive or to combine it with grep.

Please help.

```nohighlight
 scp -B -p ${Auser}@${aSrcHOST}:${aSrcDIR}/*.OK $aTgtDIR

```

---

<div class="post-metadata">

**Author:** ![Klashxx](https://community.unix.com/user_avatar/community.unix.com/klashxx/32/326_2.png) [@Klashxx](https://community.unix.com/u/Klashxx)\
**Post date:** [October 7, 2013, 7:42am UTC](https://community.unix.com/t/how-to-use-scp-for-case-insensitive-copy/335138/2 "2013-10-07T07:42:24Z")

</div>

Try:

```nohighlight
scp -B -p ${Auser}@${aSrcHOST}:${aSrcDIR}/*.[Oo][Kk] $aTgtDIR

```
