10 More Discussions You Might Find Interesting
1. Programming
Hi Perl Gurus
I am once again in need of your help
i have this lovely bit of code
for my $w (@$decoded_json) {
if ($w->{status} == 1){
print "Warning:\n";
printf "%-20s %-25s %-25s", $w->{client}, $w->{check}, $w->{issued} ;
print "\n\n";
}
if ($w->{status} == 2){... (1 Reply)
Discussion started by: ab52
1 Replies
2. Shell Programming and Scripting
Hi guys,
been scratching round the forums and my mountain of resources.
Maybe I havn't read deep enough
My question is not how sed edits a stream and outputs it to a file, rather something like this below:
I have a .txt with some text in it :rolleyes:
abc:123:xyz
123:abc:987... (7 Replies)
Discussion started by: the0nion
7 Replies
3. Shell Programming and Scripting
Hi All,
I have a question on eliminating spaces from a output.
A command returns me output like this
Attribute Value
--------------- ---------------
Total Capacity 500 GB
Utilization 10 % ... (12 Replies)
Discussion started by: rrb2009
12 Replies
4. Shell Programming and Scripting
Hello Experts,
I have .txt file which has various columns and 4 rows.
cat input.txt
Cont x y z k
Max 0.3 0.9 0.4 0.6
Min 0.2 0.9 0.3 0.6
Diff 0.1 0 0.1 0
Output:
Cont x y z k
Max 0.5 1.1 0.6 0.8
Min 0.1 0.7 0.2 0.4
Diff 0.4 0.4 0.4 0.4
That means if the diff between the Max and... (2 Replies)
Discussion started by: dixits
2 Replies
5. Shell Programming and Scripting
Hi,
I need a shell/command to achieve this task.
I've a delimited unloaded file from oracle in a scrambled format as shown below with many blank lines in it, I'm just trying to tailor it in a format that would be compatible to view and load it to a IDS db.
Here is the problem
... (1 Reply)
Discussion started by: divak
1 Replies
6. Shell Programming and Scripting
Hi everybody,
I need an urgent help with a BASH script. I have file which contains (besides the other data) the lines with the following structure identified by with keyword PCList:
<PARAMETER NAME="PCList"
TYPE="LIST_STRUCTURE"
MODEL="{,}"
... (1 Reply)
Discussion started by: sameucho
1 Replies
7. UNIX for Dummies Questions & Answers
I have a file like this:
Tue Apr 15 10:41:47 MDT 2008 FINAL RESULT; 6
Tue Apr 15 10:41:47 MDT 2008 FINAL RESULT; 2
Tue Apr 15 10:41:47 MDT 2008 FINAL RESULT; 5
With this command seira=`cut -f 2 -d ';' tes.txt` i take all the results (6,2,5 etc) and i store them in variable seira
When i do... (9 Replies)
Discussion started by: psalas
9 Replies
8. Solaris
Help...please.
I have a log that contains
Warning Authentication Failed: User GHDT88998HS doesn't exit: The User GHDT88998HS could not be found Mar 22, 2008 5:22:22AM com.hometel.ttm.auth.userlogin.
about maybe a thousand entries failed user acct message
How can I grab just the username... (2 Replies)
Discussion started by: rivendell500
2 Replies
9. UNIX for Advanced & Expert Users
I have a file containing two fields, Name and Time, with about 57 lines in this file. I am struggling to create a loop that will cut out the first ten lines of this file and echo it to the screen. Can anybody help me please. (1 Reply)
Discussion started by: mariner
1 Replies
10. UNIX for Dummies Questions & Answers
I'm using Kshell scripts cronjobs to logrolling my daily log files and I stamped the log file at the end of the day by date stamp i.e.: %d_%m_%y-LogFile.
but the 22_01_2001-LogFile as example contains 21st Jan data and I want to stamp the log file with previous day.
so I'm trying to subtract... (3 Replies)
Discussion started by: tamer
3 Replies