Sponsored Content
Full Discussion: ln -s accept wildcards?
Top Forums UNIX for Advanced & Expert Users ln -s accept wildcards? Post 302559293 by cokedude on Monday 26th of September 2011 04:26:17 PM
Old 09-26-2011
Quote:
Originally Posted by Corona688
Wildcards don't work inside the link. You can't create one link that will match several files.

The best you can do create multiple links like scottn demonstrates.
This is what I tried. Is there a problem with this?

Code:
#!/bin/bash
echo "Downloading Java"
yum -y install wget
wget http://download.oracle.com/otn-pub/java/jdk/6u27-b07/jre-6u27-linux-i586-rpm.bin
echo "Making executable"
chmod a+x jre*
echo "Installing java"
./jre*
cd /usr/lib/mozilla/plugins
echo "Making symlink so Firefox works"
ln -s /usr/java/jre*/lib/i386/libnpjp2.so

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Wildcards in VI

I'm trying to delete lines from a large text file using VI. Every line that I am wanting to delete start with 'S' - all others do not. (A list of users) I've tried using * but doesn't seem to like it...any ideas... Doesn't have to be VI - but I'm better with VI than sed/awk. (8 Replies)
Discussion started by: peter.herlihy
8 Replies

2. UNIX for Dummies Questions & Answers

wildcards

when writing a shell script (bourne) and using a unix command like 'ls' is there anything special you need to do to use a wildcard (like *)? (3 Replies)
Discussion started by: benu302000
3 Replies

3. UNIX for Dummies Questions & Answers

ls with wildcards

ok, I'm trying to write a script file that lists files with specific elements in the name into a txt file, it looks like this ls s*.dat > file_names.txt can't figure out whats wrong with that line, any ideas? thanks in advance (10 Replies)
Discussion started by: benu302000
10 Replies

4. Shell Programming and Scripting

wildcards with if statement?

Hello i am trying to use the wildcards with the if statement but it is displaying the error like this one if * | ** | * ] Any body can help me to for using the wild card option in the if case but i have used this code and working well with the case statement to enter the name without the... (14 Replies)
Discussion started by: murtaza
14 Replies

5. UNIX for Dummies Questions & Answers

wildcards NOT

Hi All Please excuse another straightforward question. When creating a tar archive from a directory I am attempting to use wildcards to eliminate certain filetypes (otherwise the archive gets too large). So I am looking for something along these lines. tar -cf archive.tar * <minus all *.rst... (5 Replies)
Discussion started by: C3000
5 Replies

6. UNIX for Advanced & Expert Users

Wildcards

These 2 websites do a GREAT job of explaining different types of wildcards. I learned about the categories of characters which I never knew about at all. GNU/Linux Command-Line Tools Guide - Wildcards GREP (1 Reply)
Discussion started by: cokedude
1 Replies

7. Shell Programming and Scripting

figuring out wildcards

I'm trying to delete everything between ( and ) in a line, ie: ( start xxxx, end xxx ). there is uppercase, lowercase and numbers in the parans. and are of varied length. I tried this: sed 's/()//' infile > outfileI'm not understanding the wildcard use in brackets (2 Replies)
Discussion started by: dba_frog
2 Replies

8. UNIX for Dummies Questions & Answers

Help with rm command with wildcards

Hello everyone. My first time posting here. I have a question that may seem very insignificant to some but is one that I've been trying to address for the past several days (haven't had any luck looking online). I'm trying to clean a directory by removing old files that we no longer need.... (2 Replies)
Discussion started by: galileo1
2 Replies

9. Shell Programming and Scripting

Wildcards and exceptions

Hello: I have a very basic question. I'd like to select all files except for one file. For example, say I want to move all of the files in my current directory to a subdirectory called archive, I would use mv ./* archive/ But what if I want to move all files except for README.txt? Is there an... (19 Replies)
Discussion started by: Danny.Boy
19 Replies

10. UNIX for Dummies Questions & Answers

Renaming with wildcards

Hi, I'm new to Unix, but have a directory which has many files in it, well over 1000. The files are called : M07GO.STOPE0001 M07GO.STOPE0002 M07GO.STOPE0003 M07GO.STOPE0004 etc... I would like to rename them to the following : M070001.bin M070002.bin M070003.bin M070004.bin etc....... (4 Replies)
Discussion started by: rnmuk
4 Replies
nautilus-actions-new(1) 				      General Commands Manual					   nautilus-actions-new(1)

NAME
nautilus-actions-new - create new nautilus actions SYNOPSIS
nautilus-actions-new [OPTION] DESCRIPTION
nautilus-actions-new creates new actions for the nautilus file manager non-interactively via the commandline. Action attributes are speci- fied via command-line options. By default, actions are written to STDOUT. However, they can also be written to a file suitable for later import via nautilus-actions-con- fig-tool or you can even write the action directory to your GConf configuration for nautilus-actions OPTIONS
Help options -?, --help Show help options --help-all Show all help options --help-output Choose where the program creates the action Action-creation options -l, --label=LABEL The label of the menu item (mandatory) -t, --tooltip=TOOLTIP The tooltip of the menu item -i, --icon=ICON The icon of the menu item (filename or GTK stock ID) -c, --command=PATH The path of the command -p, --parameters=PARAMS The parameters of the command -m, --match=EXPR A pattern to match selected files against. May include wildcards (* or ?) (you must set one option for each pattern you need) -C, --match-case=PATH The path of the command -T, --mimetypes=EXPR A pattern to match selected files' mimetype against. May include wildcards (* or ?) (you must set one option for each pattern you need) -f, --accept-files Set it if the selection must only contain files -d, --accept-dirs Set it if the selection must only contain folders. Specify both '--isfile' and '--isdir' options is selection can contain both types of items -M, --accept-multiple-files Set it if the selection can have several items -s, --scheme=SCHEME A valid GVFS scheme where the selected files should be located (you must set one option for each scheme you need) BUGS
Please report bugs in nautilus-actions to <submit@bugs.debian.org>. The current bug list may be viewed at <http://bugs.debian.org/nautilus- actions>. AUTHOR
nautilus-actions was written by Rodrigo Moya <rodrigo@novell.com>, Frederic Ruaudel <grumz@grumz.net>, Pierre Wieser <pwieser@trych- los.org>, and contributors. This manual page was written by Christine Spang <christine@debian.org>, for the Debian project (but may be used by others). LICENSING
Both the nautilus-actions source code and this man page are licensed under the GNU General Public License. SEE ALSO
nautilus(1),nautilus-actions(1),nautilus-actions-schemas(1), nautilus-actions-run(1) nautilus-actions-print(1) Debian GNU/Linux 2009-08-06 nautilus-actions-new(1)
All times are GMT -4. The time now is 04:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy