Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Extracting to another directory using cygwin Post 302970169 by RudiC on Sunday 3rd of April 2016 01:43:12 PM
Old 04-03-2016
That's not quite correct - spaces in file names are NOT illegal in *nix, and they do NOT provoke only errors, but: they need to be dealt with. And, if I remember correctly (and faintly), that's not different in MS products - file names with spaces NEED to be quoted there as well!
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

extracting a field from directory path ??????

Hi I'll be getting a directory path as the input to the script. E.g. 1 abc/fsg/sdfhgsa/fasgfsd/adfghad/XXX/fhsad e.g. 2 sadfg/sadgjhgds/sd/dtuc/cghcx/dtyue/dfghsdd/XXX/qytq This input will be stored in a variable. My query is how to extract the field in a variable VAR which occurs... (15 Replies)
Discussion started by: skyineyes
15 Replies

2. Linux

cygwin

I'm trying to run the make command in cygwin. The directory is d:\resiprocate-1.2.3\resip\dum\test. But the command outputs: cant open perl script "c:\Program": No such file or directory why??...check the attached JPEG file....plz help (10 Replies)
Discussion started by: m_well
10 Replies

3. UNIX for Advanced & Expert Users

Extracting the different files from directory & its sub directories

Hi Everyone, It would be helpful if someone helps me on this. Requirement: I have a directory which includes different types of files(for example *.java,*.class),but not restricted for only these types. I need to find the same types of file extensions from its directories and subdirectories... (3 Replies)
Discussion started by: rcvasu
3 Replies

4. Shell Programming and Scripting

Extracting Directory From Path

Hi guys. I'm doing some bash scripting and have run into a snag. Say I have the path: /home/one/two/three/ All I need is the 'three' while making a filename. Is there an easy way to do this? I've tried using grep (because I'm that smart.) cut (as I'm unable to tell how many fields there... (3 Replies)
Discussion started by: Drayol
3 Replies

5. Shell Programming and Scripting

sed/awk for extracting directory from file path

Hi, I have following path: set file_path = D:/forums/prac/somedir/new1/file1.txt or set file_path = E:/new/forums1/prac/somedir/new2/file2.txt I need to grep "somedir" from file path. In this case preceding directory "prac" remains same for both the paths, but directories preceding... (7 Replies)
Discussion started by: sarbjit
7 Replies

6. Shell Programming and Scripting

Zipping a directory and extracting to another server.

Hello everyone, I am trying to make a script in KSH that will zip an entire directory but leave out one file in that directory. I then need to send that zipped directory to another UNIX box. I am new to UNIX and would appreciate a good template to study from. (3 Replies)
Discussion started by: BrutalBryan
3 Replies

7. Shell Programming and Scripting

opening new instance of cygwin from withing cygwin

I'm using cygwin on win7, What I would like to do is something like this: cygstart cygwin tail -f /foo/test.log | perl -pe 's/error/\e I know I can start a new instance using either of these: mintty -e ... cygstart tail ... But neither of those open in ANSI mode, so I can't do... (0 Replies)
Discussion started by: Validatorian
0 Replies

8. Shell Programming and Scripting

Extracting into a remote directory

I need to fit in a module in my Korn Shell script which would extract file_archive.tar.gz residing in the folder /apps/Test of my local machine into a folder /global/ in a remote machine server1. Please help me on this regard. Thanks Kumarjit. (2 Replies)
Discussion started by: kumarjt
2 Replies

9. Shell Programming and Scripting

One directory, extracting only files to a new directoy

I need a hint for extracting and copying only the loads of .mp3 files from one directory and its subdirectories to get them all into only one directory. This way I am doing gives me a identical copy with hundreds of subdirectories. But I just don't get it to extract only the files. Though I tried... (9 Replies)
Discussion started by: 1in10
9 Replies

10. UNIX for Beginners Questions & Answers

Extracting directory portion.

Dear Experts, I have some directory structure something like follows. I would like to cut portion of it. Would you please help me? I have to run this on several sql's. The directory path is dynamic. I have cut what comes after first "sql" string. Input:... (3 Replies)
Discussion started by: srikanth38
3 Replies
AFP_SIGNATURE.CONF(5)						   Netatalk 2.2 					     AFP_SIGNATURE.CONF(5)

NAME
afp_signature.conf - Configuration file used by afpd(8) to specify server signature DESCRIPTION
/etc/netatalk/afp_signature.conf is the configuration file used by afpd to specify server signature automagically. The configuration lines are composed like: "server name" hexa-string The first field is server name. Server names must be quoted if they contain spaces. The second field is the hexadecimal string of 32 characters for 16-bytes server signature. The leading spaces and tabs are ignored. Blank lines are ignored. The lines prefixed with # are ignored. The illegal lines are ignored. Note Server Signature is unique 16-bytes identifier used to prevent logging on to the same server twice. Netatalk 2.0 and earlier generated server signature by using gethostid(). There was a problem that another servers have the same signature because the hostid is not unique enough. Current netatalk generates the signature from random numbers and saves it into afp_signature.conf. When starting next time, it is read from this file. This file should not be thoughtlessly edited and be copied onto another server. If it wants to set the signature intentionally, use the option "-signature user:xxxx" in afpd.conf. In this case, afp_signature.conf is not used. EXAMPLES
Example. afp_signature.conf three servers on one netatalk # This is a comment. "Guest Server" 251D25569CB29AFDF296C6B5B3A385B7 "User Server" 26B5D785046C019F55718F76B1C13BFB special 74A0BB94EC8C13988B2E75042347E528 SEE ALSO
afpd(8), afpd.conf(5), asip-status.pl(1) Netatalk 2.2 08 Mar 2011 AFP_SIGNATURE.CONF(5)
All times are GMT -4. The time now is 05:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy