Sponsored Content
Top Forums Shell Programming and Scripting Is there anyway for file renaming in csh Post 302347061 by Smiling Dragon on Monday 24th of August 2009 08:04:53 PM
Old 08-24-2009
Code:
foreach file (*cell*)
  mv $file `echo $file | sed 's/cell//'`
end

Note that this will remove the string 'cell' from any filename it finds in the directory.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Renaming a file name

I have an audit log that is produced each day from a production printer. It names the file using todays date, but it removes the leading zero's. For example: todays date 060104 names the file 6104.txt. I ftp this file onto a Sun box and pull stats off of it. To keep some consistency to what I am... (2 Replies)
Discussion started by: dbrundrett
2 Replies

2. UNIX for Dummies Questions & Answers

how to zero a file using csh

Hi I have always used ksh in the past, but now am using csh. To zero a file using ksh, you simply > filename. What is the command to do the same using csh? Thanks in advance. (3 Replies)
Discussion started by: jodie
3 Replies

3. Shell Programming and Scripting

csh failing to call an 2 embedded csh script

I have an extraordinary problem with a csh script.....(feel free to berate the use of this but I'm modifying an existing bunch of them) Anyway, I have a master csh script which in turn calls a second csh script. This second csh script is below. Within this second script are two compiled C++... (1 Reply)
Discussion started by: pollsizer
1 Replies

4. Shell Programming and Scripting

Renaming a file use another file as a sequence calling a shl

have this shl that will FTP a file from the a directory in windows to UNIX, It get the name of the file stored in this variable $UpLoadFileName then put in the local directory LocalDir="${MPATH}/xxxxx/dat_files" that part seems to be working, but then I need to take that file and rename, I am using... (3 Replies)
Discussion started by: rechever
3 Replies

5. Shell Programming and Scripting

File renaming from list of names contained in another file

I have to rename a large number of files so that the name of each file corresponds to a code number that is given side by side in a list (textfile). The list contains in column A the filename of the actual files to be renamed and in column B the name (a client code, 9 digits) that has to be... (7 Replies)
Discussion started by: netfreighter
7 Replies

6. Shell Programming and Scripting

Renaming file

Hello, I have an outstanding issue..Iam on linux and using a putty to connect to my server and then fire our unix shell script. At location /usr/sam a file called "er 1 32.txt" out boss transfer via application. From my end on terminal when i want to transfer this file to some other location... (2 Replies)
Discussion started by: j_panky
2 Replies

7. UNIX for Dummies Questions & Answers

Need help with Renaming a file

I have a file named as Pro_PatAct_MMDDYYYY.csv. I need to renmae it to this Pro_PatAct.csv without the date timestamp. Can someone help me to achieve this using a regular expn. (3 Replies)
Discussion started by: imran_affu
3 Replies

8. UNIX for Dummies Questions & Answers

Renaming File

Hi there, I have 350 files in this directory: /home/adams/29 that was mistakenly renamed in this format: TTFILE_BIT_638478.txt.dat I want to take out the trailing .dat so that it ends in .txt: TTFILE_BIT_638478.txt I need help please. Thank you. (6 Replies)
Discussion started by: Creems
6 Replies

9. Shell Programming and Scripting

Renaming file and check for the renamed file existence

Hi Am trying to move a file from one name to another When I do "ls" to check for the moved filename I can see the file but when I try the same with a script am unable.. I think am doing some pretty silly error.. please help.. toMove=`ls | grep -E "partition.+"` mv $toMove partition._org... (7 Replies)
Discussion started by: Priya Amaresh
7 Replies

10. Shell Programming and Scripting

Renaming the file

Hi guys, I have written a code to move my file from one directory to another directory, the file is in .csv format and i need to append a current date to the file. the prolem is date is getting appended after the file extension.. here is my code : cd /data/home/abc/xyz now=$(date... (7 Replies)
Discussion started by: azherkn3
7 Replies
Graph::Easy::Group::Cell(3pm)				User Contributed Perl Documentation			     Graph::Easy::Group::Cell(3pm)

NAME
Graph::Easy::Group::Cell - A cell in a group SYNOPSIS
use Graph::Easy; my $ssl = Graph::Easy::Edge->new( ); $ssl->set_attributes( label => 'encrypted connection', style => '-->', color => 'red', ); $graph = Graph::Easy->new(); $graph->add_edge('source', 'destination', $ssl); print $graph->as_ascii(); DESCRIPTION
A "Graph::Easy::Group::Cell" represents a cell of a group. Group cells can have a background and, if they are on the outside, a border. There should be no need to use this package directly. METHODS
error() $last_error = $group->error(); $group->error($error); # set new messags $group->error(''); # clear error Returns the last error message, or '' for no error. as_ascii() my $ascii = $cell->as_ascii(); Returns the cell as a little ascii representation. as_html() my $html = $cell->as_html($tag,$id); Returns the cell as HTML code. label() my $label = $cell->label(); Returns the name (also known as 'label') of the cell. class() my $class = $cell->class(); Returns the classname(s) of this cell, like: group_cities gr gb for a cell with a bottom (gb) and right (gr) border in the class "cities". EXPORT
None. SEE ALSO
Graph::Easy. AUTHOR
Copyright (C) 2004 - 2007 by Tels <http://bloodgate.com>. See the LICENSE file for more details. perl v5.14.2 2011-12-23 Graph::Easy::Group::Cell(3pm)
All times are GMT -4. The time now is 08:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy