Sponsored Content
Full Discussion: Change Date Input :-
Top Forums Shell Programming and Scripting Change Date Input :- Post 302970413 by RudiC on Wednesday 6th of April 2016 11:17:46 AM
Old 04-06-2016
shell approach:
Code:
. file             # source input file to set all variables
printf "List="; for ((i=0; i<Z1; i++)); do T=$(((23 + X1 - i) % 24 + 1)); [ $T = 24 ] && ((Y1--)); printf "%02d " $T; done; printf "\nY1=%s\n" $Y1
List=02 01 24 23 
Y1=20160404

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Move A File With Same Date,don't Change The Desitination Dir Date

Assume, I created one file three years back and I like to move the file to some other directory with the old date (Creation date)? Is it possible? Explain? (1 Reply)
Discussion started by: jee.ku2
1 Replies

2. Shell Programming and Scripting

change standard input ?

Dear... I have a scrpit that contains multiple read command.... when I run the script I have to enter 3 variables so that I can get the output.. but, I dont want to put those 3 inputs manually every time... I want to make a shell that reads the 3 inputs from a file. the script name is... (4 Replies)
Discussion started by: yahyaaa
4 Replies

3. Shell Programming and Scripting

Get date range between 2 date input

Hi Experts, I have files name report_20090416 report_20090417 report_20090418 report_20090420 report_20090421 I have 2 input from user From Date: 20090417 To Date: 20090420 and I need to grep only those line in between. Output should be report_20090417 report_20090418... (3 Replies)
Discussion started by: tanit
3 Replies

4. Debian

change the input method .

i open the google search and want to search something, now , i want to change the input method ,but i don't know how to change the default input. the default is english, how to exchange with others. thanks in advance (0 Replies)
Discussion started by: runeveryday
0 Replies

5. Shell Programming and Scripting

Change ip from user input

I have 2 Servers IP: 1)10.1.1.27 2)10.1.2.27 #more /etc/postfix/transport Domain.com smtp:ServerIP Now i want to change the smtp:ServerIP according to user interaction: (2 Replies)
Discussion started by: telnor
2 Replies

6. Shell Programming and Scripting

Change the content of files but not change the date

I have 100 files in a directory , all the files have a word "error" and they are created in different date . Now I would like to change the word from "error" to "warning" , and keep the date of the files ( that means do not change the file creation date after change the word ) , can advise what can... (0 Replies)
Discussion started by: ust3
0 Replies

7. Shell Programming and Scripting

Change the content of files but not change the date

I have 100 files in a directory , all the files have a word "error" and they are created in different date . Now I would like to change the word from "error" to "warning" , and keep the date of the files ( that means do not change the file creation date after change the word ) , can advise what can... (7 Replies)
Discussion started by: ust3
7 Replies

8. Shell Programming and Scripting

Get yesterdays Date for Input Date

Hi, I have been trying to get the yesterdays date for the Input date I pass. I know how to do for the current timestamp but how to do for the input date. Is there any way I can convert to epoch time and do manipulations and back to human readable date? Please help Thanks ... (1 Reply)
Discussion started by: abhi1988sri
1 Replies

9. Shell Programming and Scripting

Script to get previous date for the given input date..

hi all, need a script or command to get the previous date for the given input date... like in my script i will pass date as input parameter like 2014-12-01 and i want the output as previous date.. ie.. 2014-11-30 (2 Replies)
Discussion started by: hemanthsaikumar
2 Replies

10. UNIX for Beginners Questions & Answers

How to change existing date to current date in a filename?

Suppose i have a list of files in a directory as mentioned below 1. Shankar_04152019_ny.txt 2. Gopi_shan_03122019_mi.txt 3. Siva_mourya_02242019_nd.txt .. . . . . 1000 . Jiva_surya_02282019_nd.txt query : At one shot i want to modify the above all filenames present in one path with... (4 Replies)
Discussion started by: Shankar455
4 Replies
ASN2FF(1)						     NCBI Tools User's Manual							 ASN2FF(1)

NAME
asn2ff - convert ASN.1 biological data to a flat format (old version) SYNOPSIS
asn2ff [-] [-A X] [-B X] [-C] [-G] [-L F] [-M] [-R] [-V F] [-a filename] [-b] [-d] [-e] [-f b/p/e/s/x/z] [-g] [-h F] [-k F] [-l filename] [-m r/d/s/c/k/l/e/p] [-n F] [-o filename] [-p F] [-q] [-r filename] [-s] [-t] [-v F] [-w] [-y] [-z] DESCRIPTION
asn2ff converts descriptions of biological sequences from NCBI's ASN.1 format to one of several flat-file formats. This program is built around a deprecated interface; please use asn2gb(1) instead. OPTIONS
A summary of options is included below. - Print usage message -A X Show region starting at X (default is 0) -B X Show region ending at X (default is last position) -C Show Bankit comments -G Output is one top bioseq only in genome view -L F Use old (pre-Genbank 127.0) LOCUS line format -M Output is map bioseqs only -R For GenBank Release -V F Don't use VERSION -a filename Filename for ASN.1 input (default is stdin) -b Input asnfile in binary mode -d Use SeqMgr indexing -e Input is a Seq-entry -f b/p/e/s/x/z Output Format: b GenBank (default) p GenPept e EMBL s PseudoEMBL x GenBankSelect z EMBLPEPT -g Show gi numbers -h F Hide sequence -k F Don't use complex sets (phy-set,mut-set, pop-set) -l filename Log errors to filename -m r/d/s/c/k/l/e/p Output mode: r release (default) d dump s Sequin c Chromoscope k dir-sub-debug l dir-sub e revise p partial report -n F Strict gene_binding -o filename Output Filename (default is stdout) -p F Omit new gene features -q Output is one top bioseq only -r filename Output error logfile (default is stderr) -s Input is a Seq-submit -t Show verbose message text -v F Suppress error messages -w Use HTML output format -y Print help format only -z New algorithm for orgnames AUTHOR
The National Center for Biotechnology Information. SEE ALSO
asn2all(1), asn2asn(1), asn2fsa(1), asn2gb(1), asn2xml(1), asndhuff(1). NCBI
2005-05-16 ASN2FF(1)
All times are GMT -4. The time now is 10:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy