Hi,
I have searched the forum on how to mass replace the file names. We are doing the migration and I am trying to accomplish a task where I have to replace all UNIX scripts in a particular directory that start with bdw to fdm...
For example: bdw0110137.sh should be fdm0110137.sh
Keep the... (4 Replies)
hai,
I am new to Unix, I have a requirement to display owner name , directory or sub directory name, who's owner name is not equal to "oasitqtc".
(here "oasitqtc" is the owner of the directory or sub directory.)
i have a command (below) which will display all folders and sub folders, but i... (6 Replies)
Hello,
when i start to take backup following error generate please share solution for this problem i am very thankful to you.
$ tar -czvf orahome.tar.gz /testhome/TEST/PROD/orahome/
tar: Removing leading `/' from member names
O.S 4.5 Red Hat
Thanks,
Umair (1 Reply)
Hi All,
I have some 50,000 HTML files in a directory. The problem is; some HTML files are duplicate versions that is wget crawled them two times and gave them file names by appending 1, 2, 3 etc after each crawl. For example, if the file index.html has been crawled several times, it has been... (1 Reply)
I am trying to loop through folders and extract the name of the lowest level subfolder
I was running the script below, it returns
/bb/bin/prd/newyork
/bb/bin/prd/london
/bb/bin/prd/tokyo
I really want
newyork
london
tokyo
I couldn't find a standard variable for the lowest level... (1 Reply)
I have this piece of code
printf '%s\n' $pth*.msf | tr ' ' '\n' | sort -t '-' -k7 -k6r \
| awk -F- '{c=($6$7!=p&&FNR!=1)?ORS:"";p=$6$7}{printf("%c%s\n",c,$0)}'
When I run it I get
/home/chrisd/tatsh/branches/terr0.50/darwin/n02-z30-dsr65-terr0.50-dc0.002-8x6drw-csq.msf... (8 Replies)
I'm trying to move a large folder to an external drive but some files have these weird chars that the external drive won't accept.
Does anyone know any command of any bash script that will look through a given folder and remove any weird chars? (4 Replies)
I found a closed thread that helped quite a bit. I tried adding the URL, but I can't because I don't have enough points... ?
Modifying the syntax to remove ! ~
find . -type f -name '*~\!]*' |
while IFS= read -r; do
mv -- "$REPLY" "${REPLY//~\!]}";
done
These messages are... (2 Replies)
Hello -
I was looking to write a simple script trying to rename sub-directories chopping off the last n characters.
For example:
In /home/myname/dir there are three sub-directories: directory1_1, directory2_2, and directory3_3.
Is there a simple script to chop off the last... (4 Replies)
Discussion started by: twckfa16
4 Replies
LEARN ABOUT V7
ar
AR(1) General Commands Manual AR(1)NAME
ar - archive and library maintainer
SYNOPSIS
ar key [ posname ] afile name ...
DESCRIPTION
Ar maintains groups of files combined into a single archive file. Its main use is to create and update library files as used by the
loader. It can be used, though, for any similar purpose.
Key is one character from the set drqtpmx, optionally concatenated with one or more of vuaibcl. Afile is the archive file. The names are
constituent files in the archive file. The meanings of the key characters are:
d Delete the named files from the archive file.
r Replace the named files in the archive file. If the optional character u is used with r, then only those files with modified dates
later than the archive files are replaced. If an optional positioning character from the set abi is used, then the posname argument
must be present and specifies that new files are to be placed after (a) or before (b or i) posname. Otherwise new files are placed
at the end.
q Quickly append the named files to the end of the archive file. Optional positioning characters are invalid. The command does not
check whether the added members are already in the archive. Useful only to avoid quadratic behavior when creating a large archive
piece-by-piece.
t Print a table of contents of the archive file. If no names are given, all files in the archive are tabled. If names are given,
only those files are tabled.
p Print the named files in the archive.
m Move the named files to the end of the archive. If a positioning character is present, then the posname argument must be present
and, as in r, specifies where the files are to be moved.
x Extract the named files. If no names are given, all files in the archive are extracted. In neither case does x alter the archive
file.
v Verbose. Under the verbose option, ar gives a file-by-file description of the making of a new archive file from the old archive and
the constituent files. When used with t, it gives a long listing of all information about the files. When used with p, it precedes
each file with a name.
c Create. Normally ar will create afile when it needs to. The create option suppresses the normal message that is produced when
afile is created.
l Local. Normally ar places its temporary files in the directory /tmp. This option causes them to be placed in the local directory.
FILES
/tmp/v* temporaries
SEE ALSO ld(1), ar(5), lorder(1)BUGS
If the same file is mentioned twice in an argument list, it may be put in the archive twice.
AR(1)