Sponsored Content
Top Forums Shell Programming and Scripting Get file name which include the current date Post 302726929 by RudiC on Monday 5th of November 2012 11:01:35 AM
Old 11-05-2012
This seems like there's a <carriage return> character in N, as it prints A20121105, returns to char #1, and prints 01.DC. Try echo $N|od -tx1 and publish the result here.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to give current date in file name?

:) I want to rename a file by giving the actual date as a file name. Is there a command for this? For example file is this: a.txt I want to copy it with a command like this: a20050510.txt (3 Replies)
Discussion started by: simurg11
3 Replies

2. Shell Programming and Scripting

File date vs Current date

I am a newbie in shell scripting, hope you can advice how can I compare the date/time of file extracted from 'll' and current system date/time. I have done the following: ll -rt > $FILE_AGE_LOG FILE_DATETIME=`more $FILE_AGE_LOG | head -02 | cut -c 45-57` It returns 'May 4 19:11'. If I... (4 Replies)
Discussion started by: trexlim
4 Replies

3. Shell Programming and Scripting

Perl: Extracting date from file name and comparing with current date

I need to extract the date part from the file name (20080221 in this ex) and compare it with the current date and delete it, if it is a past date. $file = exp_ABCD4_T-2584780_upto_20080221.dmp.Z really appreciate any help. thanks mkneni (4 Replies)
Discussion started by: MKNENI
4 Replies

4. Shell Programming and Scripting

Help setting PS1 prompt to include current time

Hi, I'm using the ksh shell and I'd like to set my PS1 prompt on an AIX system to include, amongst ther things, the current time. This was my best effort: export PS1=$(date -u +%R)'${ME}:${PWD}# ' but this only sets the time to the value when PS1 is defined and the time value doesn't... (4 Replies)
Discussion started by: m223464
4 Replies

5. HP-UX

How do I include header files outside of my current directory

I am trying to compile a file called PPFormatageMUT.c in which I have included header file which are at some other location but the point is that while compiling the file, it is throwing error saying that error : no such file or directory source code location:... (1 Reply)
Discussion started by: ezee
1 Replies

6. UNIX for Dummies Questions & Answers

Delete a row from a file if one column containing a date is greater than the current system date

Hello gurus, I am hoping someone can help me with the required code/script to make this work. I have the following file with records starting at line 4: NETW~US60~000000000013220694~002~~IT~USD~2.24~20110201~99991231~01~01~20101104~... (4 Replies)
Discussion started by: chumsky
4 Replies

7. Shell Programming and Scripting

Find big file include current date

Hi, I want to put script. The script is to show file that larger than 100MB include current date (eg: today date). After find the date, it will compress list file and split the tar.gz file. Any idea how to do that? This bash script will run auto everyday. It's will transfer will to other... (12 Replies)
Discussion started by: mzainal
12 Replies

8. Shell Programming and Scripting

Subtract a file's modification date with current date

SunOS -s 5.10 Generic_147440-04 sun4u sparc SUNW,SPARC-Enterprise Hi, In a folder, there are files. I have a script which reads the current date and subtract the modification date of each file. How do I achieve this? Regards, Joe (2 Replies)
Discussion started by: roshanbi
2 Replies

9. UNIX for Beginners Questions & Answers

“sed” replace date in text file with current date

We want to call a parameter file (.txt) where my application read dynamic values when the job is triggered, one of such values are below: abc.txt ------------------ Code: line1 line2 line3 $$EDWS_DATE_INSERT=08-27-2019 line4 $$EDWS_PREV_DATE_INSERT=08-26-2019 I am trying to write a... (3 Replies)
Discussion started by: pradeepp
3 Replies

10. UNIX for Beginners Questions & Answers

Replace date in file every day with current date

I Have text like XXX_20190908.csv.gz need to replace Only date in this format with current date every day Thanks! (1 Reply)
Discussion started by: yamasani1991
1 Replies
fvwm-config(1)							   Fvwm Modules 						    fvwm-config(1)

NAME
fvwm-config - query an existing fvwm installation SYNOPSIS
fvwm-config [--help] [--version] [--info] [--prefix] [--exec-prefix] [--bindir] [--datadir] [--libexecdir] [--sysconfdir] [--mandir] [--localedir] [--fvwm-moduledir] [--fvwm-datadir] [--fvwm-perllibdir] [--default-imagepath] [--default-userdir] [--fvwm-exe] [--supports] [--supports-<feature>] [--is-final] [--is-stable] [--release-date] DESCRIPTION
fvwm-config is a shell script that provides an information about the fvwm version, installation directories, built-in paths and supported features. OPTIONS
fvwm-config prints to the standard output in all options. Both short and long GNU-like option names may be used. -h --help -? prints the short usage -v --version -V prints the version -i --info prints the full info page -P --prefix prints the installation prefix -E --exec-prefix prints the installation exec-prefix -B --bindir prints the installation bindir -D --datadir prints the installation datadir -L --libexecdir prints the installation libexecdir -S --sysconfdir prints the installation sysconfdir -M --mandir prints the installation mandir -O --localedir prints the installation localedir -m --fvwm-moduledir prints FVWM_MODULEDIR, where the modules are installed -d --fvwm-datadir prints FVWM_DATADIR, where the system wide configs are installed -p --fvwm-perllibdir prints FVWM_PERLLIBDIR, where the perl library is installed -I --default-imagepath prints the built-in ImagePath -U --default-userdir prints the default FVWM_USERDIR, note: $HOME is not expanded -e --fvwm-exe prints the fvwm executable name (in bindir) -s --supports lists all supported features, one per line --supports-<feature> prints nothing, returns: 0 if the <feature> is supported, 100 if not, 200 if unknown. All or supported feature names may be found using --info or --supports respectively. --is-final prints "yes" for final releases and "no" for cvs snapshots --is-stable prints "yes" for the stable branch and "no" otherwise --release-date prints the release date if the release is final USAGE
Here are some real life usages. Checks for xft support: if fvwm-config --supports-xft; then echo 1; else echo 0; fi fvwm-themes package checks for the correct fvwm version installed using: fvwm-config --version and tries to use the same installation directories: fvwm-config --bindir --mandir --fvwm-datadir A way to find the full path to the fvwm executable: echo `fvwm-config --bindir`/`fvwm-config --fvwm-exe` A way to start modules in perl: use lib `fvwm-config -p | tr -d '0`; use FVWM::Module; For a more human readable output, try: fvwm-config --info COPYING
fvwm-config is a part of fvwm package and distributed by the same terms, see GNU GPL. AUTHOR
Mikhael Goikhman <migo@homemail.com> 3rd Berkeley Distribution 09 May 2010 (2.5.30) fvwm-config(1)
All times are GMT -4. The time now is 04:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy