Issue with sed command
Hi, I have a script that replaces one string with the other in all files under the specified directory. Code: !/bin/bash # **************** Change Variables Here ************...
View ArticleGetting syntax error with awk ternary operator
Code: split($7,a," "); date = a[1]; time = a[2] split(date,d,"/"); month = sprintf("%02d",d[1]); day = sprintf("%02d",d[2]); year = 2000 + d[3] % 100 split(time,t,":"); hour=t[1]; min=t[2] hour >=...
View ArticleHow to get " printed on command line?
Hey, Is there a way I can print " in a command line? When I type " Code: echo "set variable = disco" ".... This actually prints Code: echo set variable = disco but I would like to print it out as ---...
View ArticleIs possible to see led panel status on AIX?
Simple question: on hmc i can use lsrefcode to see led status of panel,currently display 01 N V=F T On aix without hmc,is possible to see actual led status of my workstation? I don't have hmc currently...
View ArticleGetopts alternative
Hi, Does anyone have an example of parsing command line arguments similar to how getopts parse command line arguments? I am looking at a getopts alternative because I want to have the same parsing on...
View ArticleFORTRAN: Loop over variable file names
Hi guys I'm a beginner in fortran. So excuse me for my naivety, let me briefly describe what I was trying to do. I have let's say 2 files named reac-1 and reac-2. After opening these files I've to do...
View ArticleDeny messages for a session
I do not want to be interrupted with any messages. How do I set my session to deny messages?
View ArticleIs it possible to upload files from a Linux station to a remote server via...
Hi, I have a small Linux device that measures some IP stats from one network and then generates some stats files (csv format) based on the input at certain times. I want those stats files to be...
View ArticleUndefined reference to omp_get_thread_num using OpenMP?
I am using a large code-base that compiled successfully before using Code: make with a makefile and cmake. However, now that I'm trying to use openmp with it, I'm now getting the errors Code: undefined...
View ArticleNeed video driver package for Solaris 11
I'm trying to install Solaris on my laptop for training purposes. It recognizes all the hardware except for the Intel Mobile 4 Series (GMA 4500m) video controller. Wikipedia says that Solaris 11 does...
View ArticleNeed script to convert TXT file into CSV
Hi Team, i have some script which give output in TXT format , need script to convert TXT file into CSV. Output.TXT Code: 413. U-UU-LVDT-NOD-6002 [NOD_4406] macro_outcome_dist-8.0.0(v1_0_2)...
View ArticleCall sql script from UNIX shell script
I know this question is out there in many forums, but I tried all the combinations in vain. I'm basically trying to call a sql script from a shell script. Below is my sql script (plsql.sql) DELCARE...
View ArticleCalling expect from shell script which inturn call python
Hi Team, I have to execute a task from my local machine, where i keep my .expect,.sh, .bash and .python scripts .Task are coded in the script and has to be executed at remote machine. for that i used...
View ArticleCalling expect from shell script which inturn call python
Hi Team, I have to execute a task from my local machine, where i keep my .expect,.sh, .bash and .python scripts .Task are coded in the script and has to be executed at remote machine. for that i used...
View ArticleDoxygen \cond not working
Am writing some documentation of some software in a .dox file and wand to include some comments that will not show in the webpage. I am using \cond but I am not getting any output after calling...
View ArticleFor loop query...
Hi all... I am using a for loop for another part of AudioScope... Consider this code:- Code: for n in {0..100} do if [ "${condition[$n]}" = "another_string" ] then break...
View ArticleIf condition - else is never executed
In the following code snippet, 'if' part is always executed irrespective of whether I enter 'y' or 'n'. I am unable to figure out my mistake even after spending couple of hours. Can someone point out...
View ArticleMatch and append - awk
ALL, Please help with this ... File1 Code: 000433,ds00d11,tdev,ds00d11_view,0CD3 000433,ds00d12_34,tdev,ds00d12_view,132D File2 Code: CG01_ds00d11_drs,rs1_ds00d11_0CD3_114D,000433,0CD3...
View Articlesed one liner to Delete blank lines - Help required
Hi, Code: cat test.txt BlankLine BlankLine BlankLine BlankLine ello hi helo BlankLine BlankLine heylo BlankLine BlankLine BlankLine done BlankLine BlankLine BlankLine The above is the content of the...
View Articlesed one Liner option -e
Hi, I have the following command.(Delete all trailing blank lines at the end of a file.) Code: sed -e :a -e '/^\n*$/{$d;N;ba' -e '}' I don't understand the logic of this command and also I don't...
View Article