11-15-2012
Thanks Alister! I had briefly thought about using the cal output for day names, but my friend demanded FULL names!
I did not think about having awk handle a names list, with the split function. I do like that, however since I have to use full names, that would really increase the length of the line, not that there is any imposed limit other than the system line size limit. But a shorter line will help prevent me from losing on a typo.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
I would like to calculate the day of the week using a supplied date.
i.e. 20011012 = Day 5.
Any ideas?
Many thanks,
ligs (4 Replies)
Discussion started by: ligs
4 Replies
2. Programming
Hi ,
I am working at Unix system,using c lang.
I need c fun which return the day of the week .
For example :
0- Sunday.
1- Monday.
....
10x. (4 Replies)
Discussion started by: kamil
4 Replies
3. Shell Programming and Scripting
I need o get yesterday's day of week but im not exactly sure. the actual name is what i want. I can do it with numbers but im not sure with words. (3 Replies)
Discussion started by: rcunn87
3 Replies
4. UNIX for Dummies Questions & Answers
How to find the Day of the Week of the given Date using perl?
If I have a date in YYY--MM-DD format, how to find the DOW? Based on that, I need to find the following sunday.
Pls help. (5 Replies)
Discussion started by: deepakwins
5 Replies
5. HP-UX
Hi All,
I have date in string format 'YYYY-MM-DD'. I want to know day of the week for this date.
Example. For '2005-08-21' my script should return '0' or Sunday
For '2005-08-22' it should return '1' or Monday
I want piece of code for HP-UX korn shell.
Appreciate reply on this. (5 Replies)
Discussion started by: vpapaiya
5 Replies
6. UNIX and Linux Applications
Hi All,
I want to find a day of week for the Linux system.
can some one help me on this..
Thanks in advance,
Raji. (2 Replies)
Discussion started by: rajinavaneethan
2 Replies
7. Shell Programming and Scripting
Hi all, I am trying to get dow from cal using below script
#! /bin/bash
YEAR=`echo $1 | cut -c 1-4`
MONTH=`echo $1 | cut -c 5-6`
DAY=`echo $1 | cut -c 7-8`
for i in 1 2 3 4 5 6 7
do
dayofweek=`cal $MONTH $YEAR | awk '$i == $DAY {printf("%s","$i")}'`
echo $dayofweek... (4 Replies)
Discussion started by: bzylg
4 Replies
8. UNIX for Dummies Questions & Answers
I have been volunteered by my boss to be the sysadmin for our production redhat server. He asked me to tighten the security to avoid mishaps like "rm -f *" that occured not long ago.
Right now, we have 53 users sudo-ing into the machine and it is an audit nightmare. I am wondering if it... (15 Replies)
Discussion started by: alan
15 Replies
9. Shell Programming and Scripting
Hi everyone,
I have a shell script that merges many files down in to one, then removes unwanted lines, that part is working fine:
#!/bin/bash
FILES=/home/pi/temp/qbd/*
for f in $FILES
do
echo "Processing $f file..."
# take action on each file. $f store current file name
echo... (9 Replies)
Discussion started by: gjws
9 Replies
10. Shell Programming and Scripting
Hi All,
I have the below requirement ,
if i give the week number for ex 41 i need to get the date for Monday and thursday for this given week. my expected output is 13/10/2014 (Monday's date) and 16/10/2014 (Thursday's date)
I am using GNU LINUX .
Pls help me with your thoughts.
Thanks in... (7 Replies)
Discussion started by: mohanalakshmi
7 Replies
LEARN ABOUT LINUX
dd-list
DD-LIST(1) General Commands Manual DD-LIST(1)
NAME
dd-list - nicely list .deb packages and their maintainers
SYNOPSIS
dd-list [-hiusV] [--help] [--stdin] [--sources Sources_file] [--dctrl] [--version] [--uploaders] [package ...]
DESCRIPTION
dd-list produces nicely formatted lists of Debian (.deb) packages and their maintainers.
Input is a list of source or binary package names on the command line (or the standard input if --stdin is given). Output is a list of the
following format, where package names are source packages by default:
J. Random Developer <jrandom@debian.org>
j-random-package
j-random-other
Diana Hacker <diana@example.org>
fun-package
more-fun-package
This is useful when you want, for example, to produce a list of packages that need to attention from their maintainers, e.g., to be rebuilt
when a library version transition happens.
OPTIONS
-h, --help
Print brief help message.
-i, --stdin
Read package names from the standard input, instead of taking them from the command line. Package names are whitespace delimited.
-d, --dctrl
Read package list from standard input in the format of a Debian package control file. This includes the status file, or output of
apt-cache. This is the fastest way to use dd-list, as it uses the maintainer information from the input instead of looking up the
maintainer of each listed package.
If no Source: line is given, the Package: name is used for output, which might be a binary package name.
-s, --sources Sources_file
Read package information from the specified Sources_files. This can be given multiple times.
If no Sources_files are specified, any files matching /var/lib/apt/lists/*_source_Sources will be used.
-u, --uploaders
Also list developers who are named as uploaders of packages, not only the maintainers; this is the default behaviour, use --nou-
ploaders to prevent it. Uploaders are indicated with "(U)" appended to the package name.
-nou, --nouploaders
Only list package Maintainers, do not list Uploaders.
-b, --print-binary
Use binary package names in the output instead of source package names (has no effect with --dctrl if the Package: line contains
source package names).
-V, --version
Print the version.
AUTHOR
Lars Wirzenius <liw@iki.fi>
Joey Hess <joeyh@debian.org>
Debian 2011-10-27 DD-LIST(1)