10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
how do i change the following to show me what the date was 7 days ago?
date +%Y-%m-%d (1 Reply)
Discussion started by: SkySmart
1 Replies
2. Shell Programming and Scripting
How can i make the date command output yesterday's date, current date and the date 4 days ago, in the following format:
2012-10-03
code:
date +% ???? (3 Replies)
Discussion started by: SkySmart
3 Replies
3. Shell Programming and Scripting
I have a file such that
List : a, b, c, d
I want to list this as
List
a
b
c
d
however the trick is the number of arguments in the list is varies. There might be 0-7 variables .
Can you help me?
Please use code tags when posting data and code samples! (5 Replies)
Discussion started by: ozum
5 Replies
4. UNIX for Dummies Questions & Answers
I have a list of dates in the following format: mm/dd/yyyy and want to change these to the MySQL standard format: yyyy-mm-dd.
The dates in the original file may or may not be zero padded, so April is sometimes "04" and other times simply "4".
This is what I use to change the format:
sed -i '' -e... (2 Replies)
Discussion started by: figaro
2 Replies
5. Shell Programming and Scripting
Hi All,
i need to change the filename extension. For simplicity, we can assume that the extension after '.' is 3 characters only... but the filenames can vary.
eg. changing from abc.doc to abc.dxs
can i have a oneline command to achieve this (3 Replies)
Discussion started by: Hiso
3 Replies
6. Shell Programming and Scripting
i have an variable mydate=2008Nov07
i want o/p as in variable mymonth=11 (i.e nov comes on 11 number month)
i want some command to do this for any month without using any loop.
plz help me (1 Reply)
Discussion started by: RahulJoshi
1 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I would like to get todays moth and write it in this format: _06_
Any ideas? (7 Replies)
Discussion started by: marringi
7 Replies
8. Shell Programming and Scripting
Dear Experts,
Currently my script is gereating the output like this as mentioned below.
8718,8718,0,8777
7450,7450,0,7483
5063,5063,0,5091
3840,3840,0,3855
3129,3129,0,3142
2400,2400,0,2419
2597,2597,0,2604
3055,3055,0,3078
4249,4249,0,4266
4927,4927,0,4957
8920,8920,0,8978... (4 Replies)
Discussion started by: shary
4 Replies
9. Shell Programming and Scripting
Hi,
Is there any way to change one date format to another ?? I mean I have a file having dates in the format (Thu Sep 29 2005) ... and i wud like to change these to YYYYMMDD format .. is there any command which does so ?? Or anything like enum which we have in C ??
Thanks in advance,
... (5 Replies)
Discussion started by: Sabari Nath S
5 Replies
10. Shell Programming and Scripting
I have awhole bunch of files and I want to edit stringA with stringB without changing the filename.
I have tried the following sed commands:
sed "s/stringA/stringB/g" *
This will print the correct results but does not actually save it with the new content of the file. when I do a cat on... (5 Replies)
Discussion started by: jjoves
5 Replies