Hi all,
Iam trying to sort the contents of the file based on the position of the file.
Example:
$cat sample.txt
0101020060731 ## Header record
1c1 Berger Awc ANP20070201301 4000.50
1c2 Bose W G ANP20070201609 6000.70
1c2 Andy CK ANP20070201230 28000.00... (3 Replies)
This sample script should obtain a list of files in my home directory:
#!/bin/bash
# Manipulate files and copy to my home directory
#
for FILE in $HOME/.bash*
do
cp $FILE ${HOME}/public_html
chmod a+r ${HOME}/public_html/${FILE}
done
Unfortunately it only produces an error:
... (4 Replies)
I apologize for the confusing title .. What I want to do is write a script that pulls specific input from the command line (after the script name) rather than from within the script.
Example:
-$: howfarbetween.sh Montreal Chicago
Where the script would run based on the inputs of the two... (3 Replies)
Hi All'
I'm a newbe, and just is started to learn unix.
Where can I find a complete sample scripts? I looking for a sample scripts which log in at another unix host and and execute another script server side.
Any input welcome (5 Replies)
Hello
Today I had a beautiful test to write some commands using Ubuntu, now I want to make sure of my answers to be reassured, if I had a mistake please correct me
List all files details under ubuntu Desktop.
my answer:
cd Desktop |ls -l
Navigate to your Desktop directory and... (7 Replies)
i know there are tons n tons of documentation out there to help me out to understand this.. but wen i read it, its to confusing for me.. i would really wish a kind hearted person on this forum can come out with a sample spec file for the example steps that i need for the RPM. This will make me... (0 Replies)
I would like to calculate
1/n
In awk, I wrote the following line for the sigma summation:
{ summ+=($1-average)^2 }
Full code:
BEGIN { Print "This script calculate error estimates"; sum=0 }
{ sum+=$1; n++ }
END { average = sum/n }
BEGIN { summ=0 }
{ summ+=($1-average)^2 }
END { print... (8 Replies)
Hi all I am using following code and input to duplicate entries till next row but out is cutting some words in this sample can anybody check on his system is there any error?
awk ' { if($2 !~ /^ *$/) { a=substr($0,length($1)+1,index($0,$NF)-length($NF)); b=$NF; } print $1, a, b } ' file... (1 Reply)
Below is the code. Its the 1st line of a file.
How can I remove the bracket and display like below.
123 web int 1 09:30:45 2013
I dont want to use AWK or SED or PERL. I need to use only the bash shell scripting commands to do it. (3 Replies)
Discussion started by: ghosh_tanmoy
3 Replies
LEARN ABOUT OSF1
xmaddtabgroup
XmAddTabGroup(3X)XmAddTabGroup(3X)NAME
XmAddTabGroup - A function that adds a manager or a primitive widget to the list of tab groups
SYNOPSIS
#include <Xm/Xm.h>
void XmAddTabGroup (tab_group)
Widget tab_group;
DESCRIPTION
This function is obsolete and its behavior is replaced by setting XmNnavigationType to XmEXCLUSIVE_TAB_GROUP. When using the keyboard to
traverse through a widget hierarchy, primitive or manager widgets are grouped together into what are known as tab groups. Any manager or
primitive widget can be a tab group. Within a tab group, move the focus to the next widget within the tab group by using the arrow keys.
To move to another tab group, use KNextField or KPrevField.
Tab groups are ordinarily specified by the XmNnavigationType resource. XmAddTabGroup is called to control the order of traversal of tab
groups. The widget specified by tab_group is appended to the list of tab groups to be traversed, and the widget's XmNnavigationType is set
to XmEXCLUSIVE_TAB_GROUP. Specifies the manager or primitive widget ID.
SEE ALSO XmManager(3X), XmGetTabGroup(3X), XmPrimitive(3X), XmRemoveTabGroup(3X)XmAddTabGroup(3X)