08-21-2016
Quote:
Originally Posted by
zajtat
Hi Bakunin and thank you for your suggestion/explanation.
I've changed the first line to
#! /bin/bash
Unfortunately, I'm getting the same error that there is no file specified as argument2.
I apologise for misunderstanding things or not explaining them clearly. I'll try to do better.
Many thanks!
I think Don's script has found a bug in your, what looks like a, perl script; wherever that came from!?
I could be wrong but it looks as though your script cannot differentiate between 0, (zero) as a number and 0, (zero) as a file...
-g 0
Did you test your _perl_ script with a file named "0"?
Just a thought, as Don's script looks as though it generates a file name "0".
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
This site has been very helpful thus far.. I thank you all in advance for sharing the knowledge. Let me get to it.
I am trying to write a very small script to take away from the boredom of doing the same thing over and over.
Everynow and again I have to get the hex value of a file using a... (2 Replies)
Discussion started by: BkontheShell718
2 Replies
2. UNIX for Advanced & Expert Users
How can we view all the input/output settings of unix environment for a session (6 Replies)
Discussion started by: paritoshc
6 Replies
3. Shell Programming and Scripting
Hi,
I am having an Input file .which is having a list of names.
comapring with our database , needs to write the out put in file called output.txt , format should be name--> country--->phone number
could you please help me..
thanks in advance (7 Replies)
Discussion started by: hegdeshashi
7 Replies
4. Shell Programming and Scripting
Hi there
could anybody point me in the right direction when it comes to looping through the output of a system command in perl (i.e. df -k) doing a test against each line to see if it matches?
for example if i have a df -k output like this and I wanted to grab the lines that matched "sda" or... (3 Replies)
Discussion started by: rethink
3 Replies
5. Shell Programming and Scripting
Hi,
I have two files , one file with data file with attributes that need to be sent to another file to generate a predefined format.
Example:
File.txt
AP|{SSHA}VEEg42CNCghUnGhCVg==
APVG3|{SSHA}XK|"password"
AP3|{SSHA}XK|"This is test"
....
etc
---------
test.sh has... (1 Reply)
Discussion started by: hudson03051nh
1 Replies
6. Solaris
Hi friends,
I'm newbie to SVM.
Just wanna try installed it on one of our server (to do mirroring for disk0 and disk1) but i think im lost until now. :(
the steps i've taken is as below:-
1.prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s - /dev/rdsk/c1t1d0s2
2.metadb -a -c 3 -f c1t0d0s7... (3 Replies)
Discussion started by: kronenose
3 Replies
7. Shell Programming and Scripting
Legends,
I want to remain in the script until user passes the correct name.
I had tried the below code; but it didn't work out.
Please help
echo "\nPlease enter the source system: \c"
while read SYSTEM_NAME
do
if ];
then
echo "\nMaking $SYSTEM_NAME as source system for particular... (5 Replies)
Discussion started by: sdosanjh
5 Replies
8. Shell Programming and Scripting
I have been trying this program for a long time. I am trying to read a file named "odon" line by line; read the first line, send it to do a command saved in a file "perm", once the first line has finished going through the content of the file perm, the result is saved with the number of the line.... (17 Replies)
Discussion started by: iconig
17 Replies
9. UNIX for Dummies Questions & Answers
Hi all,
I am trying to loop through the string contents of an array, to add it during the saving of the output files. I am trying this code to print each column and save it to unique file name, but it doesn't work. Thanks for any help.
fnam=(japan usa uk)
alldata.dat contained sample data... (1 Reply)
Discussion started by: ida1215
1 Replies
10. Shell Programming and Scripting
Hi,
I have some output from 'ls' command and I want to loop over the output in a bash script. What would be a good way to go about it?
For example, if the output of the ls command gives me 'prefix1 prefix2 prefix3', how can I set a loop that will iterate over these?
many thanks! (5 Replies)
Discussion started by: pc2001
5 Replies
LEARN ABOUT SUNOS
isalist
isalist(1) User Commands isalist(1)
NAME
isalist - display the native instruction sets executable on this platform
SYNOPSIS
isalist
DESCRIPTION
isalist prints the names of the native instruction sets executable on this platform on the standard output, as returned by the SI_ISALIST
command of sysinfo(2).
The names are space-separated and are ordered in the sense of best performance. That is, earlier-named instruction sets may contain more
instructions than later-named instruction sets; a program that is compiled for an earlier-named instruction sets will most likely run
faster on this machine than the same program compiled for a later-named instruction set.
Programs compiled for instruction sets that do not appear in the list will most likely experience performance degradation or not run at all
on this machine.
The instruction set names known to the system are listed in isalist(5). These names may or may not match predefined names or compiler
options in the C language compilation system,
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
optisa(1), uname(1), sysinfo(2), attributes(5), isalist(5)
SunOS 5.10 25 Jul 1997 isalist(1)