I saw a few posts close to what i want to do, but they didn't look like they would work exactly.. or I need to think out of the box on this.
I have a file that I keep server stats in for my own performance analysis. this file has the output from many commands in it (uptime, vmstats, ps, swap... (2 Replies)
OK so I've inherited a set of scripts that do some work on a database. They do all have a standard comment block at the beginning that has good information on the script. I would like to generate a quick web page report that lists the script name and the description lines (for now it may be... (1 Reply)
Hi all,
I have the following script, but are not too sure about the syntax to complete the script.
In essence, the script must connect to a SFTP server at a client site with username and password located in a file on my server.
Then change to the appropriate directory.
Pull the data to the... (1 Reply)
Good day Gurus,
I have a csv file that contains an inventory of active servers. This csv file contains a well over a hundred systems (IBM, SUN, HP). It also contains those systems details. See below for an example
hostA,invver,1.02,20100430
hostA,date,08/30/2010,06:18
hostA,use,"Unknown... (4 Replies)
Hi there,
I'm having a problem trying to extract data from within a text file. I'm trying to extract this manually for a lack of better words.
I need any items that fall within latitude 36.5 to 39.5 and long -75.3 to -83.9
I have been doing this using cat neta.txt | grep '!38' and working... (6 Replies)
Hello, fellow computer junkies. First time poster! My boss wrote an application (Mavericks 10.9, Mountain Lion 10.8) that checks a user's security settings. The user runs the application, then it spits out an email that is sent back to our inbox showing the results. On our end, we have a mail rule... (5 Replies)
I'm scanning a list of emails- I need to pull 2 pieces of data, then move to the next file:
Sender's Email Address
Email Date
I need these to be outputted into a single column- separated by a ",". Like this:
Email1's Address, Email1's Date Stamp
Email2's Address, Email2's Date Stamp... (4 Replies)
awk -v now="$(date +%s)" -v tDiff="${USERMINUTES}" '
BEGIN {
FS="="
if (!now) now=systime()
if (!tDiff) tDiff=60*60
p=1
}
/{/ {rec=$0;p=1;next}
/}/ && rec && p {print rec ORS $0;next}
$1=="entry_time" { if (now-$2>tDiff)p=0 }
{rec=rec ORS $0}'... (6 Replies)
Discussion started by: SkySmart
6 Replies
LEARN ABOUT CENTOS
gresource
GRESOURCE(1) User Commands GRESOURCE(1)NAME
gresource - GResource tool
SYNOPSIS
gresource [--section SECTION] list FILE [PATH]
gresource [--section SECTION] details FILE [PATH]
gresource [--section SECTION] extract FILE PATH
gresource sections FILE
gresource help [COMMAND]
DESCRIPTION
gresource offers a simple commandline interface to GResource. It lets you list and extract resources that have been compiled into a
resource file or included in an elf file (a binary or a shared library).
The file to operate on is specified by the FILE argument.
If an elf file includes multiple sections with resources, it is possible to select which one to operate on with the --section option. Use
the sections command to find available sections.
COMMANDS
list
Lists resources. If SECTION is given, only list resourcs in this section. If PATH is given, only list matching resources.
details
Lists resources with details. If SECTION is given, only list resources in this section. If PATH is given, only list matching resources.
Details include the section, size and compression of each resource.
extract
Extracts the resource named by PATH to stdout. Note that resources may contain binary data.
sections
Lists sections containing resources. This is only interesting if FILE is an elf file.
help
Prints help and exits.
GIO GRESOURCE(1)