02-08-2013
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have a awk command that is stored in a variable.
the value of the variable cmd is:
(mean output of echo $cmd is: )
awk -F";" '{print $1}'
Now I want to execute this command.
How can I do that????
Quick Reply will be appreciated.
Regards,
Amit (2 Replies)
Discussion started by: patelamit009
2 Replies
2. Shell Programming and Scripting
Hi All,
I have the following requirement. In a directory i get files from external source. I at regular intervals check that directory for any incoming files.
The file name is underscore delimited.
Such as:
aaa_bbb_ccc_ddd_eee_fff.dat
I am using awk and and splitting the file name. ... (4 Replies)
Discussion started by: satishpv_2002
4 Replies
3. Shell Programming and Scripting
I want to open more than 2 files(f1,f2).
commands for opening those files are stored in one file (f3).
command to execute the file (f3). (3 Replies)
Discussion started by: Mahendravarma
3 Replies
4. Shell Programming and Scripting
Hi all, I have the requirement to generate the file containing following command
eval /path/ dsjob -logdetail projectname JOBNAME /path/
1. The file contains the above command say about 150 times i,e only the JOBNAME changes in every command
2. The commands must be written in such a way... (2 Replies)
Discussion started by: sanjay mn
2 Replies
5. Shell Programming and Scripting
Hi All,
bash-3.2$ autorep -J BOX_NAME% -l0 | grep BOX_NAME| awk -f awkScript.awk
sh: -c: line 0: unexpected EOF while looking for matching `"'
sh: -c: line 1: syntax error: unexpected end of file
BOX_NAME SU 06/21/2013 03:44:03 06/21/2013 07:46:37 0
#My awkfile
{ ... (3 Replies)
Discussion started by: ddspark
3 Replies
6. Shell Programming and Scripting
Hi,
I would like to use grep command inside awk.
Here is my requirement below :
file.txt
col1 col2 col3 col 4 col 5
wrxwrx 124 jun 3 Sensex.EMEA
wrxwrx 120 jun 4 Emex.US
wrxwrx 130 feb 3 passion.AUS
wrxwrx 145 feb 9 lession.AUS
wrxwrx 130 feb 5 pass.US
wrxwrx 130 feb 8... (5 Replies)
Discussion started by: Balasankar
5 Replies
7. Shell Programming and Scripting
Hi All,
I am trying to find a word from a file in loop.
while read i; do
DB_Name=$i
awk '{for(i=1;i<=NF;i++)if($i~/$DB_Name/)print $(i)}' $BTEQ_NAME > $DB_Name_TableList.txt
done <Param.txt
here Param.txt contents data as
ODS_TARGT_RECV
FIN_TARGT... (7 Replies)
Discussion started by: Shilpi Gupta
7 Replies
8. Shell Programming and Scripting
Hi Experts,
How do I parse a XML with below contents
<saw:user name="mbussey@xyz.com" />
<saw:user name="kimmy.chan@pqr.com" />
<saw:user name="chudgins@gmail.com" />
and retrieve below output ?
mbussey@xyz.com
kimmy.chan@pqr.com
chudgins@gmail.com
... (17 Replies)
Discussion started by: pauldx
17 Replies
9. Shell Programming and Scripting
from the CLI on a Mac, if you type networksetup -listallnetworkservices then you get results in a multi-line paragraph that look something like this:
networksetup -listallnetworkservices
An asterisk (*) denotes that a network service is disabled.
Wi-Fi
Display Ethernet
Bluetooth DUN... (7 Replies)
Discussion started by: hungryd
7 Replies
10. UNIX for Advanced & Expert Users
I tried running this.
dsh -w server1 'lsof /audit | awk '{ print $2 }''
It did not like above so I tried to escape the single parenthesis at the end.
dsh -w server1 'lsof /audit | awk '{ print $2 }\''
It then hung so I changed up the parenthesis to this. This worked.
dsh -w server1... (6 Replies)
Discussion started by: cokedude
6 Replies
LEARN ABOUT DEBIAN
basexserver
basexserver(1) The XML Database basexserver(1)
NAME
basexserver - XML database system and XPath/XQuery processor (server mode)
SYNOPSIS
basexserver [-cdeipSz] [stop]
DESCRIPTION
basexserver starts the server mode of the native XML database system basex(1) on default port 1984.
OPTIONS
A short description of option can be obtained from
$ basexserver -h
or by browsing http://docs.basex.org/wiki/Startup_Options#BaseX_Server
USER MANAGEMENT
On first startup a user 'admin' with default password 'admin' exists (make sure to change this)!
Admin permissions are needed to execute one of the following processes.
o Creating user 'test' with password 'test':
> CREATE USER test test
As global permissions valid options are 'none', 'read', 'write', 'create' and 'admin'.
o Revoking all global permissions from user 'test':
> GRANT none TO test
Valid local permissions are 'none', 'read' and 'write'.
o Granting write permission on database 'factbook' to user 'test':
> GRANT write ON factbook TO test
Note: Local permissions overwrite global permissions. As a consequence, the 'test' user will only be allowed to access (i.e., read and
write) the 'factbook' database. If no local permissions are set, the global rights are inherited.
o Showing global permissions:
> SHOW USERS
o Showing local permissions on database 'factbook':
> SHOW USERS ON factbook
o Dropping of user 'test':
> DROP USER test
Further details on user management are to be found in the BaseX Documentation Wiki (http://docs.basex.org/wiki/User_Management).
DATABASE COMMANDS
A list of supported Database commands can be obtained from
$ basexserver -ic help
or by browsing http://docs.basex.org/wiki/Commands
SEE ALSO
basexclient(1), basex(1), basexgui(1)
~/.basex
BaseX (standalone and server) properties
~/.basexgui
BaseX additional GUI properties
~/.basexperm
user name, passwords, and permissions
~/.basexevents
contains all existing events
~/BaseXData
Default database directory
~/BaseXData/.logs
Server logs
~/BaseXRepo
Package repository
BaseX Documentation Wiki: http://docs.basex.org
HISTORY
BaseX started as a research project of the Database and Information Systems Group (DBIS) at the University of Konstanz in 2005 and soon
turned into a feature-rich open source XML database and XPath/XQuery processor.
LICENSE
New (3-clause) BSD License
AUTHOR
BaseX is developed by a bunch of people called 'The BaseX Team' <http://basex.org/about-us/> led by Christian Gruen <cg@basex.org>.
The man page was written by Alexander Holupirek <alex@holupirek.de> while packaging BaseX for Debian GNU/Linux.
26 June 2012 basexserver(1)