05-02-2019
Quote:
Originally Posted by
RavinderSingh13
Nice solution in jq, could you please do let us know any documentation which we could follow for learning jq. Will be grateful to you.
The documentation on the mentioned JQ-Homepage:
jq is quite nice and extensive. No special site I further know of.
...and as this is something, some person here may like, I am mentioning this:
jq is written in portable C, and it has zero runtime dependencies.
These 3 Users Gave Thanks to stomp For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all, I'd like to capture the output from the 'top' command to monitor my CPU and Mem utilisation.Currently my command isecho date
`top -b -n1 | grep -e Cpu -e Mem` I get the output in 3 separate lines.Tue Feb 24 15:00:03
Cpu(s): 3.4% us, 8.5% sy .. ..
Mem: 1011480k total, 226928k used, ....... (4 Replies)
Discussion started by: new2ss
4 Replies
2. Shell Programming and Scripting
Hi all,
I have input text file of this format
objectclass:endeavor
pid:12345
postalAddress:379 PROSPECT ST
street:STE B
l:TORRINGTON
st:CT
postalCode:067905238
telephoneNumber:9999999999... (2 Replies)
Discussion started by: pintoo
2 Replies
3. UNIX for Advanced & Expert Users
i am running df -k command on aix machine.
i got the output like this. i need to store into file and send that file into microsoft excel.i need to allign properly.
Filesystem 512 blocks Free % Used Iused %Iused Mounted on
/dev/hd4 262144 126488 52% ... (9 Replies)
Discussion started by: wintercoat
9 Replies
4. Shell Programming and Scripting
Hi,
I have two files , one file with data file with attributes that need to be sent to another file to generate a predefined format.
Example:
File.txt
AP|{SSHA}VEEg42CNCghUnGhCVg==
APVG3|{SSHA}XK|"password"
AP3|{SSHA}XK|"This is test"
....
etc
---------
test.sh has... (1 Reply)
Discussion started by: hudson03051nh
1 Replies
5. Shell Programming and Scripting
Hi All ,
Below is the perl code. from below code want to confirm one thing that
wahtever the sequence of data we are passing through json format which contains 3 tuples of different sequences
Eg:
ParentID,SystemID,SendingTime,Time,ClientLocation,ClientID,
... (1 Reply)
Discussion started by: aish11
1 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I need to format the output of the command "df -h":
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rootvg-lv01
271G 13G 245G 6% /
tmpfs 16G 0 16G 0% /dev/shm
/dev/sda1 97M 50M 43M 55% /boot
/dev/mapper/d1vg-lv01
124G 105G 13G 90% /d0
I used awk:
df -h |... (6 Replies)
Discussion started by: seafan
6 Replies
7. Shell Programming and Scripting
Input File
Symmetrix ID : 000192601507
Masking View Name : TS00P22_13E_1
Last updated at : 05:10:18 AM on Tue Mar 22,2011
Initiator Group Name : 10000000c960b9cd
Host Initiators
{
WWN : 10000000c960b9cd
WWN : 10000000c960b9dd
}
Port... (1 Reply)
Discussion started by: greycells
1 Replies
8. Shell Programming and Scripting
Hi ,
i am generating some data by firing sql query with connecting to the database by my solaris box.
The below one should be the header line of my excel ,here its coming in separate row.
TO_CHAR(C. CURR_EMP_NO
---------- ---------------
LST_NM... (6 Replies)
Discussion started by: dani1234
6 Replies
9. UNIX for Beginners Questions & Answers
Hi All,
i am trying to print the df -h ouput in json format. using below script.
#!/usr/bin/env bash
df -h > /tmp/sdf
nawk '{print " "$1" "$2" "$3" "$4" "$5" "$6" "}' /tmp/sdf > /tmp/sdf1
nawk 'NR==1 { for (i=1; i<=NF; i++) { f = i }}{ print $(f), $(f), $(f), $(f), ... (2 Replies)
Discussion started by: sravani25
2 Replies
10. UNIX for Beginners Questions & Answers
Hi All,
I am new to shell scripting, Need your help in creating a shell script which converts any unix command output to JSON format output.
example:
sample df -h command ouput :
Filesystem size used avail capacity Mounted
/dev/dsk/c1t0d0s0 8.1G 4.0G 4.0G 50% /... (13 Replies)
Discussion started by: balu1234
13 Replies
LEARN ABOUT DEBIAN
httpfs2
HTTPFS2(1) HTTPFS2(1)
NAME
httpfs2 - mount a file from a http server into the filesystem
SYNOPSIS
httpfs2 [OPTIONS] URL FUSE-OPTIONS httpfs2_ssl [OPTIONS] URL FUSE-OPTIONS
DESCRIPTION
httpfs2 is a FUSE based filesystem for mounting http or https URLS as files in the filesystem. There is no notion of listable directories
in http so only a single URL can be mounted. The server must be able to send byte ranges.
OPTIONS
-c console
Attempt to use the file ior device console for output after fork. The default is /dev/console.
-f
Do not fork, stay in foreground.
-t timeout
Use different timeout for connections. Default '30's.
URL
The url should specify the protocol as http or https, and it may specify basic authentication username and password. Currently special
characters like whitespace are not handled so the URL cannot contain them. See a sample URL below:
http://user:password@server.com/dir/file
FUSE-OPTIONS
These options are passed to the FUSE library. At the very least the mount point should be specified.
EXIT STATUS
0
Successfully connected to the server
other
Failure (url parsing error, server error, FUSE setup error). Some FUSE errors may happen only after the process forks so they will not
be returned in exit value.
BUGS
The process can be stopped by typing ^Z on the terminal which may not be desirable under some circumstances.
AUTHORS
Miklos Szeredi <miklos@szeredi.hu>
hmb marionraven at users.sourceforge.net
Michal Suchanek <hramrach@centrum.cz>
COPYING
Free use of this software is granted under the terms of the GNU General Public License (GPL).
03/13/2010 HTTPFS2(1)