9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
My output data from software tool is like
1234 84 test1 file:about user_detials(bankUser) :jpeg 10 40 xys
1356 2 branches dir:list of files(dirlisting:1) :directory 20 80 abc
and want this to be printed as below. where first and last 3 columns along with the string which is in the... (6 Replies)
Discussion started by: ratheeshp
6 Replies
2. Shell Programming and Scripting
Hi,
We are in the process of migrating from AIX to Linux. There is a script of type "executable (RISC System/6000) or object module not stripped" on AIX and we are unable to read the contents of it.
Is there a way to read the contents of the file on AIX, so that we can rewrite the code in... (3 Replies)
Discussion started by: venkatesh17
3 Replies
3. UNIX for Advanced & Expert Users
Hi All,
I am running the script
VBoxManage list vms |sed 's/"//g' | cut -d " " -f1 > har1out.mytxt
result=`cat har1out.mytxt | grep $1'
echo $result
echo $1
{
if
then
echo pass
else
echo fail
fi (2 Replies)
Discussion started by: harsha85
2 Replies
4. Shell Programming and Scripting
If ($argv == “-debug”) then
Echo “in loop”
Endif
But this is not working. If I modify this code and remove “-“, then it works.
Similarly I am getting problem using grep command also
Grep “-debug” Filename
Can someone please help me on how to resolve these... (1 Reply)
Discussion started by: sarbjit
1 Replies
5. SCO
Hi,
I am trying to insert text to the beginning of a text file with 'sed'. Its working however the new line is getting stripped.
I have a variable with the text that I want to insert:
VAR="This is the header line \n March 22, 2010 \n"
sed "1i\\
$VAR" logfile >tmpfile
The text gets... (3 Replies)
Discussion started by: nck
3 Replies
6. Shell Programming and Scripting
I have a script which is taking a 10 character variable (BOC) input by the user. If it begins with a zero, the script unwittingly strips that off, & passes a 9 characters variable.
echo -n "Enter core-follow date/time for BOC: "
setenv BOC $<
The next bit of code picks up the 9... (4 Replies)
Discussion started by: wtaicken
4 Replies
7. Shell Programming and Scripting
Can someone please help me with this SHELL script?
I need to create a script that gets a positive number n as an argument. The script must calculate the factorial of its argument. In other words, it must calculate n!=1x2x3x...xn. Note that 0!=1.
Here is a start but I have no clue how to... (3 Replies)
Discussion started by: I-1
3 Replies
8. Programming
Hi,
When i start the Debugger i get this warning:
xldb WARNING: /usr/lpp/xlC/lib/libC.a(ansi_32.o) has been stripped.
anyone know what this warning means?
xldb is a Debugger under AIX.
Lazzar (2 Replies)
Discussion started by: Lazzar
2 Replies
9. UNIX for Dummies Questions & Answers
I want to make an installation on a thinkpad 701C: 486/16Mb/500Mb. Except the kernel, I need support for program development in as many languages as possible but at least C/C++ and Lisp. My only choice is to install by floppy disks only.
Which distribution should I choose, and are there any other... (2 Replies)
Discussion started by: Nietzsche
2 Replies