Sponsored Content
Top Forums UNIX for Dummies Questions & Answers filename that starts with a space Post 27776 by Kelam_Magnus on Friday 6th of September 2002 01:35:45 PM
Old 09-06-2002
How did you create it with a leading space? I am trying to do this on purpose but cant without quotes??
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

rsync problem - space character in filename

I have a freebsd box with a smb connection to a Windows server - I use rsync to copy specific directories, and files, between the two. The problem is the Windows box has files with space characters in their filenames and rsync fails to copy these. Reading the documentation of rsync it appears it... (3 Replies)
Discussion started by: chief2
3 Replies

2. UNIX for Dummies Questions & Answers

how to read double consecutive space in filename for bash shell

Hello, Im using cygwin app which we use the bash shell for scripting. Im trying to read a filename with consecutive spaces on the filename ex: filename<space><space>1.txt ls -lrt filename<space><space>1.txt is working but when I pull that from a file and place it into variable. it reads... (1 Reply)
Discussion started by: james_falco
1 Replies

3. Shell Programming and Scripting

Filename from splitting files to have the same filename of the original file with counter value

Hi all, I have a list of xml file. I need to split the files to a different files when see the <ko> tag. The list of filename are B20090908.1100-20090908.1200_CDMA=1,NO=2,SITE=3.xml B20090908.1200-20090908.1300_CDMA=1,NO=2,SITE=3.xml B20090908.1300-20090908.1400_CDMA=1,NO=2,SITE=3.xml ... (3 Replies)
Discussion started by: natalie23
3 Replies

4. UNIX for Dummies Questions & Answers

filename with white space

our user creates a text file with a white space on the filename. this same file is transfered to unix via automation tool. i have a korn shell script that reads these files on a input directory and connects to oracle database to run the oracle procedures which will load the data from each of the... (2 Replies)
Discussion started by: wtolentino
2 Replies

5. Shell Programming and Scripting

How to check if a filename in a directory starts with a certain string

Hello, Trying to iterate over set of file in current directory and check if the file name in that folder matches certain string. This is what I have so far. Here I am checking if the file name starts with nexus, if so echo file name to log file. Getting weird syntax errors. Any help is... (7 Replies)
Discussion started by: scorpioraghu
7 Replies

6. Shell Programming and Scripting

Find command error having space in filename

Hi, I am working in solaris.I am using below script to copy the files from /usr/tmp to /usr/gm But while running this it is not considering the files list after the filename having space in them. Example:- compile_custom_pll.sh conv_data_sqlload.sh conv_sqlload.sh Copy of... (5 Replies)
Discussion started by: millan
5 Replies

7. UNIX for Dummies Questions & Answers

Sed- Replace space in filename by a \

`echo $file | sed 's/ / /g'` Hey guys I want help in converting the spaces in my file names to '\ ' . Example: UK maps --> UK\ maps Could someone please help me. I have tried the following sequences already (none of them work): 1)s/ /\ /g 2)s/ /\\ /g 3)s/ /\\\ /g Can someone... (7 Replies)
Discussion started by: INNSAV1
7 Replies

8. Shell Programming and Scripting

Need to write a shell script that starts one, then kills it, then starts another?

This is on a CentOS box, I have two scripts that need to run in order. I want to write a shell script that calls the first script, lets it run and then terminates it after a certain number of hours (that I specify of course), and then calls the second script (they can't run simultaneously) which... (3 Replies)
Discussion started by: btramer
3 Replies

9. Shell Programming and Scripting

Find files where filename ends with space

Hello all, I would like to find files where the filename ends with a space - like Test.dat I tried it with: #!/bin/bash for file in $(find . -name 'Test.dat*') do echo "($file)" done I found the file I have searched for - but unfortunately the output is as: (Test.dat) But I... (11 Replies)
Discussion started by: API
11 Replies

10. Shell Programming and Scripting

Space in input filename with pipe

Hello, Normally below script works, could you please comment out what could be the reason of failure if there are spaces in input filename: script.sh #!/bin/bash cd /home/hts/.hts/tvh/ file="$1 $2 $3 $4" read -d $'\x04' name < "$file" /usr/bin/ffmpeg -i ""$name"" -vcodec copy -preset... (1 Reply)
Discussion started by: baris35
1 Replies
mknod(1M)																 mknod(1M)

NAME
mknod - create special files SYNOPSIS
name major minor name major minor name DESCRIPTION
The command creates the following types of files: o Character device special file (first form), o Block device special file (second form), o FIFO file, sometimes called a named pipe (third form). name is the path name of the file to be created. The newly created file has a default mode that is readable and writable by all users(0666), but the mode is modified by the current setting of the user's file mode creation mask (see umask(1)). Character and Block Special Files Character device special files are used for devices that can transfer single bytes at a time, such as nine-track magnetic tape drives, printers, plotters, disk drives operating in "raw" mode, and terminals. To create a character special file, use the argument. Block device special files are used for devices that usually transfer a block of data at a time, such as disk drives. To create a block device special file, use the argument. The remaining arguments specify the device that will be accessible through the new special file: major The major number specifies the major device type (for example, the device driver number). minor The minor number specifies the device location, which is typically, but not always, the unit, drive, and/or line number. The major and minor values can each be specified in hexadecimal, octal, or decimal, using C language conventions (decimal: no leading zero; octal: leading zero; hexadecimal: leading The assignment of major and minor device numbers is specific to each HP-UX system. Refer to the System Administrator manuals supplied with your system for details. Only users who have appropriate privileges can use to create a character or block device special file. FIFO files To create a FIFO (named pipe or buffer) file, use the argument. You can also use the command for this purpose (see mkfifo(1)). All users can use to create FIFO files. WARNINGS
Access Control Lists In HFS file systems, optional ACL entries can be added to special files and FIFOs with the command (see chacl(1)). In JFS file systems, optional ACL entries can be added to special files and FIFOs with the command (see setacl(1)). However, system programs are likely to silently change or eliminate the optional ACL entries for these files. SEE ALSO
chacl(1), mkdir(1), mkfifo(1), setacl(1), umask(1), lsdev(1M), sam(1M), mknod(2), acl(5), aclv(5), mknod(5). HP-UX System Administrator manuals STANDARDS CONFORMANCE
mknod: SVID2, SVID3, XPG2 mknod(1M)
All times are GMT -4. The time now is 05:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy