10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file with the following structure
"VATTENFALL GLOBAL" "Vattenfall Tray"
"BARCLAYS BANK LONDON" "Capula"
"P1 AGEAS GLOBAL COMPANY" "AAC - Optiver"
The requirement is like this
1) Take 2 input... (16 Replies)
Discussion started by: sudeep.id
2. UNIX for Dummies Questions & Answers
I have a unix file which is ceated with variable name, for example:
FIRST_FILE_3456 and next time it will be FIRST_FILE_3457 and so on.
I need to rename this file like PREV_FIRST_FILE_XXXX where XXXX is the variable part of the file FOR Example 3456 or 3457, etc.
Please help to... (4 Replies)
Discussion started by: Mohammad T Khan
3. Shell Programming and Scripting
I am writing this script to find all files in a directory and print the filepath, date and file size.
However, it doesnt seem to preserve double spacing file with this script. I would appreciate a pointer or 2 to get around this -
printf("%s ",$i) is printing the filepath, what do... (3 Replies)
Discussion started by: nightrider
4. Shell Programming and Scripting
While executing a script, I am not being able to able to create a file as the file with the same name already exists. That existing file is not getting overwritten as I am not the owner of the file. So, Neither am I able to rename the file nor delete the existing file, so as to get my file created.... (2 Replies)
Discussion started by: Haimanti
5. Shell Programming and Scripting
Please help !
i ham having 300 file with E.G. PMC1_4567.arc in seq. like PMC1_4568.arc,PMC1_4569.arc ...n and so on.. i want all those file to be rename like PMC_4567.arc ,PMC_4568.arc .. mean i want to remove 1 from first file name ..
pls help.. (6 Replies)
Discussion started by: moon_22
6. UNIX for Advanced & Expert Users
I am into automation work. Is there any UNIX command to rename a file in a zipped folder, without unzipping it..???
Thanks in advance.. (1 Reply)
Discussion started by: Victoria.Sam
7. Shell Programming and Scripting
I need to be able to look for the last file in a dirctory in UNIX,
the file satrt with EFT
so this work file=$(ls -tr $EFT*.dat | tail -1) # Select the latest file
my last file is EFT1234.dat
then I need to be able to get a file that I just ftp and rename with this
name EFT1234.dat but... (5 Replies)
Discussion started by: rechever
8. UNIX for Advanced & Expert Users
On AIX 5.3, we have a monitor program that reads the log file and searching for a certain string pattern that we define(say "transactionException"), if it sees it then it will raise an alert by sending an email.
Because the log file XXX.log is rolling into XXX.log.0, XXX.log.1,... (2 Replies)
Discussion started by: TheGunMan
I've been searching posts to find a solution to what I'm trying to do, but I've have NOT found anything yet.
I have a file (file1) with 300K columns and 1411 rows, the columns don't have a column no. header (No header at all) and I'm trying to fetch the information from specific columns.... (3 Replies)
Discussion started by: sogi
10. Shell Programming and Scripting
I want to copy and rename this as 2008-12-02.jpg
I tried this copy File.jpg date '%y-%m-%d-%H:%M:%S'.jpg
This doesnt work.... what do i do? (1 Reply)
Discussion started by: hdogg
spacing - Control spacing between menu items.
int set_menu_spacing(MENU *menu,
int menu_spacing(const MENU *menu,
The function set_menu_spacing sets the spacing informations for the menu. spc_description controls the number of spaces between an item
name and an item description. It must not be larger than TABSIZE. The menu system puts in the middle of this spacing area the pad charac-
ter. The remaining parts are filled with spaces. spc_rows controls the number of rows that are used for an item. It must not be larger
than 3. The menu system inserts the blank lines between item rows, these lines will contain the pad character in the appropriate positions.
spc_columns controls the number of blanks between columns of items. It must not be larger than TABSIZE. A value of 0 for all the spacing
values resets them to the default, which is 1 for all of them.
The function menu_spacing passes back the spacing info for the menu. If a pointer is NULL, this specific info is simply not returned.
Both routines return E_OK on success. set_menu_spacing may return E_POSTED if the menu is posted, or E_BAD_ARGUMENT if one of the spacing
values is out of range.
The header file <menu.h> automatically includes the header file <curses.h>.
These routines are specific to ncurses. They were not supported on Version 7, BSD or System V implementations. It is recommended that any
code depending on them be conditioned using NCURSES_VERSION.
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond.