04-04-2014
Every dir has . and .., so there and somwhere the link counts go up. With no children, 2, parent entry and . in myself, and then with every child, 1 more for their .. entry.
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hello. i want to make an awk script to search an html file and output all the links (e.g .html, .htm, .jpg, .doc, .pdf, etc..) inside it. also, i want the links that will be output to be split into 3 groups (separated by an empty line), the first group with links to other webpages (.html .htm etc),... (8 Replies)
Discussion started by: kyris
8 Replies
2. Shell Programming and Scripting
Hi All,
I tried searching a lot about this but to no avail. I have a HTML file. I used
links -dump file_page.html > text_html.txt
What the above command gave me was a filtered text from the HTML file with tags removed. Now, the the output from the above command looked something like this:... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies
3. Solaris
When loooking at files in a directory using ls, how can I tell if I have a hard link or soft link? (11 Replies)
Discussion started by: Harleyrci
11 Replies
4. AIX
Hi
I'm logged in as root in an aix box
Which command will list all the soft links and hard links present in the server ? (2 Replies)
Discussion started by: newtoaixos
2 Replies
5. Shell Programming and Scripting
Hi,
I have a problem when doing calculations in awk.
I want to add up a few numbers and output the result.
testfile:
48844322.87
7500.00
10577415.87
3601951.41
586877.64
1947813.89
$ awk '{x=x+$1};END{print x}' testfile
6.55659e+07The problem is the number format. It should show... (3 Replies)
Discussion started by: Subbeh
3 Replies
6. UNIX for Dummies Questions & Answers
I am trying to output two command substitutions echo "$(command) $(command)" with a single echo however when using wc -l within the second substitution, that substitution, instead of appearing in order at the end of the line output, it overwrites the beginning of the output line.
I've tried... (2 Replies)
Discussion started by: somegeek
2 Replies
7. Shell Programming and Scripting
I want count number of characters / find the length of the 'wc -l' output
This is the command
bash-3.2$ gzcat /home/sid/file1.dat |wc -l
830752
So final out I want is 6 i.e lenght of 830752
I tried with awk
bash-3.2$ gzcat /home/sid/file1.dat |wc -l | awk '{print length ($0)... (3 Replies)
Discussion started by: sidnow
3 Replies
8. UNIX for Beginners Questions & Answers
I want to check my data quality. I want to output the lines with non-number. I used the grep command:
grep '' myfile.csv
Since my file is csv file, I don't want to output the lines with comma. And I also don't want to output "." or space. But I still get the lines like the following:... (8 Replies)
Discussion started by: twotwo
8 Replies
LEARN ABOUT OSF1
xmdropsitequerystackingorder
XmDropSiteQueryStackingOrder(3X) XmDropSiteQueryStackingOrder(3X)
NAME
XmDropSiteQueryStackingOrder - A Drag and Drop function that returns the parent, a list of children, and the number of children for a spec-
ified widget
SYNOPSIS
#include <Xm/DragDrop.h>
Status XmDropSiteQueryStackingOrder (widget, parent_return, child_returns, num_child_returns)
Widget widget;
Widget *parent_return;
Widget **child_returns;
Cardinal *num_child_returns;
DESCRIPTION
XmDropSiteQueryStackingOrder obtains the parent, a list of children registered as drop sites, and the number of children registered as drop
sites for a given widget. The children are listed in current stacking order, from bottom-most (first child) to the top-most (last child).
This function allocates memory for the returned data that must be freed by calling XtFree. Specifies the widget ID. For this widget, you
obtain the list of its children, its parent, and the number of children. Returns the widget ID of the drop site parent of the specified
widget. Returns a pointer to the list of drop site children associated with the specified widget. Returns the number of drop site chil-
dren for the specified widget.
For a complete definition of DropSite and its associated resources, see XmDropSite(3X).
RETURN VALUE
Returns zero if the routine fails; returns a nonzero value if it succeeds.
SEE ALSO
XmDropSite(3X), XmDropSiteConfigureStackingOrder(3X)
XmDropSiteQueryStackingOrder(3X)