Checking which arguments are supplied
I have written this C++ program and I am using getopt_long
View ArticleChecking which arguments are supplied
I have written this C++ program and I am using Code: getopt_long and
View ArticleChecking which arguments are supplied
I have written this C++ program and I am using getopt_long and want to chech when the user supplies the arguments so that I can put a default or otherwise. Currently I am using hasargv or...
View ArticlePrivate Key
I have two types of files pubring.pkr secring.skr secring.skr is encrypted and not able to read. How can i read secring.skr in text format after decrypting ? is there any way of decrypting this file?...
View ArticleCompare two string in two seperat file and delete some line of file
Hi all i want to write program with shell script that able compare two file content and if one of lines of file have # at the first of string or nothing find same string in one of two file . remove the...
View ArticleUnderstanding PATH variable setting?
I do know how we set the PATH variable- Code: export PATH=$JAVA_HOME/bin:$PATH I'm trying to understand why we have written Code: :$PATH in the end above statement. What is it's meaning?
View ArticleAIX's "bc" Command: Doing a Conditional Expression?
Hello All, I'm trying to issue a conditional expression using "bc" on floating point numbers. I had this working on my linux box, but as soon as I transferred the file over to an AIX Server, it would...
View ArticleIs it possible to change search inside .pdf or .doc files?
the titele was wrong ... the true one is: Is it possible to search words inside .pdf or .doc files? is it possible if i changed the word into binary combination:eek:? and this way is super too hyper...
View ArticleSimple script for adding users
Hi guys, I've a simple linux script (made by my friend), which adds users to the system from userlist file. it also creates user home dir and copies certain files to the directory. To be honest, am a...
View ArticleHelp with command iconv
I need to convert a utf16 file to utf8. When i use the iconv command to do so it gives an error saying invalid function. When I ran the iconv -l function it did not list the utf16 and utf8 as part of...
View ArticleWriting a search, copy and paste program
Hello, Can some one help me by writing me the script of a program that does the following simple functions on a Linux Mint: 1. it runs in the background all the time, doing nothing except of checking...
View ArticleC++ function using strings
I want to create a message function to be used as follows Code: string s1 = "Hello"; string s2 = "World"; error_notify ("Hello", "World"); error_notify (s1, "World"); error_notify ("Hello", s2);...
View ArticleSort fonction UNIX bug ???
Hello there i have a funny behiavor of the sort fonction, i try it out on different Solaris machine and i have the same issue. So i would like to see if there is a rationel explanation here is some...
View ArticleShell script - Replace just part of a single line in a file.....
Hey guy's.... I new here, But im working on a school project, and I am not really good at programming. In fact, this is the only programming class that I need because programming is not what I am...
View ArticleStrange behaviour when output to terminal vs file (awk)
Hi all ! I noticed something very weird. I have a large pipe delimited file (20 fields/3,000 records) that looks like that: Code: AAA|BBB|11111|22222|...|($NF of record 1) CCC|DDD|33333|44444|...|($NF...
View ArticleGreping values from a text file
Hi All, I have 100's of files in the following format. I need to grep or parse out some values from each of the files Code: { tree: ((A:0.2{0},B:0.09{1}):0.7{2},C:0.5{3}){4};, placements: [...
View ArticleLinux booting options
Here is my question, a few years back I was sitting in an airplane and saw the movie display for all the passengers in the back of all the seats boot up. You could see the all too familiar...
View ArticleHow to take the count of all sundays between two dates?
Hi Am Using Unix Ksh I have input Code: DATE1=01/11/2012 DATE2=10/12/2012 need output as count of all sundays between these two dates Code: for examples Sunday count between DATE1 and DATE2 is 5 Can...
View Articleawk fails when using variable
This works when I try to execute normally : Code: echo | format | nawk '/pci@1f,4000/{print x}; {x=$0 }' But fails when define a variable and put it in a file: Code: cat test c=pci@1f,4000 echo |...
View Article[SOLVED] Grepping before and after lines for required string
Hi All, I am new to AIX unix . i need to grep for a pattern and if pattern is found then i need 3 before the pattern line found and 3 lines after the pattern found.
View Article