I am trying to rename files based on the created/born date of the file. I Have a total of 4000 files that i am trying to do this with and would like it to be log_yyyymmddhh.gz right now the files are maillog.???.gz.
Can anyone point me in the right direction of how to get this done via scipt?
... (4 Replies)
Hi everyone.
I'm in need of a solution where i need to rename a folder to a name that's inside an XML file in that folder.
OS is Ubuntu 9.10 with Gnome.
I've tried using grep, sed and xpath, but can't seem to find a solution.
This is the simplified folder structure:
FOLDER-NAME
-... (4 Replies)
Good day.
I need a one-liner (if possible) otherwise a longer script to do the following:
I have a list of files in a directory with the same filename extension, ie.
firstfile.cks, anotherfile.cks, somefile.cks, etc.The filename and extension, however, are incorrect. The correct filename... (7 Replies)
Hello,
I've been searching and reading, but I can't figure out how to solve this problem with my newbie skills.
In my directory, I have a list of files (see dirlist.txt attachment) that I need to merge and rename. I have part of the code of the code figured out (see below). However, I... (3 Replies)
Hello,
I am new to shell
I have a folder which contains a list of files, all the files contain the separator :
I need to replace this character for all the filenames (by batch)
ex: hello:world should become hello-world
please help
Thanks (3 Replies)
Hi, I need a bit of help.
I've used awk to get the first 7 characters of a file -
awk '{print substr($0,0,7)}' test.csv
How do I now take this variable to rename test.csv to variable.csv ?
Any help or advice would be greatly appreciated! (2 Replies)
I am trying to use the two files shown below to either remove or rename contents in one of those files. If in file1.txt $5 matches $5 of file2.txt and the value in $1 of file1.txt is not "No Match" then that value is substituted for all values in $5 and $1 of file2.txt. If however in $1 ... (5 Replies)
Hello, I have a text file "file.list" with the contents below.
file1
filename1
file2
filename2
file3
filename3
file1, file2 and file3 are files existing in the same directory as the text file file.list.
I want to rename file1 to filename1, file2 to filename2, as show in the text... (1 Reply)
In the below bash I am trying to copy the only text file (always only one) in /home/cmccabe/Desktop/list/QC/metrics.txt and rename each of the 3 text files according to /home/cmccabe/Desktop/test/list.txt using lines 3, 4 ,5. This format (that is list.txt) is always 5 lines. Thank you :).
... (12 Replies)
I am trying to rename files with spaces and other characters and not able to be successful.
FileNames:
UPLOAD REFERENCE.xls
UPLOAD MASS REFERENCE.XLS
find /UPLOAD REFERENCE/ -depth -type f -name "* *" -exec rename " " "_" "{}" ";"
The above one is successful to replace spaces... (1 Reply)
Discussion started by: eskay
1 Replies
LEARN ABOUT XFREE86
extcheck
EXTCHECK(1) General Commands Manual EXTCHECK(1)NAME
extcheck - check hierarchical ext(5) files for global node connectivity and summarize number of fets, nodes, etc.
SYNOPSIS
extcheck [ -c cthresh ] [ -p path ] [ -r rthresh ] [ -s sym=value ] [ -C ] [ -R ] [ -S symfile ] [ -T tech ] root
DESCRIPTION
Extcheck will read an extracted circuit in the hierarchical ext(5) representation produced by Magic, check to ensure that all global nodes
(those to which a label ending in an exclamantion point is attached) are fully connected in the layout, and then print a count of the num-
ber of various items (nodes, fets, etc) encountered while flattening the circuit. The root of the tree to be processed is the file
root.ext; it and all the files it references are recursively flattened.
The following options are recognized:
-c cthresh
Set the capacitance threshold to cthresh femtofarads. Extcheck will count the number of explicit internodal capacitors greater than
cthresh, the number of nodes whose capacitance is greater than cthresh, as well as the total number of nodes. (Other programs such
as ext2sim(1) use this option as a threshold value below which a capacitor will not be output). The default value for cthresh is 10
femtofarads.
-p path
Normally, the path to search for .ext files is determined by looking for path commands in first ~cad/lib/magic/sys/.magic, then
~/.magic, then .magic in the current directory. If -p is specified, the colon-separated list of directories specified by path is
used instead. Each of these directories is searched in turn for the .ext files in a design.
-r rthresh
Set the resistance threshold to rthresh ohms. Similar in function to -c, but for resistances. The default value for rthresh is 10
ohms.
-s sym=value
It's possible to use special attributes attached to transistor gates to control the length and width of transistors explicitly,
rather than allowing them to be determined by the extractor. These attributes are of the form ext:w=width^ or ext:l=length^, where
width or length can either be numeric, or textual. (The trailing ``^'' indicates that these are transistor gate attributes). If
textual, they are treated as symbols which can be assigned a numeric value at the time ext2sim is run. The -s flag is used to
assign numeric values to symbols. If a textual symbol appears in one of the above attributes, but isn't given a numeric value via
-s (or -S below), then it is ignored; otherwise, the transistor's length or width is set to the numeric value defined for that sym-
bol. (This option is not currently used by extcheck, but it is common to ext2sim(1) and other tools that are written using the
extflat(3) library)
-C Set the capacitance threshold to infinity. Because this avoids any internodal capacitance processing, all tools will run faster
when this flag is given.
-R Set the resistance threshold to infinity.
-S symfile
Each line in the file symfile is of the form sym=value, just like the argument to the -s flag above; the lines are interpreted in
the same fashion. (This option is not currently used by extcheck, but it is common to ext2sim et. al.)
-T tech
Set the technology in the output .sim file to tech. This overrides any technology specified in the root .ext file.
SEE ALSO ext2dlys(1), ext2sim(1), ext2spice(1), magic(1), rsim(1), sim2spice(1), ext(5), sim(5)AUTHOR
Walter Scott
BUGS
The -s mechanism is incomplete; it should allow quantities other than transistor lengths and widths to be specified.
EXTCHECK(1)