03-07-2013
Hello everybody,
I'm still a newbie, but here's my attempt:
$ for i in * ; do mv $i uni${i##linu}; done
This User Gave Thanks to mr.zeratul For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
can anybody help me in renaming all the file in a directory to lowercase? script will be helpful. (1 Reply)
Discussion started by: vhariprasad
1 Replies
2. Shell Programming and Scripting
I have many files with duplicate names spread out over several tens of directories. I would like to mv them to the parent directory, but to avoid conflicting filenames I'd like to prefix each filename with the name of the directory it was in.
For example, if this is my directory structure:... (2 Replies)
Discussion started by: dotancohen
2 Replies
3. UNIX for Dummies Questions & Answers
suppose i have a few file like "a b c.txt" , "hello world.c" etc...(files that have space between them in their filenames).
how do i change their filenames to "a_b_c.txt" and "hello_world.c" respectively?
heres what i have tried...but failed
$ find -name "*" -exec mv "{}" "`echo {} | tr "... (4 Replies)
Discussion started by: c_d
4 Replies
4. UNIX for Dummies Questions & Answers
So I am not sure if this should go in the shell forum or in the beginners. It is my first time posting on these forums.
I have a directory, main_dir lets say, with multiple sub directories (one_dir through onehundred_dir for example) and in each sub directory there is a test.txt. How would one... (2 Replies)
Discussion started by: robotsbite
2 Replies
5. Solaris
I had mount from server A to server B. I am able to access the files present under server B. I can create new files on server B, but i am not able to edit the files which are already present. When i saw the permissions on those files it is 777.
can some one tell me why i am not able to edit... (2 Replies)
Discussion started by: subbaraju
2 Replies
6. Solaris
# ls -l
total 10
-rw-r--r-- 1 dummy2 other 140 Jun 19 21:37 local.cshrc
-rw-r--r-- 1 dummy2 other 136 Jun 19 21:37 local.cshrc~
-rw-r--r-- 1 dummy2 other 157 Jun 19 21:37 local.login
-rw-r--r-- 1 dummy2 other 178 Jun 19 21:37 local.profile... (6 Replies)
Discussion started by: chidori
6 Replies
7. Shell Programming and Scripting
Hello,
I would like to rename all available files in a directory from Filename to Filename_Normal.
I tried to use below script but it is giving some error:
#!/bin/sh
for i in `ls`
do
echo Changing $i
mv $i $i_Normal
done
Error received:
Usage: mv src target
or: mv ... (10 Replies)
Discussion started by: manishdivs
10 Replies
8. Shell Programming and Scripting
Hi,
My requirement is,there is a directory location like:
:camp/current/
In this location there can be different flat files that are generated in a single day with same header and the data will be different, differentiated by timestamp, so i need to verify how many files are generated... (10 Replies)
Discussion started by: srikanth_sagi
10 Replies
9. UNIX for Dummies Questions & Answers
Hi
I am unable to find files, those are present anywhere in the same directory tree, based on the creation date. I need to find the files with their path, as I need to create them in another location and move them. I need some help with a script that may do the job.
Please help (2 Replies)
Discussion started by: sam192837465
2 Replies
10. Shell Programming and Scripting
Below is the script i have but i would like simplified but still do the same job.
I need a script to copy files not directories or sub-directories into a existing or new directory. The files, if have the same name but different extension; for example 01.doc 01.pdf then only copy the .doc file. ... (1 Reply)
Discussion started by: Gilljambo
1 Replies
LEARN ABOUT DEBIAN
hyphen_show
hyphen_show(1) General Commands Manual hyphen_show(1)
NAME
hyphen_show - a program to look for hyphenations in a .dvi-file created by TeX/LaTeX
SYNTAX
hyphen_show [ -c fontencoding ] texfilename[.dvi] [ file_checked_hyphenations ]
DESCRIPTION
hyphen_show is a program (written in C language) which looks for hyphenations in a .dvi-file created by TeX/LaTeX.
As there is no line structure in the .dvi-file, line breakings must be concluded from horizontal and vertical gaps. There are constructs,
where hyphenations cannot be found, and there are constructs, where we cannot extract correctly both fragments of an hyphenated word (espe-
cially at end of page, because of following footers, footnotes, running title etc.)
On standard output you will find a list of hyphenations found together with page numbers, both extracted from texfilename.dvi. In file
texfilename.hyp the user will find hyphenations only.
Each hyphenation is included only at it's first occurence and only if it's not already found in file file_checked_hyphenations (if such a
second file is specified at hyphen_show call).
Files texfilename.hyp and file_checked_hyphenations have the same structure and are simple text files, so the user can easily edit each of
these files (especially delete lines with incorrect hyphenations) and append file texfilename.hyp to file file_checked_hyphenations e.g. by
using cat command.
Program hyphen_show can be called as stand-alone program as described ahead; yet originally hyphen_show was written for use with xtem_TeX-
Menu, where it is started automatically (depending on the user's settings) after each TeX run or where it can be started explicitely as an
xtem utility program.
DOCUMENTATION
For the implementator a README is included in the package.
OPTIONS
-c fontencoding
specifies the font encoding which is used in TeX (usepackage[fontencoding]{fontenc}). At the moment the following font encod-
ings are available: T1 and OT1, i.e. fontencoding may get one of these values: T1 or OT1. The default value is set to T1, yet
can be adapted by the local implementation.
FILES
texfilename.dvi
this file is scanned for hyphenations (must exist).
file_checked_hyphenations
if specified, this file will be scanned for correct (`checked') hyphenations.
texfilename.hyp
all hyphenations found in texfilename.dvi and not included in file_checked_hyphenations up to now will be written into this file
(will be created/overwritten).
SOURCES
hyphen_show.c may be copied by anonymous ftp from
ftp://ftp.iwd.uni-bremen.de:/pub/tex/hyphenation/
AUTHORS
Guenther Lamprecht, Wolfhard Lotz, Roland Weibezahn
e-mail: weibezahn@iwd.uni-bremen.de
www: http://ftp.iwd.uni-bremen.de/xtem/xtem_texmenu.html
Version: 6 May 28, 1997 hyphen_show(1)