01-02-2018
What is your OS and version?
9 More Discussions You Might Find Interesting
1. HP-UX
Can someone tell me the right or exact syntax to check if the large file options is set on a filesystem
Thanks! (2 Replies)
Discussion started by: catwomen
2 Replies
2. Shell Programming and Scripting
Hello
I'm writing script in awk that reverse order the fields of every line in file.
My script have problem with spaces - if there is more spaces between fields
in line of file - my script erase them .
I want my script work like command "tac" - how to change it ?
#!/bin/sh
file=$1... (1 Reply)
Discussion started by: scotty_123
1 Replies
3. Shell Programming and Scripting
Hi! I have a large set of pairs of text files (each pair in their own subdirectory) and each pair shares head/tail (a couple of first and last lines) but differs in the middle part. I need to delete the heads/tails and keep only the middle portions in which they differ. The lengths of heads/tails... (1 Reply)
Discussion started by: dobryden
1 Replies
4. Shell Programming and Scripting
Hello,
I have a some files that look like this:
0 3
1 5
2 8
3 7
I want to reverse and append the data so it looks like this:
3 7
2 8
1 5
0 3
0 3
1 5
2 8
3 7
I first thought about using cat and tac cleverly with some redirection and pipe in a one-liner but I couldn't get it to... (1 Reply)
Discussion started by: bigfoot
1 Replies
5. Shell Programming and Scripting
I have a 500 MB XML file from a FileMaker database export, it's formatted horribly (no line breaks at all). The node structure is basically
<FMPXMLRESULT>
<METADATA>
<FIELD att="............." id="..."/>
</METADATA>
<RESULTSET FOUND="1763457">
<ROW att="....." etc="....">
... (16 Replies)
Discussion started by: JRy
16 Replies
6. UNIX for Dummies Questions & Answers
Hello, I am new to awk and I was wandering if I could reverse line and word order from a text file using awk. I figured out how to do them both separately, but can't quite figure out how to mix them.
Example:
Input file:
dog cat mouse
1 2 3
I am new to awk
Output of the awk program:... (3 Replies)
Discussion started by: blink_w
3 Replies
7. Shell Programming and Scripting
Hi Experts,
I have a data with multiple entry , I want to filter PKG= & the last column "00060110" or "00088150" in the output
file:
###############################################################################################
PKG= P8SDB :: VGS = vgP8SOra vgP8SDB1 vgP8S001... (5 Replies)
Discussion started by: rveri
5 Replies
8. Programming
Hi All,
We are trying to replace a 3rdparty where we don't know how they handled the reader part here. The query below is getting 197 * 2038017 row in the table.
In the below code we are trying to run the query and execute in the DB part and fetch and read the record. That is where it is... (1 Reply)
Discussion started by: arunkumar_mca
1 Replies
9. Shell Programming and Scripting
I have nginx web server logs with all requests that were made and I'm filtering them by date and time.
Each line has the following structure:
127.0.0.1 - xyz.com GET 123.ts HTTP/1.1 (200) 0.000 s 3182 CoreMedia/1.0.0.15F79 (iPhone; U; CPU OS 11_4 like Mac OS X; pt_br)
These text files are... (21 Replies)
Discussion started by: brenoasrm
21 Replies
LEARN ABOUT DEBIAN
libssh2_version
libssh2_version(3) libssh2 manual libssh2_version(3)
NAME
libssh2_version - return the libssh2 version number
SYNOPSIS
#include <libssh2.h>
const char * libssh2_version(int required_version);
DESCRIPTION
If required_version is lower than or equal to the version number of the libssh2 in use, the version number of libssh2 is returned as a
pointer to a zero terminated string.
The required_version should be the version number as constructed by the LIBSSH2_VERSION_NUM define in the libssh2.h public header file,
which is a 24 bit number in the 0xMMmmpp format. MM for major, mm for minor and pp for patch number.
RETURN VALUE
The version number of libssh2 is returned as a pointer to a zero terminated string or NULL if the required_version isn't fulfilled.
EXAMPLE
To make sure you run with the correct libssh2 version:
if (!libssh2_version(LIBSSH2_VERSION_NUM)) {
fprintf (stderr, "Runtime libssh2 version too old!");
exit(1);
}
Unconditionally get the version number:
printf("libssh2 version: %s", libssh2_version(0) );
AVAILABILITY
This function was added in libssh2 1.1, in previous versions there way no way to extract this info in run-time.
libssh2 1.1 23 Feb 2009 libssh2_version(3)