Sponsored Content
Full Discussion: Need Help
Top Forums UNIX for Dummies Questions & Answers Need Help Post 302532444 by yazu on Tuesday 21st of June 2011 02:49:59 AM
Old 06-21-2011
Code:
% cat testfile
I want to append the date at the end of each line.
I have tried the following, but neither is working.

% while read line; do printf "%s,%s\n" "$line" $(date '+%d-%m-%Y'); done <testfile
I want to append the date at the end of each line.,21-06-2011
I have tried the following, but neither is working.,21-06-2011

% var=$(date '+%d-%m-%Y')

% while read line; do printf "%s,%s\n" "$line" "$var"; done <testfile >outputfile

% cat outputfile
I want to append the date at the end of each line.,21-06-2011
I have tried the following, but neither is working.,21-06-2011

This User Gave Thanks to yazu For This Post:
 
ttk::frame(n)							 Tk Themed Widget						     ttk::frame(n)

__________________________________________________________________________________________________________________________________________________

NAME
ttk::frame - Simple container widget SYNOPSIS
ttk::frame pathName ?options? _________________________________________________________________ DESCRIPTION
A ttk::frame widget is a container, used to group other widgets together. STANDARD OPTIONS
-class -cursor -takefocus -style See the ttk_widget manual entry for details on the standard options. WIDGET-SPECIFIC OPTIONS [-borderwidth borderWidth] The desired width of the widget border. Defaults to 0. [-relief relief] One of the standard Tk border styles: flat, groove, raised, ridge, solid, or sunken. Defaults to flat. [-padding padding] Additional padding to include inside the border. [-width width] If specified, the widget's requested width in pixels. [-height height] If specified, the widget's requested height in pix- els. WIDGET COMMAND
Supports the standard widget commands configure, cget, identify, instate, and state; see ttk::widget(n). NOTES
Note that if the pack, grid, or other geometry managers are used to manage the children of the frame, by the GM's requested size will nor- mally take precedence over the frame widget's -width and -height options. pack propagate and grid propagate can be used to change this. SEE ALSO
ttk::widget(n), ttk::labelframe(n), frame(n) KEYWORDS
widget, frame, container Tk 8.5 ttk::frame(n)
All times are GMT -4. The time now is 02:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy