Sponsored Content
The Lounge What is on Your Mind? Filenames with hyphens - UNIX style? Post 302638033 by Neo on Wednesday 9th of May 2012 08:30:38 PM
Old 05-09-2012
I normally use underscores.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix History Question: Why are filenames/dirnames case sentsitive in Unix?

I tried looking for the answer online and came up with only a few semi-answers as to why file and directory names are case sensitive in Unix. Right off the bat, I'll say this doesn't bother me. But I run into tons of Windows and OpenVMS admins in my day job who go batty when they have to deal... (3 Replies)
Discussion started by: deckard
3 Replies

2. Shell Programming and Scripting

Unix filenames and spaces

I have files on my unix boxes that users have created with spaces. Example: /tmp/project plan ls -l "/tmp/project plan" works fine. $/tmp>ls -l "/tmp/project plan" -rw-r--r-- 1 root other 0 Jan 31 12:32 /tmp/project plan I created a file called test and put just the... (2 Replies)
Discussion started by: x96riley3
2 Replies

3. Shell Programming and Scripting

[Unix] a dos style rename wont work

Hey guys i'm creating a dos style rename script, so if a user types say q14.* as the 1st param and b14.* as the 2nd and will rename all q14 files to b14 but keep the extensions, so i've developed nearly the full script "i think", if i use echo(echo "if $1 had been renamed it would now be... (3 Replies)
Discussion started by: fblade1987
3 Replies

4. What is on Your Mind?

Looking for a "Motivational Poster" Style unix command?

I am trying to figure out a sort of Motivational line that I could write as a short unix command... I don't know too much but something like Get everything you want in life sudo (get everything) (you want?) (life directory) Any ideas? Thank You very much Brad (4 Replies)
Discussion started by: ridesurf
4 Replies

5. Shell Programming and Scripting

Renaming mutiple files with hyphens in name

I have searched throught a host of threads to figure out how to rename mutiple files at once using a script. I need to convert 200+ files from: fKITLS_120605-0002-00001-000001.hdr to eStroop_001.hdr fKITLS_120605-0002-00002-000002.hdr to eStroop_002.hdr and so forth.... What is... (5 Replies)
Discussion started by: akenne3
5 Replies

6. Shell Programming and Scripting

Using grep with hyphens

This is on a RHEL 6 box with bash 4.1.2 I'm trying to to use grep to only find those lines containing matches that form whole words. The -w option works fantastic unless of course that word has a hyphen. The problem is I will get a hit on "test-group" which is a good thing, but I will also... (3 Replies)
Discussion started by: woodson2
3 Replies

7. Shell Programming and Scripting

Appending date to UNIX Filenames

Hello, I have a file name in the below format and have to append the date as _$currdate. kchik_UK_lo.txt_$currdate. The above should be the format and I dont want to put entire filename as above in the code, but it should give me the output as the above filename.Can anyone please help... (7 Replies)
Discussion started by: harika03
7 Replies

8. Shell Programming and Scripting

Script in Perl or awk to remove multiple hyphens

Dear all, I have a database of compound words. I want to retain only strings with a single hyphen and identify those strings which have more than one hyphen. I am giving an example below test-test test-test-test test-test-test-test-test good-for-nothing The regex/script should remove all... (11 Replies)
Discussion started by: gimley
11 Replies

9. What is on Your Mind?

Coding Style at UNIX.com forums

Hi, as I mentioned in this thread(https://www.unix.com/shell-programming-and-scripting/280737-awk-function-return-permutations-n-items-out-m.html), a helpful coding style may improve overall value and support for people who come here and want to learn things the participants from unix.com have... (2 Replies)
Discussion started by: stomp
2 Replies
dxmtools(1)						      General Commands Manual						       dxmtools(1)

NAME
dxmtools - DOS Tools Graphical User Interface for manipulating files on an MSDOS diskette SYNOPSIS
/usr/bin/X11/dxmtools OPTIONS
DESCRIPTION
The DOS Tools application, dxmtools, uses a graphical user interface to copy files to and from an MSDOS formatted diskette to manipulate files on that diskette, in the same manner as the mtools(1) commands, which are accessed from the command line interface. The DOS Tools application accepts the standard X11 resource options. For more information, see the X(1X) reference page Use the DOS Tools application to: Copy a diskette file to Tru64 UNIX Copy Tru64 UNIX files to the diskette Create a directory on the diskette Delete diskette files Format a diskette Change the diskette volume label Change the archive, read-only, hidden, and system attribute bits on a diskette file Display the contents of a diskette file Find a diskette file by its name, size, or attribute settings Rename a diskette file. MSDOS filenames are optionally composed of a drive letter followed by a colon, optional subdirectories, and a filename. Subdirectory names can use either the '/' or '' separator. The current working directory relative to the diskette is A:/. The regular expression pattern matching routines follow the UNIX-style rules. For example, an asterisk (*), in place of asterisks separated by a dot (.) that is *.*, matches all MSDOS files. The archive, hidden, read-only, and system attribute bits are ignored during pattern matching. The DOS Tools application requires a diskette properly installed on the system. The DOS Tools application addresses a device named /dev/disk/floppy; a symbolic link between the diskette device and /dev/disk/floppy is required. Online help is available for the dxmtools application. To get help, click on any Help button or use the Help pull-down menu. The DOS Tools application can be invoked from: The CDE Application Manager. Application Group: Desktop_Apps Desktop_Apps Subgroup: dxmtools EXAMPLES
Invoke the DOS Tools application from the command line. /usr/bin/X11/dxmtools Open the DOS Tools help volume from the command line without running the application. /usr/dt/bin/dthelpview -h /usr/dt/appconfig/help/C/dxmtools.sdl FILES
DOS Tools executable DOS Tools Help Volume Symbolic link for diskette drive. SEE ALSO
Commands: ln(1), mattrib(1), mcd(1), mcopy(1), mdel(1), mdir(1), mlabel(1), mmd(1), mrd(1), mread(1), mren(1), mtools(1), mtype(1), mwrite(1), X(1X) Diskette interface: fd(7) Utilities: MAKEDEV(8), mknod(8) dxmtools(1)
All times are GMT -4. The time now is 07:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy