10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
Iam writing a perl script to create many files with variables in their name.
i am able to do it, if iam using only one variable. But with two variables the file
names are NOT getting generated in the way i want.
plz help me out.
1. open(SHW,">divw_unsigned_50_50_$k.reset") or die... (4 Replies)
Discussion started by: twistedpair
4 Replies
2. Shell Programming and Scripting
Hello
I have a directory with a list of files which have a particular numerical suffix.
E.g
filename_0
filename_1
filename_18500
filename_10000
I want to delete all files from this directory which have a filename which have a numerical suffix greater than 10540.
So any files... (5 Replies)
Discussion started by: kamal_p_99
5 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have a large number of files which are named as follows.
VF_50, VF_100, VF_150, VF_250, VF_300, VF_350, VF_400, VF_450, VF_500.
When I do an 'ls' it arranges the files in the following way
VF_100, VF_150, VF_250, VF_300, VF_350, VF_400, VF_450, VF_50, VF_500.
Is there a way to... (2 Replies)
Discussion started by: lost.identity
2 Replies
4. Shell Programming and Scripting
Hi, I have a series of files (upwards of 500) the filename format is as follows
CC10-1234P1999.WGS84.p190
each of this files is in a directory named for the file but excluding the extension.
Now the last three numeric characters, in this case 999, can be anything from 001 to 999, I need to... (3 Replies)
Discussion started by: roche.j.mike
3 Replies
5. Shell Programming and Scripting
....... (2 Replies)
Discussion started by: pcbuilder
2 Replies
6. UNIX for Dummies Questions & Answers
dear all.
how can i copy a list of files with different names into others directory have the same name
like i have 3 files
10_10
10_10_11
10_10_11_12
and i have 3 directories
10_10
10_10_11
10_10_11_12
how can i make a loop to cp this files into the directory have the same name like... (31 Replies)
Discussion started by: t17
31 Replies
7. Shell Programming and Scripting
dear all.
how can i copy a list of files with different names into others directory have the same name
like i have 3 files
10_10
10_10_11
10_10_11_12
and i have 3 directories
10_10
10_10_11
10_10_11_12
how can i make a loop to cp this files into the directory have the same name like... (0 Replies)
Discussion started by: t17
0 Replies
8. Shell Programming and Scripting
Hi everyone,
I would love to have a script that does the following:
I have one file that looks like that:
ATOM 1 BB SER 1 1 -31.958 -25.125 -11.061 1.00 0.00
ATOM 3 BB GLY 1 2 -32.079 -26.085 -14.466 1.00 0.00
ATOM 4 BB VAL 1 3 ... (1 Reply)
Discussion started by: s-layer
1 Replies
9. Programming
Hi I was hoping that maybe someone could help me with a small piece of C code. I have a number of files, which are all of similar layout ie. three lines of text and 5-6 columns of numerical data. I need to add each of the elements of the second column in one file to their counterparts in the second... (17 Replies)
Discussion started by: Boucho
17 Replies
10. UNIX for Advanced & Expert Users
Hi all,
I have to copy a directory to another location. While doing so with the cp command I got some errors due to invalid filenames of some files.
For example, some files have a colon in their names, which is throwing error. These files are not copied to the destination.
How to copy... (1 Reply)
Discussion started by: fermisoft
1 Replies
command(1) General Commands Manual command(1)
NAME
command - Treats command arguments as simple commands
SYNOPSIS
command [-p] command_name [argument...]
command [-v | -V] command_name
The command command causes the shell to treat the arguments to command as simple commands, and suppresses the default shell function
lookup.
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
command: XCU5.0
Refer to the standards(5) reference page for more information about industry standards and associated tags.
OPTIONS
Performs the command search using a default value for PATH that is guaranteed to find all of the standard utilities. Writes a string to
standard output that indicates the path name or command to be used by the shell in the current shell execution environment to invoke com-
mand_name. Writes a string to standard output that indicates how the name given in the command_name operand will be interpreted by the
shell in the current shell execution environment.
DESCRIPTION
The command command allows you to run the following commands: User-defined commands whose names correspond to shell built-in commands.
System commands whose names correspond to shell built-in commands.
The command_name argument specifies the name of a utility. The one or more optional arguments to command_name specify strings treated as
arguments to the specified utility. It also provides information concerning how a command name will be interpreted by the shell.
NOTES
[Tru64 UNIX] If command_name is not the name of a function, the effect of command is the same as would be obtained by specifying com-
mand_name without command.
RESTRICTIONS
Since the -v and -V options to command produce output in relation to the current shell execution environment, if command is called in a
subshell or separate utility execution environment, it may not produce correct results. The following are examples of this type of opera-
tion:
(PATH=foo command -v) nohup command -v
EXIT STATUS
When the -v or -V options are specified, command returns one of the following values. Successful completion. The command_name could not
be found, or an error occurred.
If the -v or -V options are not specified, command returns one of the following values on error. The utility specified by command_name was
found but could not be invoked. An error occurred in the command command, or the utility specified by the command_name argument could not
be invoked.
If no error occurs, the exit status of command is that of the command specified by the arguments to command.
EXAMPLES
To ensure execution of the simple command pwd instead of the pwd shell built-in command, enter the following: command -p pwd
The preceding command displays the full path name of the current directory, and does not perpetuate a view of the current directory loca-
tion created by links as the shell built-in command might do.
ENVIRONMENT VARIABLES
The following environment variables affect the execution of command: Provides a default value for the internationalization variables that
are unset or null. If LANG is unset or null, the corresponding value from the default locale is used. If any of the internationalization
variables contains an invalid setting, the utility behaves as if none of the variables had been defined. If set to a non-empty string
value, overrides the values of all the other internationalization variables. Determines the locale for the interpretation of sequences of
bytes of text data as characters (for example, single-byte as opposed to multibyte characters in arguments). Determines the locale that
should be used to affect the format and contents of diagnostic messages written to standard error. Determines the location of message cat-
alogues for the processing of LC_MESSAGES. Determines the search path used during the command search unless the -p option is specified.
SEE ALSO
Commands: env(1), hash(1), type(1)
Standards: standards(5)
command(1)