05-29-2014
I'm using korn shell.
sh tester
tester: syntax error at line 4: `(' unexpected
Please advise
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Can I determine when the particular file was created, in korn-shell. Can please someone help me. If possible please mail the solution to me.
my mail id: bharat.surana@gmail.com (1 Reply)
Discussion started by: BharatSurana
1 Replies
2. AIX
Hi,
Please give me the detailed Differences between writing Unix Shell script and AIX Shell Scripts. Thanks in advance..... (0 Replies)
Discussion started by: haroonec
0 Replies
3. Shell Programming and Scripting
Hiee .... i want an immediate solution for this....
Let replace.cfg file contains a list of files to be replaced the old dates with new dates......
The script must take 3 parameters....
1) old date
2) new date
3) .config file
Can u get me the solution......
I tried with sed but i... (2 Replies)
Discussion started by: prasanna1983
2 Replies
4. Shell Programming and Scripting
Hi,
I am using shell (#!/bin/bash), i am trying to set my date in a script date.sh, i want this dates to be used by another scripts.
I have tried to make:
#!/bin/bash
begin_date =`date +%Y_%m_%d_%H_%M_%S`,
i also tried:
#!/bin/bash
begin_date =20080709 12:14:11, then i write in... (11 Replies)
Discussion started by: rosalinda
11 Replies
5. UNIX for Advanced & Expert Users
Hi all,
i need a script that can check if users did an operation within 3 days,if not delete all the logs of users who did not perform any activity after 3 days.therefore script should be able to use current date and verify last date user performed activity and see if it is greater or less than 3... (3 Replies)
Discussion started by: tomjones
3 Replies
6. Shell Programming and Scripting
Hello gurus,
I have three korn shell script 3.1, 3.2, 3.3. I would like to call three shell script in one shell script.
i m looking for something like this
call 3.1;
If 3.1 = "complete" then
call 3.2;
if 3.2 = ''COMPlete" then
call 3.3;
else
exit
The... (1 Reply)
Discussion started by: shashi369
1 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I am trying to show today's date and time in a better format than ‘date' (Using positional parameters). I found a command mktime and am wondering if this is the best command to use or will this also show me the time elapse since 1/30/70? Any help would be greatly appreciated, Thanks... (3 Replies)
Discussion started by: citizencro
3 Replies
8. UNIX for Dummies Questions & Answers
I am looking to do something where if I created a file named backup,or whatever it would print a name like “backup_Apr_11_2011”. Thanks citizencro (1 Reply)
Discussion started by: citizencro
1 Replies
9. UNIX for Dummies Questions & Answers
Hello,
I need to create a shell script that appends a filename to create a name with the date and time appended that is guaranteed to not exist. That is, the script insures you will not overwrite a file with the same name. I am lost with this one. I know I need to use date but after that I am... (3 Replies)
Discussion started by: citizencro
3 Replies
10. UNIX for Advanced & Expert Users
Hi Team,
I have the below 4 scripts which I will be running in sequential order.
This run will start for today's business date.
If all the 4 scripts are success for today that means script has ran succesfully.
Howver if any one of these 4 scripts failed then it has to take the next... (1 Reply)
Discussion started by: Deena1984
1 Replies
LEARN ABOUT DEBIAN
xfmtype
XFMTYPE(1) XFM XFMTYPE(1)
NAME
xfmtype - xfm file type tester
SYNOPSIS
xfmtype -m magic_file [-f] filename ...
DESCRIPTION
The xfmtype program reads a magic configuration file and tests each file in its command line to tell its type according to the configura-
tion file.
The format of the configuration file is the similar to magic(5) with the differences described in 0
OPTIONS
-f file
Consider the following argument as a file, even if it begins with `-'.
-m file
Specifies a configuration file. You can specify more than one configuration file with several -m flags. They are read in the order in
which they are found. Configuration files do not have effect until they are encountered in the command line. So, files to test in the
command line before that switch will not be affected by it.
BUILT IN TYPES
If no rule matches a specified field or the type cannot be determined because of other reasons, one of the following built in types is
returned:
inode/x-unreadable The file could not be read.
inode/x-empty File size is zero.
text/plain The file looks like ACSII.
xfm will look into xfm_mime.type(5) for more guessing.
application/octet-stream Other regular file.
xfm will look into xfm_mime.type(5) for more guessing.
inode/directory A directory.
inode/chardevice A character device.
inode/blockdevice A block device.
inode/pipe A names pipe (fifo).
inode/socket A socket.
inode/default None of the above.
BUGS
Bad configuration lines cause undefined behavior. In general they are silently ignored, but that is not guaranteed.
There are no warning or error message except for the regular expression syntax.
There should be a syntax checking mode.
All of the above apply to xfm too.
SEE ALSO
xfm(1), xfm_magic(5), file(1), magic(5).
COPYRIGHT
Copyright (c) 1995 CNM-US
Copyright (c) 1995 Juan D. Martin
AUTHOR
Juan D. Martin (juando@cnm.us.es)
(but modified heavily by Bernhard R. Link)
xfm 20 April, 2006 XFMTYPE(1)