Sponsored Content
Full Discussion: shell test command
Top Forums Shell Programming and Scripting shell test command Post 302269930 by elledante on Friday 19th of December 2008 06:39:20 AM
Old 12-19-2008
have you tried running the program using the ./filename it usually comes up with errors like mine has at the moment haha
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

the TEST command

Hi everyone, I am new to UNIX and scripting, and I have some problems with the test command. when i try to execute the command: test 20070327.gz > 20070320.gz i try to make a charachter string comparison between the two strings or the two files, to make sure that 20070327.gz is greater than... (2 Replies)
Discussion started by: marwan
2 Replies

2. AIX

Test command

Hello, I am trying to add some tests to existing code. The code already contains some test commands. An example is as follows... ] then Does anyone know the purpose of the double equals? I would have used a single equals sign... (2 Replies)
Discussion started by: JWilliams
2 Replies

3. Shell Programming and Scripting

TEST command

I have been looking into searching various files to display output. The search criteria will be a month and year to output various numbers in the files. is there any way to do this with the TEST function or would it have to be another way? (4 Replies)
Discussion started by: amatuer_lee_3
4 Replies

4. Shell Programming and Scripting

Help with test command

Plese help me on the below query. for j in *.20071231* *.ctl *.dat do ( if then cp "$base/*.*" "$base1" fi ) done My requirement is for all files that has extension *.20071231* *.ctl *.dat should be copied to another folder. But those with caaa.20071231.log... (7 Replies)
Discussion started by: sussane
7 Replies

5. Programming

Test command name

I'm very new to C and could use a little help. I'm testing to make sure the command is running as it's proper name, if not then fail. if (strcmp(argv, "xinit") != 0) { fprintf(stdout, "name = %s length = %d\n",argv,l); usage(0); } This works if the command is... (3 Replies)
Discussion started by: nck
3 Replies

6. UNIX for Dummies Questions & Answers

How do i tell my bash shell script to test the output of a command against something

How do i tell my bash shell script to test the output of the command i'm using?? I want this script to look for lines not equal to 1 then let me know.. $ cat blah ; echo ---- ; cat blah.sh 1 fe 1 fi 1 fo 0 fum 1 blahda 1 blah 0 blahh 1 bla 1 bl 1 blahhh ---- #!/bin/bash while... (1 Reply)
Discussion started by: phpfreak
1 Replies

7. Shell Programming and Scripting

Test on string containing spacewhile test 1 -eq 1 do read a $a if test $a = quitC then break fi d

This is the code: while test 1 -eq 1 do read a $a if test $a = stop then break fi done I read a command on every loop an execute it. I check if the string equals the word stop to end the loop,but it say that I gave too many arguments to test. For example echo hello. Now the... (1 Reply)
Discussion started by: Max89
1 Replies

8. Shell Programming and Scripting

How to check weather a string is like test* or test* ot *test* in if condition

How to check weather a string is like test* or test* ot *test* in if condition (5 Replies)
Discussion started by: johnjerome
5 Replies

9. Shell Programming and Scripting

Test command

hello, i'v trying to use the TEST command and i have some problems with it. i am trying kill all proccess wich is greater than 25. i started with - ps -f | grep -v TTY | awk '{print $4}' but i dont know how to proceed from here.. 10x a lot, Daniel. (11 Replies)
Discussion started by: dadiT
11 Replies

10. Shell Programming and Scripting

TEST Command

Hello, I need help with a test command. Here is what I am trying to do : I've got an interactive script that check if configuration files exist on 2 different directories, then all configuration files are print on screen by a short name. My problem is when you type a "wrong name" or... (12 Replies)
Discussion started by: Aswex
12 Replies
ICMD(1) 						      General Commands Manual							   ICMD(1)

NAME
imv, icp - Rename or copy a file by editing the destination name using GNU readline. SYNOPSIS
imv [OPTION] FILE... icp [OPTION] FILE... DESCRIPTION
This manual page document describes the icmd, imv, and icp commands. imv is a program to interactively rename a single file. It does this by allowing the file name to be edited inline with GNU readline. This is very similar to using mv(1) and editing the filename on the shell command-line, with one exception - the filename does not have to be typed twice. The imv program normally executes mv(1) to do the actual renaming. This can however be changed with the --command option. icp is identical to imv except that a file is copied with cp(1) instead. Both these commands are symbolic links to the icmd command. OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). All options except those listed below are passed to either mv, cp or the command specified by --command. --command=FILE Specify command to run instead of the default `mv' or `cp'. You do not need to specify the directory name of FILE if FILE is found in the current path (as set by the $PATH environment variable). It is assumed that the command specified accepts the same set of long and short options that require an argument as mv or cp. If not, you should specify those options with --arg-options (see below). Also note that --arg-options is not needed as long as you specify option and option value in a single word, like `--suffix=bak' instead of `--suffix bak' when passing extra options to mv via imv. --arg-options=OPTION[,OPTION...] Specify what comma-separated options for mv, cp, or the command specified with --command require an argument. Options may be short (e.g. -S) as well as long (e.g. --suffix). The default list for mv is `t,S,reply,suffix,target-directory', and the list for cp is `t,S,Z,no-preserve,sparse,suffix,context,target-directory'. (These lists are complete and correct for GNU Coreutils 5.97.) This list is necessary because icmd needs to know what arguments specified on the command line are files to move/copy, or option values (following an option). --pass-through Run mv/cp (or the command specified with --command) if two or more arguments are specified. This way imv/icp can be used as an alias for mv/cp (see below). --help Show summary of options. --version Output version information and exit. EXAMPLES
Using imv as a Bash alias for mv: alias mv=imv --pass-through -i REPORTING BUGS
Report bugs to <oskar@osk.mine.nu>. SEE ALSO
mv(1), cp(1) AUTHOR
The author of renameutils and this manual page is Oskar Liljeblad <oskar@osk.mine.nu>. COPYRIGHT
Copyright (C) 2001, 2002, 2004, 2005, 2007, 2008 Oskar Liljeblad This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. icmd (renameutils) December 1, 2007 ICMD(1)
All times are GMT -4. The time now is 05:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy