09-20-2012
Change "%B %d" to "%b %e" in your script.
This User Gave Thanks to Don Cragun For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hey all,
I have a shell that invokes a AWK.
In this AWK i want invoke a function that receives 3 parameters:
date: 20080831
time: 235901
duration: 00023
that function receive this 3 parameters and sum to this value two more seconds:
2008083123590100025
Remember that in case that... (3 Replies)
Discussion started by: anaconga
3 Replies
2. AIX
AIX 4.2
I am trying to do an rsh grep to search for date records inside server logs by doing this :
xx=`date +"%a %b %d"`
rsh xxx grep "^$XX" zzz
gives :
grep: 0652-033 Cannot open Jun.
grep: 0652-033 Cannot open 11.
But if I do :
xx=`date +"%a %b %d"`
grep "^$XX" zzz
it works... (2 Replies)
Discussion started by: Browser_ice
2 Replies
3. Shell Programming and Scripting
I have, a file wich list file on server ftp and i want to sort the file text as the command "ls -t"
i.e
drwxr-x--- 2 ftp_mont System 0 Sep 30 09:16 .
drwxr-x--- 2 ftp_mont System 0 Jul 15 2009 ..
-rwxr-x--- 1 ftp_mont System 343998791 Sep 01 09:20 manif... (14 Replies)
Discussion started by: protocomm
14 Replies
4. Shell Programming and Scripting
Hello,
My input files are having header/body/footer. The first three digits finds whether the data is header/body/footer. For example,
010AAAAA 20100507 234KB BBBBBBBBBB_20100506.DAT
020CCCCC DDDDDDDDD 373983983 19750426 456.90 ... (1 Reply)
Discussion started by: nvkuriseti
1 Replies
5. Shell Programming and Scripting
Its very critical and 'm in need to schedule this on my crontab so that the output can be monitored by a tool
I have written the command below to redirect the error which has the output redirected to the file gincle_lol.log.
echo "---" >>/gingle/gincle_lol.log
date... (1 Reply)
Discussion started by: Sounddappan
1 Replies
6. Shell Programming and Scripting
Hello Team ,
I have to extract date section from the below file output. The output of the file is as shown below.
I have to extract the "" this section from the above output of the file. can anyone please let me know how can we acheive this? (4 Replies)
Discussion started by: coolguyamy
4 Replies
7. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
8. Shell Programming and Scripting
Hello experts!
I need your help please
I have a file.txt of which I want to extract 3rd and 4th columns with date with the form e.g.:
2016-11-25 03:14:50and pass them to "date" command, but also append the 9th column in a file as well.
So I want to execute
date -d '2016-11-25 03:14:50' ... (2 Replies)
Discussion started by: phaethon
2 Replies
9. Solaris
Hi all,
First post here. Working on Solaris 10, on a Sun t4-4, need to change RX queue depth(ethernet, not HBA) and was wondering if i could get by with just restarting the network or if i should just bounce the whole shebang.
Apologies if i missed a similar thread. if there is one, please... (2 Replies)
Discussion started by: caspnx
2 Replies
10. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT DEBIAN
prophet::change
Prophet::Change(3pm) User Contributed Perl Documentation Prophet::Change(3pm)
NAME
Prophet::Change
DESCRIPTION
This class encapsulates a change to a single record in a Prophet replica.
METHODS
record_type
The record type for the record.
record_uuid
The UUID of the record being changed.
change_type
One of "add_file", "add_dir", "update_file", "delete".
is_resolution
A boolean value specifying whether this change represents a conflict resolution or not.
prop_changes [@PROPCHANGES]
Returns a list of Prophet::PropChanges associated with this Change. Takes an optional arrayref to fully replace the set of propchanges.
has_prop_changes
Returns true if this change contains any Prophet::PropChanges and false if it doesn't.
new_from_conflict $conflict
Takes a Prophet::Conflict object and creates a Prophet::Change object representing the conflict resolution.
add_prop_change { new => __, old => ___, name => ___ }
Adds a new Prophet::PropChange to this Prophet::Change.
Takes a "name", and the "old" and "new" values.
as_hash
Returns a reference to a representation of this change as a hash.
as_string ARGS
Returns a string representing this change. If $args{header_callback} is specified, the string returned from passing $self to the callback
is prepended to the change string before it is returned.
new_from_hashref HASHREF
Takes a reference to a hash representation of a change (such as is returned by "as_hash" or serialized json) and returns a new
Prophet::Change representation of it.
This method should be invoked as a class method, not an object method.
For example: "Prophet::Change->new_from_hashref($ref_to_change_hash)"
perl v5.10.1 2009-12-22 Prophet::Change(3pm)