01-18-2017
Welcome to the forum!
While people in here generally are more than willing to help, it is usually best to mention the OS and shell, and to show what you tried and where you are stuck. So:
Any attempts / ideas / thoughts from your side? Any preferred tools? Any restrictions?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Is there anyway to get awk to treat multiple delimiters as one? Particularly spaces... (6 Replies)
Discussion started by: peter.herlihy
6 Replies
2. Shell Programming and Scripting
Hi All
I have recently had to start using Unix for work and I have hit brick wall with this prob....
I have a file that goes a little something like this....
EUR;EUR;EUR:USD:USD;USD;;;EUR/USD;XAU/AUD;XAU/EUR;XAU/AUD,GBP/BOB,UAD/XAU;;;1.11;2.22;3.33;4.44;5.55;6.66;;;
is it possible to... (7 Replies)
Discussion started by: luckycharm
7 Replies
3. Shell Programming and Scripting
I have the following string sample:
bla bla bla bla bla
I would like to extract the "123" using awk.
I thought about awk -F"]" '{ print $1 }' but it doesn't work
Any ideas ? (7 Replies)
Discussion started by: gdub
7 Replies
4. Shell Programming and Scripting
Hello,
I have data where words are separated by a delimiter. In this case "="
The number of delimiters in a line can vary from 4to 8. The norm is 4.
Is it possible to have a script where the file could be separated starting with highest number of delimiters and ending with the lowest
An... (8 Replies)
Discussion started by: gimley
8 Replies
5. Shell Programming and Scripting
Hello
If you wanted to sort a .csv file that was filled with lines like this:
<Ticker>,<Date as YYYYMMDD>,<Time as H:M:S>,<Volume>,<Corr>
(H : , M, S: )
by date, does anybody know of a better solution than to turn the 3rd and 4th colons of every line into commas, sorting on four keys,... (20 Replies)
Discussion started by: Ryan.
20 Replies
6. UNIX for Dummies Questions & Answers
hi,
i want to capture the CPU performance, memory , harddisk usage into a single file for every 10 seconds iterations and it shall run until i kill it.
can somebody plz help me in this...
thanx (1 Reply)
Discussion started by: bskumar4u
1 Replies
7. Shell Programming and Scripting
Hi, I need to display the last column value in the below o/p.
sam2 PS 03/10/11 0 441
Unable to get o/p with this awk code
awk -F"+" '{ print $4 }' pwdchk.txt
I need to display 441(in this eg.) and also accept it as a variable to treat it with if condition and take a decision.... (1 Reply)
Discussion started by: sam_bd
1 Replies
8. Shell Programming and Scripting
Hi Folks,
This is the first time I ever encountered this situation
My input file is of this kind
cat input.txt
1 PAIXAF 0 1 1 -9 0 0 0 1 2 0 2 1 2 1
7 PAIXEM 0 7 1 -9 1 0 2 0 1 2 2 1 0 2
9 PAKZXY 0 2 1 -9 2 0 1 1 1 0 1 2 0 1
Till the sixth column (which is -9), I want my columns to... (4 Replies)
Discussion started by: jacobs.smith
4 Replies
9. Shell Programming and Scripting
Hello all
I have a data base of information that is formatted like so:
JSD4863 XXX-XX-XXXX DOE, JOHN C JR-II BISS CPSC BS INFO TECH 412/779-9445
I need the last four digits of the phone number. However, many lines contain
'garbage data' that I'm not interested in. So i used a 'for loop'... (7 Replies)
Discussion started by: smartSometimes
7 Replies
10. Shell Programming and Scripting
Hi All,
I have a file with a single row having the following text
ABC.ABC.ABC,Database,New123,DBNAME,F,ABC.ABC.ABC_APP,"@FUNCTION1("ENT1") ,@FUNCTION2("ENT2")",R,
I want an output in the following format
ABC.ABC.ABC DBNAME ABC.ABC.ABC_APP '@FUNCTION1("ENT1")... (3 Replies)
Discussion started by: dev.devil.1983
3 Replies
LEARN ABOUT HPUX
set_cdscp_preferred_clearinghouse
set cdscp preferred clearinghouse(1m) set cdscp preferred clearinghouse(1m)
NAME
set cdscp preferred clearinghouse - Specifies a preferred clearinghouse to use for satisfying read requests that result from CDS control
program commands
SYNOPSIS
cdscp set cdscp preferred clearinghouse [clearinghouse-name]
ARGUMENTS
The full name of the preferred clearinghouse. If you omit this argument, the command causes CDS to revert to the default, which is to use
any clearinghouse.
DESCRIPTION
The set cdscp preferred clearinghouse command specifies a preferred clearinghouse to use for satisfying read requests that result from CDS
control program commands. You cannot specify a preferred clearinghouse for making modifications, because these requests always use the
master replica. You must use this command within the CDS control program. Exiting from the CDS control program removes the preferred
clearinghouse setting. You must reset the preferred clearinghouse each time you enter the CDS control program.
Permissions Required
None
NOTE
This command is replaced at Revision 1.1 by the dcecp command and may not be provided in future releases of DCE.
EXAMPLE
The following command specifies /.:/Paris_CH as the preferred clearinghouse: $ cdscp cdscp> set cdscp preferred clearinghouse /.:/Paris_CH
RELATED INFORMATION
Command: show cdscp preferred clearinghouse(1m)
set cdscp preferred clearinghouse(1m)