I'm on HP Unix and in a Job, I tried to extract all files from a folder, and replace the extension (.xxxx) by '*' , remove duplicates and move the result in a file..
Example :
Folder has : ABC, CCC.txt, CCC.sf, CCC.sfd, DDD
I need to generate and output file with :
the commands that I did (See below) is working, but it increased the size of the logs because in my folder it has more than 600 000 files.. Is I can used another command to doing it or do an echo off somewhere and echo on after the execution.. thanks
Example of the Info that i have in the logs :
Thanks a lot
Alain
Last edited by Corona688; 04-20-2017 at 06:01 PM..
Hi,
I have a entry in the file as
::BSNL GUJARAT::India::OUT::NAT::REWEL::POSTPAID::919426199995
if u see this, i have the delimiter as :: ,
all i want is to replace "::" as ":"
so how to do that..
pls help
thanks (10 Replies)
Hi,
i used to do on soalris box but in linux box i am not able to do
advice is appreciated
uname -a
Linux intranet 2.4.20-pre3 #1 Tue May 6 17:55:35 IST 2008 i686 unknown
$ find /usr/local/ -type f | xargs perl -pi -e 's/172.16.1.14/172.16.1.27/g'
Can't remove /usr/local/bin/dbhome:... (1 Reply)
hello forum memvers,
1:I have to write a script for find a string and replace with another string.
2:In shell script how to replace one string with another string.:b: (4 Replies)
The below 'ls' command will list down files with extensions and suppress the ones with no extension
ls |grep "\\." But this dosen't work when I apply the same logic using 'find' command
find . -type f |grep "\\." I need help on how this logic can be implemented using 'find' command (3 Replies)
Hi all !
I have a fasta file that looks like that:
>Sequence1
RTYIPLCASQHKLCPITFLAVK
(it's just an example, obviously in reality I have several pairs of lines like that)
Using UNIX command(s), would it be possible to replace all the characters except the "C" of the second line only by... (7 Replies)
Hi Folks,
As per the subject, the following command is not working as expected.
echo $variable | mail -s "subject" "xxx@xxx.com"
Could anyone figure it out whats wrong with this. I am using AIX box.
Regards, (2 Replies)
Hello All,
I need a sed command to find and replace below text in multiple files in a directory.
Original Text :- "$SCRIPT_PATH/files"
Replace with :- "$RESOURCE_FILE"
Thank you in advance !!!
Regards,
Anand Shah (1 Reply)
Hi,
Am trying to replace a character '-' with 'O' in position 289 in my file but am not success with below command.
sed 's/^\(.\{289\}\)-/\1O/' filename
sed: 0602-404 Function s/^\(.\{289\}\)-/\1O/ cannot be parsed.
Thanks in Advance
Sara
Video tutorial on how to use code tags in The... (9 Replies)
The content of the file filea.txt is as follows.
---------
case $HOSTNAME in
aaa)
DS_PARM_VALUE_SET=vsDev
APT_Configuration_File=/appl/infoserver/Server/Configurations/2node.apt
;;
bbb)
DS_PARM_VALUE_SET=vsQA... (3 Replies)
Hi Forum
Ive been having a problem with the kernal(s) for some strange reason it every time I try and access the date and time/calendar or system settings it locks up the whole laptop and nothing responds. :(. This doesn't happen 11.10.xxx kernel . Any help would be much appreciated and thank you... (1 Reply)
Discussion started by: ShinTec
1 Replies
LEARN ABOUT OSX
pam_mount
pam_mount(8) BSD System Manager's Manual pam_mount(8)NAME
pam_mount -- Home Folder Mounting PAM module
SYNOPSIS
[service-name] function-class control-flag pam_mount [options]
DESCRIPTION
The Home Folder Mounting PAM module supports the authentication and session management function classes. In terms of the function-class
parameter, these are ``auth'' and ``session'' respectively.
The Home Folder Mounting Authentication Module
The Home Folder Mounting authentication module reads the mount authenticator from the PAM authentication context and caches it in the PAM
environment. The Home Folder Mounting Session Management Module must be used in conjunction with this module to remove the authenticator
from the PAM environment.
The Home Folder Mounting Session Management Module
The Home Folder Mounting session management module copies the mount authenticator from the PAM environment, removes it from the PAM environ-
ment, and uses its copy to mount the user's home folder if the user's OpenDirectory record indicates that an AFP, SMB, NFS or FileVault home
folder is to be used.
When the session is closed, the Home Folder Mounting session management module unmounts the user's home folder if it was mounted by this mod-
ule when the session was opened.
SEE ALSO pam.conf(5), pam(8), DirectoryService(8)BSD February 7, 2009 BSD