Sponsored Content
Full Discussion: cp Command not finding files
Top Forums Shell Programming and Scripting cp Command not finding files Post 302593808 by chihung on Saturday 28th of January 2012 10:18:34 PM
Old 01-28-2012
Shell will not expand *.log if is within single quote. Below should do the job
Code:
cat /home/spinner0205/directory/directory/*.log > /home/spinner0205/otherdirectory/combined.txt

To avoid too long a command line when the shell expands, you may want to cd to that directory to do the copy:
Code:
cd /home/spinner0205/directory/directory
cat *.log > /home/spinner0205/otherdirectory/combined.txt

This User Gave Thanks to chihung For This Post:
 

10 More Discussions You Might Find Interesting

1. Solaris

finding files

Hi, I am trying to find all files ending in a particular file extension, ie all files ending with .pdf find / -name *.pdf But this doesnt seem to work, ie it doesnt find the files, is there a better way of doing this? I am using solaris 9 (4 Replies)
Discussion started by: frustrated1
4 Replies

2. Shell Programming and Scripting

finding duplicate files by size and finding pattern matching and its count

Hi, I have a challenging task,in which i have to find the duplicate files by its name and size,then i need to take anyone of the file.Then i need to open the file and find for more than one pattern and count of that pattern. Note:These are the samples of two files,but i can have more... (2 Replies)
Discussion started by: jerome Sukumar
2 Replies

3. Shell Programming and Scripting

Help with finding files

Ok, here it is: I have a system that logs certain files every day. Every time a new day dawns, the system will create a folder with the name that is respective to the day's date (12-06-07) and start putting new files in that folder. I have another system that needs these files. I am going to:... (1 Reply)
Discussion started by: bbbngowc
1 Replies

4. Shell Programming and Scripting

finding files

Hi guys just wondering if there is a way to scan the whoel file system and find files that have not been used over a number of days, using the script (5 Replies)
Discussion started by: musicmancanora
5 Replies

5. Shell Programming and Scripting

Need Help in Finding Files ::

Hi All , i am in progress of creating a script which should find a file a.txt , in a particular root directory . This should actually Search all the Sub directories and copy those files and FTP it to a server . Need a Input how to Proceed on this Thankyou guys (6 Replies)
Discussion started by: raghav1982
6 Replies

6. Shell Programming and Scripting

finding multiple files using find command

I am trying to search for 2 files using the find command as below find -name file1.txt -a -name file2.txt It doesn't give a result although the files exist in the folder, however when i try the following find -name file1.txt -o -name file2.txt It does give me the result. ./file2.txt... (4 Replies)
Discussion started by: vivek_damodaran
4 Replies

7. Shell Programming and Scripting

Finding older files using find command

Hi All, I want to find files which are older than 15 days. I have written a command as below, find -mtime +15 -print I understand (System date - last modified time of a file) should be greater than or equal to 15 days. This command returns files which are 15 days old.. i.e... (1 Reply)
Discussion started by: nshan
1 Replies

8. Shell Programming and Scripting

Finding files with wc -l results = 1 then moving the files to another folder

Hi guys can you please help me with a script to find files with one row/1 line of content then move the file to another directory my script below runs but nothing happens to the files....Alternatively Ca I get a script to find the *.csv files with "wc -1" results = 1 then create a list of those... (5 Replies)
Discussion started by: Dj Moi
5 Replies

9. UNIX for Dummies Questions & Answers

Finding the modified timestamp of files from the piped output of du command

Version Info +++++++++++++++ RHEL 5.4 Since ls command lists file sizes in Bytes which can be long I use du command like below. I have run the du command for the below files as shown below. But I want pipe this output to ls command just to see the modified timestamp for these files. ... (7 Replies)
Discussion started by: kraljic
7 Replies

10. OS X (Apple)

Finding a file with ls command

/volumes/NEWS_MASTERS/News Masters/AGA143 SCHWEIZER SETUP AM v2.mxf /volumes/NEWS_MASTERS/News Masters/AGA143 SCHWEIZER SETUP AM v3.mxf /volumes/NEWS_MASTERS/News Masters/AGA143 SCHWEIZER SETUP EM v2.mxf /volumes/NEWS_MASTERS/News Masters/AGA143 SCHWEIZER SETUP EM v3.mxf the above 4 files... (2 Replies)
Discussion started by: sbrady
2 Replies
spindate(1)							  [incr Widgets]						       spindate(1)

__________________________________________________________________________________________________________________________________________________

NAME
spindate - Create and manipulate time spinner widgets SYNOPSIS
spindate pathName ?options? INHERITANCE
itk::Widget <- Spindate STANDARD OPTIONS
background cursor foreground relief See the "options" manual entry for details on the standard options. ASSOCIATED OPTIONS
textBackground textFont See the "entryfield" manual entry for details on the above associated options. labelFont labelMargin See the "labeledwidget" manual entry for details on the above associated options. arrowOrient repeatDelay repeatInterval See the "spinner" manual entry for details on the above associated options. WIDGET-SPECIFIC OPTIONS Name: dateMargin Class: Margin Command-Line Switch: -datemargin Specifies the margin space between the month, day, and year spinners is any of the forms accpetable to Tcl_GetPixels. The default is 1 pixel. Name: dayLabel Class: Text Command-Line Switch: -daylabel Specifies the text of the label for the day spinner. The default is "Day". Name: dayOn Class: dayOn Command-Line Switch: -dayon Specifies whether or not to display the day spinner in any of the forms acceptable to Tcl_GetBoolean. The default is true. Name: dayWidth Class: Width Command-Line Switch: -daywidth Specifies the width of the day spinner in any of the forms acceptable to Tcl_GetPixels. The default is 3 pixels. Name: labelPos Class: Position Command-Line Switch: -labelpos Specifies the position of the label along the sides of the various spinners: n, e, s, or w. The default is w. Name: monthFormat Class: MonthFormat Command-Line Switch: -monthformat Specifies the format of month display, integer (1-12) or brief strings (Jan - Dec), or full strings (January - December). Name: monthLabel Class: Text Command-Line Switch: -monthlabel Specifies the text of the label for the month spinner. The default is "Month". Name: monthOn Class: monthOn Command-Line Switch: -monthon Specifies whether or not to display the month spinner in any of the forms acceptable to Tcl_GetBoolean. The default is true. Name: monthWidth Class: Width Command-Line Switch: -monthwidth Specifies the width of the month spinner in any of the forms acceptable to Tcl_GetPixels. The default is 3 pixels. Name: orient Class: Orient Command-Line Switch: -orient Specifies the orientation of the month, day, and year spinners: vertical or horizontal. The default is horizontal. Name: yearDigits Class: YearDigits Command-Line Switch: -yeardigits Specifies the number of digits to be displayed as the value for the year spinner. The valid values are 2 and 4. The default is 2. Name: yearLabel Class: Text Command-Line Switch: -yearlabel Specifies the text of the label for the year spinner. The default is "Year" Name: yearOn Class: yearOn Command-Line Switch: -yearon Specifies whether or not to display the year spinner in any of the forms acceptable to Tcl_GetBoolean. The default is true. Name: yearWidth Class: Width Command-Line Switch: -yearwidth Specifies the width of the year spinner in any of the forms acceptable to Tcl_GetPixels. The default is 3 pixels. __________________________________________________________________________________________________________________________________________________ DESCRIPTION
The spindate command creates a set of spinners for use in date value entry. The set includes an month, day, and year spinner widget. METHODS
The spindate command creates a new Tcl command whose name is pathName. This command may be used to invoke various operations on the widget. It has the following general form: pathName option ?arg arg ...? Option and the args determine the exact behavior of the command. The fol- lowing commands are possible for spindate widgets: WIDGET-SPECIFIC METHODS pathName cget option Returns the current value of the configuration option given by option. Option may have any of the values accepted by the spindate command. pathName configure ?option? ?value option value ...? Query or modify the configuration options of the widget. If no option is specified, returns a list describing all of the available options for pathName (see Tk_ConfigureInfo for information on the format of this list). If option is specified with no value, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no option is specified). If one or more option-value pairs are specified, then the command modifies the given widget option(s) to have the given value(s); in this case the command returns an empty string. Option may have any of the values accepted by the spindate command. pathName get ?format? Returns the current contents of the spindate widget in a format of string or as an integer clock value using the -string and -clicks format options respectively. The default is by string. Reference the clock command for more information on obtaining dates and their formats. pathName show date Changes the currently displayed date to be that of the date argument. The date may be specified either as a string, an integer clock value or the keyword "now". Reference the clock command for more information on obtaining dates and their formats. COMPONENTS
Name: month Class: Spinner The month spinner component is the month spinner of the date spinner. See the Spinner widget manual entry for details on the month component item. Name: day Class: Spinint The day spinner component is the day spinner of the date spinner. See the SpinInt widget manual entry for details on the day compo- nent item. Name: year Class: Spinint The year spinner component is the year spinner of the date spinner. See the SpinInt widget manual entry fordetails on the year com- ponent item. EXAMPLE
spindate .sd pack .sd -padx 10 -pady 10 AUTHOR
Sue Yockey Mark L. Ulferts KEYWORDS
spindate, spinint, spinner, entryfield, entry, widget Tk spindate(1)
All times are GMT -4. The time now is 02:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy