09-28-2016
Perhaps we would have a better chance of helping you if you told us what operating system successfully runs this third party script. And, it would probably help even more if you told us what output you hope to produce from the sample input file you provided.
According to the standards, the split -n option takes a numeric option-argument that specifies the number of digits to be placed in the names of the output files produced. The option-argument your script is providing (r/1/5) does not appear to be a numeric value to me, so it is no wonder that you are getting a diagnostic message (although that diagnostic is not what I would have expected).
This User Gave Thanks to Don Cragun For This Post:
8 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I am getting this error message (sh: No: not found) and I have no idea what line in my unix script its coming from or what it means. Can anyone help?
thanks,
Cindy (2 Replies)
Discussion started by: cindytucci
2 Replies
2. Shell Programming and Scripting
Hallo,
i need a Prompting read in my script:
read -p "Enter your command: " command
But i always get this Error:
-p: is not an identifier
When I run these in c-shell i get this error
/usr/bin/read: read: bad option(s)
How can I use a Prompt in the read command? (9 Replies)
Discussion started by: wiseguy
9 Replies
3. Shell Programming and Scripting
Greetings, using ksh on Solaris, I am trying to identify the current version of a package installed on multiple servers using if statement in a precursor to upgrading.
I have searched the forums and have found many hits, reviewed 3 pages and have tried the different variations noted there. Also... (3 Replies)
Discussion started by: 22blaze
3 Replies
4. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
5. UNIX for Dummies Questions & Answers
Hi Guys,
I'm sorry but I can't find answer for this, what is the meaning of -s option in "if" statement on unix scipting. Please see sample below:
opath=/home/output
for i in N1 N2 N3 N4
do
echo $i
if
then
grep $i $opath/N5_CRAI > $opath/N5_$i.crai
chmod 777 $opath/N5_$i.crai
... (7 Replies)
Discussion started by: rymnd_12345
7 Replies
6. Red Hat
Hi Friends,
I set up the sendmail in my perosnal home lab. I am using mutt to send the email in between the machines. Everything is working fine if i send email like <username>@<hostname>. Now i set up the MX record for my domain "home.com" and then i was trying to send the email to like... (2 Replies)
Discussion started by: Rohit Bhanot
2 Replies
7. Solaris
Hi All,
I am a RH Linux admin that recently started working at a company with a number of SUN Servers so it's been an interesting transition.
Considering the last person left with very little documentation left behind so I have been picking up most issues half complete, or troubleshot.
... (7 Replies)
Discussion started by: MobileGSP
7 Replies
8. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT NETBSD
fsplit
FSPLIT(1) BSD General Commands Manual FSPLIT(1)
NAME
fsplit -- split a multi-routine Fortran file into individual files
SYNOPSIS
fsplit [-e efile] ... [file]
DESCRIPTION
fsplit takes as input either a file or standard input containing Fortran source code. It attempts to split the input into separate routine
files of the form name.f, where name is the name of the program unit (e.g. function, subroutine, block data or program). The name for
unnamed block data subprograms has the form blkdtaNNN.f where NNN is three digits and a file of this name does not already exist. For
unnamed main programs the name has the form mainNNN.f. If there is an error in classifying a program unit, or if name.f already exists, the
program unit will be put in a file of the form zzzNNN.f where zzzNNN.f does not already exist.
-e efile Normally each subprogram unit is split into a separate file. When the -e option is used, only the specified subprogram units are
split into separate files. E.g.:
fsplit -e readit -e doit prog.f
will split readit and doit into separate files.
DIAGNOSTICS
If names specified via the -e option are not found, a diagnostic is written to standard error.
HISTORY
The fsplit command appeared in 4.2BSD.
AUTHORS
Asa Romberger and Jerry Berkman
BUGS
fsplit assumes the subprogram name is on the first noncomment line of the subprogram unit. Nonstandard source formats may confuse fsplit.
It is hard to use -e for unnamed main programs and block data subprograms since you must predict the created file name.
BSD
June 6, 1993 BSD