Need help in create menu with 3 sub menu using the case command
hi all i am a newbie to this is there any examples on creating a main menu with 3 sub menu main menu -> option a , b and c a menu -> option 1 ,2 and 3 b menu -> option 1 ,2 c menu -> option...
View ArticleLex: analyzing a C file and printing out identifiers and line numbers they're...
Florida State University, Tallahassee, FL USA, Dr. Whalley, COP4342 1. The problem statement, all variables and given/known data: Create a lex specification file that reads a C source program that...
View ArticleRange of number from 0.1 to 10.0
Is there a way to create a loop that will output number starting from 0.1 to 10.0 0.1 0.2 0.3 0.4 0.5 .. ... 10.0 This is what i tried. Code: for i in {1..50}; do printf -v i '%02d' $i ; echo...
View ArticleNeed help compiling XMLSEC under xCode
Dear friends, I have an xCode project that needs to sign an XML file, and in shell I can achieve the result by running this command: export LD_LIBRARY_PATH=/opt/local/lib; /opt/local/bin/xmlsec1 sign...
View ArticleHow to automatically install all modules required by a script from CPAN?
Having a script.pl how can I automatically download from CPAN all required modules and install and update as required? Something like "emerge -uDNav world" for the perl? ---------- Post updated at...
View ArticleNeed help to run a script on cron
I need someone to help me out to upload script on host but I have problem can anyone help me out ?
View ArticleColumn minus column operation?
I have a two files, file A and B, which have 5 columns, and each 5 columns are made up of random numbers, that means, numbers are all different. They have same amount of lines (Both 1000 lines) I hope...
View ArticleOpening FD and append Data
Hello everybody I'am trying to open a File with an Filedeskriptor. After Opening the file I want to append Data to the File! I have the following code now, but I only overwrite the data from the file...
View ArticlePassing backslash character to awk variable
Hi All. I have a file that contains some special characters and I'm trying to use AWK to search for lines between <pattern1> and <pattern2>. As an example: I need the lines between the line...
View ArticleVersions of HP-UX
Lo guys, Ive just started a new department in work and Im going to be using HP-UX with Vi. The problem is Im completely new to UNIX, Im currently learning at work but I only have limited amounts of...
View ArticleReplace trailing whitespaces with pipe symbol using perl
I want to replace the whitespace with Pipe symbol to do a multiple pattern matching for the whole text "mysqld failed start" and same as for other text messages Below are the messages stored in a file...
View ArticleConnect to Windows from Linux using NetCat
Hi Need help to connect from Ubuntu to Windows using NetCat nc I can not get my script to send new-line Her is what I have tried Code: (sleep 2 ; echo user ; sleep 1; echo pass; sleep 2; echo netstat)...
View ArticleProblems extracting some information
Hi there! Well, I'm writing a script to obtain certain information about files. Specifically, I want to get the information about those files which last access were in the last 24 hours, so I'm doing...
View Article[QUESTION] While umatched error
Hi guys...was trying to use while loop and a sentry to prompt user input again if an invalid option was entered...but somehow I got a "while" unmatched error...The code is as below: Code:...
View ArticleHelp needed to print the not updated files in the Directory
Hi All, I have written one program to print the files which are not updated in the specified directory in .Dat file. If I am executing the same command in the command prompt its working fine but if I...
View ArticleMount HP-UX File System in Windows 7
Hello, We just got a rx4640 that is running on: HP-UX B.11.31 U ia64 2426088954 unlimited-user license There is a plenty of space in it and we would like to use it for storage. I can access with ftp...
View ArticleRH V Centos
Hi, I have built out a new virtual production environment (VMWare, HA enabled, VMotion... all the bells & whistles) using RHEL5 VM's. I have got another ESX host that I plan to use as a pre-prod...
View ArticleChecking if file exists and unzipping
Hey, I am new to scripting and was wondering what is wrong with this if statement. I want to check if file exists and the if it does to unzip it. I program it as follows Code: if [ -e *_filename.gz ];...
View ArticleShort program to select lines from a file based on a second file
Hello, I use UBUNTU 12.04. I want to write a short program using awk to select some lines in a file based on a second file. My first file has this format with about 400,000 lines and 47 fields: SNP1 1...
View ArticleHelp with lv
Hi In my server the lv fslv05 alone is not mirrored. Can some one explain the steps so that this lv too gets mirrored. Code: sapsitgp# lsvg -l rootvg hd5 boot 1 2 2...
View Article