Tag: file names
Lighttpd Configure Subdomain
last updated in Categories Lighttpd, Linux, UNIXLinux / UNIX: scp / rsync File Name With a Colon (:) In It
last updated in Categories Linux, OpenBSD, UNIXHow do I copy a file with a colon punctuation (:) name in it. When I type the following command to copy “file:name.txt” to a remote host called server1:
scp file:name.txt user@server1:/path
I get the following error:
ssh: Could not resolve hostname s: Name or service not known
How do I copy file with scp or rsync with a colon in it?
UNIX: Loop Through Files In A Directory
last updated in Categories UNIXxargs: How To Control and Use Command Line Arguments
last updated in Categories BASH Shell, CentOS, Debian / Ubuntu, File system, FreeBSD, KSH Shell, OpenBSD, RedHat and Friends, Solaris-Unix, Ubuntu Linux, UNIXI am trying to use xargs command using shell pipes and not able to understand how to control and use command line arguments. For example I’d like to find out all *.c file located in 100s of sub-directories and move them to another directory called ~/old.src. How do I use command line args with xargs to achieve the same?