Home Man
Search
Today's Posts
Register

BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

How can I apply 'date' command to specific columns, in a BASH script?

Tags
awk, bash, date, format, script, shell scripts

👤 Login to reply

 
Thread Tools Search this Thread
# 8  
Old 06-15-2018
If necessary, you can adapt above to your locale settings:

Code:
awk '
BEGIN   {"locale mon" | getline TMP
         for (i=split(TMP, MNUM, ";"); i; i--)  MON[MNUM[i]]=i
        }                          
'


Last edited by RudiC; 06-15-2018 at 03:34 AM..
👤 Login to reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Bash to select text and apply it to a selected file in bash cmccabe Shell Programming and Scripting 4 09-29-2016 05:36 PM
Script to check for a specific number of columns in a file chatwithsaurav Shell Programming and Scripting 3 05-27-2015 06:07 AM
Perl script to accept specific columns from excel omkar.jadhav Shell Programming and Scripting 4 03-20-2015 12:36 PM
Read Two Columns - Apply Condition on Six other columns jacobs.smith Shell Programming and Scripting 2 01-02-2015 05:26 PM
Want to get list of Linux commands used on specific date through HISTORY command karthick nath UNIX for Dummies Questions & Answers 3 01-17-2014 08:42 AM
Need to view command in history for specific date scriptor Shell Programming and Scripting 1 10-07-2013 08:26 AM
find command to filter specific type of files older than certain date. msathees Shell Programming and Scripting 2 05-08-2012 06:37 AM
script for get lines with specific date michlix Shell Programming and Scripting 7 12-21-2011 01:32 AM
Perl script to get info from specific rows & columns (.xls file) Yohannita Shell Programming and Scripting 0 10-04-2011 01:59 PM
shell script that will run for a specific date sonja Shell Programming and Scripting 7 07-27-2011 05:04 AM


All times are GMT -4. The time now is 12:53 PM.

Unix & Linux Forums Content Copyright©1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password