Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


How to use scp for case insensitive copy?


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
How to use scp for case insensitive copy?

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.

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

# 2  
Try:
Code:
scp -B -p ${Auser}@${aSrcHOST}:${aSrcDIR}/*.[Oo][Kk] $aTgtDIR

This User Gave Thanks to Klashxx For This Post:
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Case Insensitive search
gregarion
Hey , i am trying to do a search for the certain books , and im trying to make it case insensitive. what i have come up with so far is this : Database.txt RETARDED MONKEY:RACHEAL ABRAHAML:30:30:20 GOLD:FATIN:23.20:12:3 STUPID:JERLYN:20:40:3 echo -n "Title: " read Title echo -n...... Shell Programming and Scripting
3
Shell Programming and Scripting
case-insensitive if on substring
dcfargo
I'd like to print a line if a substring is matched in a case insensitive manner something like do a case insensitive search for ABCD as a substring: awk '{ if (substr($1,1,4) == "") print $1 }' infile > outfile I'm not certain how to make the syntax work??? Thanks... Shell Programming and Scripting
4
Shell Programming and Scripting
case insensitive
ROOZ
hi everyone, I need to do the following thing in a case insesitive mode sed 's/work/job/g' filename since work could appear in different form as Work WORK WorK wORK,.... I was wondering if i could do a case insensitive search of a word. thanks in advance, :)... Shell Programming and Scripting
4
Shell Programming and Scripting
awk case-insensitive
forever_49ers
can I tell awk to be case insensitive for one operation without setting the ignorecase value ? thanks, Steffen... Shell Programming and Scripting
7
Shell Programming and Scripting
case insensitive locate
davis.ml
How can I do a case insensitive locate?... UNIX for Dummies Questions & Answers
3
UNIX for Dummies Questions & Answers

Featured Tech Videos