12-10-2008
For removing
find . -name "-*" -exec rm -f {} \;
10 More Discussions You Might Find Interesting
1. HP-UX
I'm trying to rename a file name but the original file has a special character caused by typo. I've tried numerous combination of characters but the file name (original) is still not being recognized which in turn, would not allow me to rename the file.
Can someone help? The filename is a... (1 Reply)
Discussion started by: genzbeat
1 Replies
2. Shell Programming and Scripting
Hi,
I need to move filenames with the following format below into filenames without the ~ like sample below. I hope you can help me create a simple unix script that will do this. Thanks in advance!
move filename from:
AIRS20081225-235641.BSP~
AIRS20081225-235648.BSP~
AIRS20081225-235640.BSP~... (3 Replies)
Discussion started by: ayhanne
3 Replies
3. Shell Programming and Scripting
I need some help with a unix script to mv image files to subdirectories based on the 1st character of the filename. See example below...
/images/main
1191.jpg
9999.jpg
A101.jpg
A102.jpg
B201.jpg
c333.jpg
...
Z999.jpg
I would like to move to the following:
... (11 Replies)
Discussion started by: srdconsulting
11 Replies
4. Shell Programming and Scripting
Hi All,
I have a data file in UNIX which i am trying to load into Oracle table using Oracle SQL Loader.
The problem is, one of the filed contains special character (ex: Square). And due to this reason, my script fails.
Could you please let me know, how to identify which character is... (1 Reply)
Discussion started by: Amit.Sagpariya
1 Replies
5. Shell Programming and Scripting
Hi I am working on a bash script and would know how to use cut or sed to remove
(F/.M/d h) from a text file.
Before
1 text to save (F/.M/d h)
after
1 text to save
Thanks in advance (5 Replies)
Discussion started by: pelle
5 Replies
6. Shell Programming and Scripting
Hi All
I need a script to manipulate files based on a filename:
example filename: 66600_042706.pdf
the script will create a directory 66000 only if this directory is not existing. If that directory is existing it will just move the file to 66000/666000_042706.pdf
in addition, i want to... (4 Replies)
Discussion started by: aemestech
4 Replies
7. Shell Programming and Scripting
(5 Replies)
Discussion started by: number10
5 Replies
8. UNIX for Advanced & Expert Users
Hello,
I do have a little issue here and Google doesn't give me any solution @this moment.
In HP UX Vi editor: I want to place this character: ®
I copied it from internet or for example Word Special Symbols. But how do I paste it in Vi?
Many thanks in advance :)
Sincerely,
Arjan (7 Replies)
Discussion started by: velde_van_der_a
7 Replies
9. Shell Programming and Scripting
hi,
i need to search distinct special character from a file which is a pipe delimited from a specific column
for eg:
input file.txt
aa|bb|cc|$abc
aa|bb|ccc|#abol
bb|xss|ddd|$xyz
nn|yyy|qqq|=qqqq
abe|qqq|yyy|=aaa
aaa|yyy|zzzz|#aaaa
.
.
.
my desired output
$ (10 Replies)
Discussion started by: rohit_shinez
10 Replies
10. Shell Programming and Scripting
Hi All,
Special character ? is added in between filename. Am not able to figure our why this is happening. In my Development environment special characters are not present. This issue is happening in the higher environment.
It would be helpful if somebody can tell what are the possible... (3 Replies)
Discussion started by: weknowd
3 Replies
uux(1c) uux(1c)
Name
uux - unix to unix command execution
Syntax
uux [-] command-string
Description
The command gathers 0 or more files from various systems, executes a command on a specified system, and sends standard output to a file on
a specified system.
The command-string is made up of one or more arguments that look like a shell command line, except that the command and file names may be
prefixed by system-name!. A null system-name is interpreted as the local system.
File names may be one of the following:
o A pathname
o A pathname preceded by ~xxx, where xxx is a userid on the specified system and is replaced by that user's login directory
o Any other syntax that is prefixed by the current directory.
For example, the following command line gets the f1 files from the usg and pwba machines, executes a command and puts the results in
f1.diff in the local directory.
uux "!diff usg!/usr/dan/f1 pwba!/a4/dan/f1 > !f1.diff"
When using special shell characters such as <>'!, you should either quote the entire command-string, or you should quote the special char-
acters as individual arguments.
The command attempts to get all files to the execution system. If both the file and command are located on different remote sites, the
file is first brought to the local system and is then transferred to the execution system.
If you want to include files as arguments to a command, but you do not want those files to be processed by enclose the filename in paren-
theses. For example:
uux a!uucp b!/usr/file (c!/usr/file)
The previous example sends a command to system The is transferred from system to the local system, and then is passed to system When
arrives at system the command executes and sends to system
If the request is not allowed on the remote system, the command notifies you. This response is sent through remote mail from the remote
machine.
Options
-c, -l
Do not copy local file to the spool directory for transfer to the remote machine. This is the default.
-ggrade
Specifies the grade which is a single letter or number from 0 to 9, A to Z, or a to z. The highest grade is 0, the lowest grade is z.
The default is A. Lower grades should be specified for high-volume jobs, such as news.
-n Sends no notification to user.
-p, -
Reads stdin.
-r Queues the job, but does not start the file transfer.
-xdebug
Produces debugging output on stdout. The debug option is a number between 0 and 9. Higher numbers provide more detailed information.
Debugging is permitted only for those users with read access to
-z Notify the user if the command fails.
Warning
An installation may limit the list of commands executable on behalf of an incoming request from Typically, a restricted site permits little
other than the receipt of mail through
Restrictions
Only the first command of a shell pipeline may have a system-name!. All other commands are executed on the system of the first command.
The use of the shell metacharacter asterisk (*) shell metacharacter may not behave as you expect. The shell tokens (<< >>) are not imple-
mented.
You are not notified when execution on a remote machine is denied. Only commands listed in on the remote system are executed at the remote
system.
Files
/usr/spool/uucp spool directory
/usr/lib/uucp/* other data and programs
See Also
uucp(1c)
"Uucp Implementation Description" ULTRIX Supplementary Documents Vol. III: System Manager
uux(1c)