Sponsored Content
Top Forums UNIX for Dummies Questions & Answers using gsed with cp to sort files in directory - every N file copy to new place Post 302563982 by dgoss on Wednesday 12th of October 2011 02:22:54 PM
Old 10-12-2011
Thank you so much Corona688 - that really helped me get moving this morning. Used your second example with perfect results.
 

10 More Discussions You Might Find Interesting

1. Solaris

Copy files from the file to another directory

I have created a file that has list of all the files I want to copy into another directory.Is there a way to do it? Thanks In advance (4 Replies)
Discussion started by: shreethik
4 Replies

2. AIX

loop through the directory for files and sort by date and process the first file

hello i have a requirement where i have a direcotry in which i get files in the format STOCKS.20080114.dat STOCKS.20080115.dat STOCKS.20080117.dat STOCKS.20080118.dat i need to loop through the directory and sort by create date descending order and i need to process the first file. ... (1 Reply)
Discussion started by: dsdev_123
1 Replies

3. Solaris

What is the best way to copy data from place to another place?

Dear Gurus, I need you to advice or suggestion about the best solution to copy data around 200-300G from serverA(location A) to serverB(location B). Normally, I will share folder and then copy but it takes too long time(about 2 days). Do you have any suggestion or which way should be... (9 Replies)
Discussion started by: unitipon
9 Replies

4. UNIX for Dummies Questions & Answers

Copy dir/file from one place to another.

Hello all. I'm not getting the hang of Paths. I have a dir w/files that I want to copy to another dir. Right now I am in the "source" directory. I want to copy it to Ch7. "cp -r source Ch7". Ch7 was already created. 1st msg.: cannot stat `source`: No such file or dir. I typed pwd & got... (3 Replies)
Discussion started by: Ccccc
3 Replies

5. UNIX for Dummies Questions & Answers

regularly copy files to different directory with different file extentions

I have a NAS and I upload my videos to it from time to time. the video format is 3gp but my media player PBO could only play avi. I want to copy these files to different directory and change the extention from 3gp to avi. (yes I want to keep the original version and create a duplicate version with... (0 Replies)
Discussion started by: momentum
0 Replies

6. Shell Programming and Scripting

Copy files listed in text file to new directory

I am trying to write a script that will copy all file listed in a text file (100s of file names) to a new directory Assume script will run with main as current working directory and I know how many files/lines will be in List.txt Im trying to work up a test script using this model Contents of... (2 Replies)
Discussion started by: IAmTheGrass
2 Replies

7. Shell Programming and Scripting

Copy the files in directory and sub folders as it is to another directory.

How to copy files from one directory to another directory with the subfolders copied. If i have folder1/sub1/sub2/* it needs to copy files to folder2/sub1/sub2/*. I do not want to create sub folders in folder2. Can copy command create them automatically? I tried cp -a and cp -R but did... (4 Replies)
Discussion started by: santosh2626
4 Replies

8. UNIX for Dummies Questions & Answers

How to search for a file having a particular character in a particular place in a directory.?

Hi Guys, I want to search for a specific file in a directory which have a "b" letter as the 3rd character in the name of the file. For Example : /abc/efg/ldbjfblkj.sh /abc/efg/erublkd.sh /abc/efg/eibueora.sh /abc/efg/kfvnmnb.sh Since we have 2 files with "b" as a 3rd character in... (5 Replies)
Discussion started by: Pramod_009
5 Replies

9. Shell Programming and Scripting

Search for a file in all directories and place the file in that directory

Hi All, Daily I am getting the updated file. I have to search for this file in all directories and sub directories. If the file existed in a particular directory then move this updated file to that particular directory. If the file is not existed in any of the directories then place this... (4 Replies)
Discussion started by: ROCK_PLSQL
4 Replies

10. UNIX for Beginners Questions & Answers

How do I custom sort the files in a directory using the filenames in a text file.?

Hi all, (5 Replies)
Discussion started by: KMusunuru
5 Replies
curs_inswstr(3) 					     Library Functions Manual						   curs_inswstr(3)

NAME
curs_inswstr, inswstr, insnwstr, winswstr, winsnwstr, mvinswstr, mvinsnwstr, mvwinswstr, mvwinsnwstr - Insert a wchar_t string before the character under the cursor in a Curses window SYNOPSIS
#include <curses.h> int inswstr( wchar_t *wstr ); int insnwstr( wchar_t *wstr, int n ); int winswstr( WINDOW *win, wchar_t *wstr ); int winsnwstr( WINDOW *win, wchar_t *wstr, int n ); int mvinswstr( int y, int x, wchar_t *wstr ); int mvinsnwstr( int y, int x, wchar_t *wstr, int n ); int mvwinswstr( WINDOW *win, int y, int x, wchar_t *wstr ); int mvwinsnwstr( WINDOW *win, int y, int x, wchar_t *wstr, int n ); LIBRARY
Curses Library (libcurses) DESCRIPTION
These routines insert a wchar_t character string (as many wchar_t characters as will fit on the line) before the character under the cur- sor. All characters to the right of the cursor are moved to the right, with the possibility of the rightmost characters on the line being lost. The routines do not change the cursor position after moving to y, x, if specified. (This does not imply use of the hardware insert character feature.) The four routines with n as the last argument insert at most n wchar_t characters. If n<=0, then the routines insert the entire string. If a character in wstr is a tab, newline, carriage return, or backspace, the cursor is moved appropriately within the window. A newline also results in clrtoeol before moving. Tabs are considered to be at every eighth column. If a character in wstr is another control char- acter, it is drawn in the ^X notation. Calling winch after adding a control character (and moving to it, if necessary) does not return the control character, but instead returns the representation of the control character. NOTES
The header file <curses.h> automatically includes the header file <stdio.h>. Note that all but winsnwstr may be macros. The routines described on this reference page are among the MNLS Curses functions that are not included in the X/Open Curses CAE specifica- tion. MNLS routines are supported only for backward compatibility reasons. Use the *ins_wstr and *ins_nwstr functions in new applications (see curs_ins_wstr(3)). RETURN VALUES
All routines return the integer ERR upon failure and an integer value other than ERR upon successful completion. SEE ALSO
Functions: curses(3), curs_clear(3), curs_ins_wstr(3), curs_inwch(3) curs_inswstr(3)
All times are GMT -4. The time now is 01:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy