Search Results

Search: Posts Made By: pchegoor
2,303
Posted By pchegoor
Renaming Multiple Files by removing characters
Hi

I would like to rename Multiple files in a Unix Directory using Ksh Command.

Eg ATT8-2011-10-01 00:00:00-MSA-IMM-SINGLE_AND_FAMILY_COVERAGE-DED-$2000-X114817.PDF

needs to be renamed as
...
3,754
Posted By pchegoor
Thak you all for the responses above .I checked...
Thak you all for the responses above .I checked the file /var/adm/authlog on the server i am experiencing the LOCK issue .The server is xaayaas6.

Aug 9 07:45:00 xaayaas6 auth|security:info...
3,754
Posted By pchegoor
UNIX Account getting Locked Everyday between same Time Frame
I am facing an Issue with a particular Unix Account ( ie a particular Userid) getting LOCKED everyday between 7:30am and 8:00am. The Password associated with this particular Account has been setup...
6,347
Posted By pchegoor
Rename all Files in a UNIX Directory from one date format to another date format
Hi Unix Gurus,

I would like to rename several files in a Unix Directory . The filenames can have more than 1 underscore ( _ ) and the last underscore is always followed by a date in the format...
1,600
Posted By pchegoor
Obtaining File information based on String Search
Is there a single Command in Unix to get the following Information when searching for files containing one or more strings in a Unix Directory (including sub directories within it) :


1)...
4,325
Posted By pchegoor
Non Recursive Find Command
Hello Unix Gurus,

I am using the following find commands:

1)
find Input_Path -name '*.[Pp][Dd][Ff]' -exec mv -f
{} Outputpath \;

2)
find Inputpath -name '*.[Pp][Dd][Ff]' -exec cp
{}...
14,341
Posted By pchegoor
Hi Don when i use the Below i get the following...
Hi Don when i use the Below i get the following Error:

find Inputpath -name '*.pdf' -exec mv -f {} Outputpath +

find: 0652-018 An expression term lacks a required parameter

Any reason why...
14,341
Posted By pchegoor
Thanks Don, I can safely rewrite all the Unix...
Thanks Don,
I can safely rewrite all the Unix Commands in my initial post using the FIND Command as follows to avoid the Large number of files error:

1) find Inputpath -name '*.pdf' -exec mv -f...
14,341
Posted By pchegoor
Thanks Scrutinizer and Don for the solutions....
Thanks Scrutinizer and Don for the solutions. Also i am curious for each of these command ie mv , rm and cp can i use the FIND equivalent like this :

find Inputpath -name '.pdf' -exec mv -f {}...
14,341
Posted By pchegoor
Hi Scrutinizer , ...
Hi Scrutinizer ,
Thanks for your Reply.Actually is ther a way do rewrite each of the commands i mentioned without using a FOR LOOP.I use these commands in a SAS Program...
14,341
Posted By pchegoor
Using UNIX Commands with Larger number of Files
Hello Unix Gurus,
I am new to Unix so need some help on this.

I am using the following commands:

1) mv -f Inputpath/*.[Pp][Dd][Ff] outputpath

2) cp ...
11,821
Posted By pchegoor
So Scrutinizer, which one is preferable? ls...
So Scrutinizer, which one is preferable?

ls *.[pP][dD][fF] *.[rR][tT][fF]

or

ls | grep -iE '\.pdf$|\.rtf$'

Thanks again.
11,821
Posted By pchegoor
Thanks Pamu.
Thanks Pamu.
11,821
Posted By pchegoor
Listing files in a Unix Directory ending with .....
Hi Unix Gurus,

I need to list all files in a Unix Directory which either end with a
.pdf or .rtf and they should be case insensitive ie .Pdf , .pDF , .RtF etc are also...
2,440
Posted By pchegoor
Thanks Scrutinizer. This was a very very helpful...
Thanks Scrutinizer. This was a very very helpful awk command (or rather a combination of commands).

---------- Post updated at 06:24 PM ---------- Previous update was at 06:22 PM ----------
...
2,440
Posted By pchegoor
Thanks Yazu. Your command worked well except it...
Thanks Yazu. Your command worked well except it does not print the filename.txt and '0' for a file which is empty.Is there any way to get this?
2,440
Posted By pchegoor
No. of Fields using Awk
Hi,
Could someone please let me know me how i can use an awk command to print the No. of fields of each file present in a Directory?Suppose the Directory has 5 text files in which the first...
Forum: AIX 04-04-2011
7,570
Posted By pchegoor
Thanks Bakunin. That was a great explanation.My...
Thanks Bakunin. That was a great explanation.My orginal query has now been answered.:)
Forum: AIX 04-02-2011
7,570
Posted By pchegoor
The Output of the command echo ${.sh.version} is...
The Output of the command echo ${.sh.version} is :

sh: ${.sh.version}: 0403-011 The specified substitution is not valid for this command.


Thanks.
Forum: AIX 04-01-2011
7,570
Posted By pchegoor
Hi Murphy. I executed the following : ls -l...
Hi Murphy.
I executed the following : ls -l /usr/bin/ksh and the result is this :

-r-xr-xr-x 5 bin bin 290006 Jul 18 2010 /usr/bin/ksh

So this matches the result from ls -l /usr/bin/sh.

...
Forum: AIX 04-01-2011
7,570
Posted By pchegoor
Thanks Jim. I found out that on my Unix AIX 5.3...
Thanks Jim. I found out that on my Unix AIX 5.3 the /bin is linked to /usr/bin so i did the following :

ls -l /usr/bin/sh and i got the following.

-r-xr-xr-x 5 bin bin ...
Forum: AIX 04-01-2011
7,570
Posted By pchegoor
Thanks Murphy. How do i check this linking of...
Thanks Murphy. How do i check this linking of /bin/sh to Korn Shell. I am new to Unix .Is there a command to do so? Thanks.
Forum: AIX 04-01-2011
7,570
Posted By pchegoor
Thanks Jim . How does find out that a given shell...
Thanks Jim . How does find out that a given shell is POSIX compliant? Thanks.
Forum: AIX 04-01-2011
7,570
Posted By pchegoor
Alias Command in Bourne Shell
Hi

My Unix sever is AIX 5.3. My Login shell ( using echo $SHELL) is /bin/sh implying it is a Bourne Shell. My Question is that i am still able to use Alias command to create/retrieve...
Showing results 1 to 24 of 24

 
All times are GMT -4. The time now is 05:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy