Hi Peasant,
Here is a slightly modified version of your script that just uses options and variable expansions defined by the POSIX standards. But, of course, it still depends on us knowing the pathname of a shell that provides those standard variable expansions. (Note that find isn't needed for this; we can get what we need just using shell pathname expansions.)
Hi cmccabe,
If Peasant's script (modified as suggested in post #5 worked for you, the script above should also work and should even run a little bit faster since it doesn't need to invoke find to get the job done.
I hope this helps,
Don
These 2 Users Gave Thanks to Don Cragun For This Post:
Dear Chaps,
What will I do if, I am not sure about the length of the file name, but only one thing that I want to remove only the last extension.
e.g. abcdXXXXXX.pqrXXXXX.asc (X is any character)
I want to trim only .asc (or,watever) so that resultant file name would be like... (1 Reply)
Hello,
I am an amature at UNIX commands and functionality.
Please could you all assist me by replying to my below mentioned querry :
How can I upload a zip folder on a unix path from my windows folder?
Thanks guys
Cheers (2 Replies)
Hi,
I need command to display files with full path and date of files where are generated at every 5hrs in a folder.
eg:
/u01/app/test/orjthsd_1_1 Sun May 10 19:03:26 2009
/u01/app/test/weoiusd_1_1 Sun May 10 21:00:26 2009
thanks
saha (3 Replies)
I have the following files in the dir /home/krishna/datatemp
abc.xml
cde.xml
asfd.txt
asdf_20120101-1.xml
asdf_20120101-2.xml
asdf_20120101-3.xml
asdf_20120101-4.xml
Now I need to move the files having the pattern asdf_20120101-*.xml to the dir /home/krishna/dataout with the extn as... (1 Reply)
Hi All,
Can you please provide some pointers to move files from Base path to multiple paths in efficient way.Folder Structure is already created.
/Path/AdminUser/User1/1111/Reports/aaa.txt to /Path/User1/1111/Reports/aaa.txt
/Path/AdminUser/User1/2222/Reports/bbb.txt to... (6 Replies)
I have a specific set (all ending with .bam) of downloaded files in a directory /home/cmccabe/Desktop/NGS/API/2-15-2016. What I am trying to do is use a match to $2 in name to rename the downloaded files. To make things a more involved the date of the folder is unique and in the header of name... (1 Reply)
Hi
I have a requirement like this:
/abc/a/x.txt
/abc/a/y.txt
/abc/b/x.gz
/abc/b/y.txt
I need output like this:
/abc/a:*.txt
/abc/b:*.txt
/abc/b:*.gz
I have tried find /abc -type f -name "*.*" ||awk -F . '{print $NF}' it is print only extensions without path name.
Please... (5 Replies)
Hi! I would like to comm -12 with one file and with all of the files in another folder that has a 100 files or more (that file is not in that folder) to find common text lines. I would like to have each case that they have common lines to be written to a different output file and the names of the... (6 Replies)
Could it be possible to find common lines between all of the files in one folder? Just like comm -12 . So all of the files two at a time. I would like all of the outcomes to be written to a different files, and the file names could be simply numbers - 1 , 2 , 3 etc. All of the file names contain... (19 Replies)
In the bash below I am trying to create sub-directories inside a directory from files with specific .bam extensions. There may be more then one $RDIR ing the directory and the .bam file(s) are trimmed (removing the extension and IonCode_0000_) and the result is the folder name that is saved in... (2 Replies)
Discussion started by: cmccabe
2 Replies
LEARN ABOUT OSF1
secauthmigrate
secauthmigrate(8) System Manager's Manual secauthmigrate(8)NAME
secauthmigrate - Convert ULTRIX auth(5) authentication data to authcap(4) authentication data (Enhanced Security)
SYNOPSIS
/usr/sbin/secauthmigrate [options] files
... | /usr/sbin/secauthmigrate [options] -
DESCRIPTION
The secauthmigrate utility reads records from the specified files or from standard input (-). These records must be formatted according to
the ULTRIX auth(Section 5) format. These can be generated by getauth on ULTRIX, or (for the Hesiod/BIND master host) can be found in
/var/dss/namedb/src/auth. For each authentication record found, secauthmigrate will attempt to find a matching username record for the
given UID. If that translation can be performed, an authcap(4) entry for the extended profile information for that user is created from
the data in the input record. If the extended profile entry already exists, then the converted entry is left in /tcb/files/auth/?/user-
name:ULT rather than overwrite the entry in /tcb/files/auth/?/username.
If ROOTDIR is defined, it is used instead of / as the root of the directory tree when creating the /tcb/files/auth/?/* files.
FLAGS -v Indicate successful conversions on standard output.
-U Give a long usage message.
ERRORS
Failed to find name for UID # xxxx -- skipped
No BSD style (/etc/passwd or NIS data) account exists. If you need this account, create a BSD style account and run secauthmigrate again.
Existing file for username -- conversion saved in /tcb/files/auth/?/username:ULT
Extended profile already exists. Compare the files to determine the differences. If the differences are not related to the password, use
the dxaccounts program to update the existing file. If the differences are related to the password, disable logins and edit the
/tcb/files/auth/?/username file.
secauthmigrate -- unrecognized option '${opt}'
The option you provided was not recognized. The options are -v and -U.
Usage: secauthmigrate [options] files
(Try secauthmigrate -U for help.)
The -U option provides extensive help.
FILES
${ROOTDIR}/tcb/files/auth/?/*
RELATED INFORMATION authcap(4), prpasswd(4)
auth(Section 5) and getauth(Section 8) on ULTRIX.
Security delim off
secauthmigrate(8)