10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
So I created two shell variables: COLUMN1_HEADING, COLUMN2_HEADING.
They have values:
How would I use printf to get it to print an output like this: $COLUMN1_HEADING\t$COLUMN2_HEADING\nJohn\t123456789\n
Thanks! (3 Replies)
Discussion started by: steezuschrist96
2. UNIX for Dummies Questions & Answers
I have some matlab code that sends the serial port elements of an array using matlab's fwrite function, e.g.:
fwrite(s, , 'uchar');
What would be a unix shell equivalent? E.g., after successfully accessing the port using instructions here:
Simple terminal serial port program for Linux/MacOSX... (3 Replies)
Discussion started by: darwin_886
3. Shell Programming and Scripting
I am trying to import a sqlplus output into a shell variable but it doesnt seem to be working.
export DEPENDENT_CR_NO=`sqlplus -s /nolog <<EOF
set heading off
select dependency from custom_patches where patch_name='PATCH.zip';
... (2 Replies)
Discussion started by: beginer314
4. Shell Programming and Scripting
head -n 1 ~/.fvwm/config | grep -c "some-string"
It's the output from grep I need to put into a shell variable.
Also - I appreciate tips for other commands giving the same output. (2 Replies)
Discussion started by: Swepter
5. Shell Programming and Scripting
I'm new to scripting and I'm wondering if I can run a matlab script from within a bash script.
Basically, at the minute I have a bash script which creates a file "bottfile.xyz"
I then import "bottfile.xyz" into matlab using importdata('bottfile.xyz'). Then I just run the matlab... (0 Replies)
Discussion started by: jhunter87
6. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
I want to read in a file, and plot the data in matlab. However, I do not like hardwiring filenames into my codes, so I always give the user the option to specify what the filename is. I am pretty inexperienced with matlab, so I have no... (0 Replies)
Discussion started by: ds7202
7. Shell Programming and Scripting
I am calling one DB2 stored proc through unix. It is giving me below output. I want to capture the value 150 in one UNIX variable in shell script. Please let me know how I can achieve this. Thanks in advance
Value of output parameters
Parameter Name :... (5 Replies)
Discussion started by: vnimavat
8. Shell Programming and Scripting
I run my program prog.c in the following way :
$ ./prog 1 > output.txt where 1 is a user defined initial value used by the program.
But now I want to run it for many a thousand initial values, 1-1000, and store all the outputs in different files.
$ ./prog 1... (1 Reply)
Discussion started by: alice06
9. Shell Programming and Scripting
I tried searching but I used to see , this has been answered may times.
But I could not find.
I am looking a SQLPLUS output to be assigned to shell variable.
This is what I coded.
sqlplus firstname.lastname@example.org <<ENDOFSQL
SET ECHO OFF NEWP... (4 Replies)
Discussion started by: dgmm
10. Shell Programming and Scripting
Hi Guys !
I am new to unix and want to find out how we can make sql statement data to shell script variable?
Any help/suggestion is greatly appreciated
-Chandra (1 Reply)
Discussion started by: kattics