10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I have file with number status and date1 and date1 field,
want add a column today between column date1 and date2.
file1.txt
number status date1 date2
===== ==== === =====
34567 open 27/06/13 28/06/13
45678 open 27/06/13 28/06/13
43567 open 27/06/13 28/06/13 ... (1 Reply)
Discussion started by: vijay_rajni
1 Replies
2. Shell Programming and Scripting
Hi,
One of my Unix scripts needs to look for files coming in on Fridays. This script runs on Mondays. $date +"%y%m%d" will give me today's date. How can I get previous Friday's date.. can I do "today's date minus 3 days" to get Friday's date? If not, then any other way?? Name of the files is... (4 Replies)
Discussion started by: juzz4fun
4 Replies
3. Shell Programming and Scripting
Hello,
I have a file like this:
2012112920121130
12345620121130msABowwiqiq
34477420121129amABamauee
e7748420121130ehABeheheei
in case the content of the file has the date of yesterday within the lines containing pattern AB this should be replaced by the current date. But if I use... (3 Replies)
Discussion started by: Lilu_CK
3 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
I was trying to get the date in format "Feb2" I tried
option "e" giving me a padded space and getting the result as "Feb 2". Though its working fine for dates 10 to 31.
Please suggest me how to get rid of this space before date.
Thanks
Olivia (4 Replies)
Discussion started by: Olivia
4 Replies
5. Shell Programming and Scripting
Hi Everyone,
we are running rsync with --backup mode, Are there any rsync options to remove backup folders on successful deployment?
Thanks in adv. (0 Replies)
Discussion started by: MVEERA
0 Replies
6. Shell Programming and Scripting
I need to get the current date off a remote site, such as Google or Yahoo.
Does anyone know how to use the wget command on a Solaris 10 system to do this? I recall a long time ago, where using "wget" will get a bunch of info off a site, and then, you can extract the date from all of that info.
... (6 Replies)
Discussion started by: newbie09
6 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I am trying to show today's date and time in a better format than ‘date' (Using positional parameters). I found a command mktime and am wondering if this is the best command to use or will this also show me the time elapse since 1/30/70? Any help would be greatly appreciated, Thanks... (3 Replies)
Discussion started by: citizencro
3 Replies
8. HP-UX
Hi Friends,
I'm new to unix, I have the below script which takes regular backup. Now if fbackup fails I get the below messages in my log as
fbackup(3047): could not open output file /dev/rmt/0m
fbackup(3019): would you like to enter a new output file?
fbackup(3004): writer aborting... (4 Replies)
Discussion started by: avik.nandi
4 Replies
9. Shell Programming and Scripting
Hiii,
Here is the part o fmy script-
for file in $FileList
do
if ];
then
echo "Skips $file file. It is todays file"
if ];then
cp $file $BackupLocation 2>/dev/null
... (3 Replies)
Discussion started by: namishtiwari
3 Replies
10. Shell Programming and Scripting
Hi,
I am facing one problem with date command.Actually I want to use this command to get the last month,not the current month..OK,I can do current month - 1 and give special condition for january,But this time i need last month as strings like January,februaury,march etc...
There is option... (5 Replies)
Discussion started by: nikunj
5 Replies