Search Results

Search: Posts Made By: sethmj
2,713
Posted By sethmj
But I want to replace \n to carriage return. I...
But I want to replace \n to carriage return. I was hoping to get the output something like this:


AB\001\CDED\001\ABC\001
EG\001\HIJF\001\EFG\001
HI\003\HIUL\003\HIJ\003
1,248
Posted By sethmj
Thank-you all. Its working for me now. !!
Thank-you all. Its working for me now. !!
2,713
Posted By sethmj
Hi, Thank-you for the response. Its...
Hi, Thank-you for the response.

Its actually throwing out a control-M at the end of the file.



AB\001\CDED\001\ABC\001\nEG\001\HIJF\001\EFG\001\nHI\003\HIUL\003\HIJ\003^M
2,713
Posted By sethmj
Substitute \n with carriage return
Hello all,


I've a flat file in the following format:


AB\001\CDED\001\ABC\001\nEG\001\HIJF\001\EFG\001\nHI\003\HIUL\003\HIJ\003




And I want to substitute \n with the carriage...
1,248
Posted By sethmj
Find the list of files with a set of Users
Hello all,

I want to find the files for certain users. I cant make the or condition work in this instance. I've tried the code below but it didnt worked. Any input on how to get the list for all...
Forum: Red Hat 04-19-2013
9,425
Posted By sethmj
Unable to convert EBCDIC file to ASCII file
Hello all,

To give you all a little bit of background. We recently migrated from HP-UX to Redhat Linux and one of the command I used to run on HP-UX to convert an EBCDIC file to ASCII file isn't...
3,300
Posted By sethmj
Revision Control System
We've recently migrated from Unix to Linux, and unfortunately one of the command 'chown' is turned down on the new environment.

My dilemma is that whenever a user co (check-out), on new...
2,338
Posted By sethmj
You Sir..... Are brilliant.... Appreciate...
You Sir..... Are brilliant....

Appreciate your help!
2,338
Posted By sethmj
Change reference of symbolic link
Hello all,

I am trying to recursively find symbolic links for a given name

find . -type l -name ABC -exec ls -ltr {} \;where ABC refers to /user/fre/crmso/share

I want to replace the...
2,752
Posted By sethmj
Thanks for the code. I've tried every option,...
Thanks for the code. I've tried every option, i.e. cancel, once, save. It still errored out.

Tried the code above....This is the error I got:


Babble:...
2,752
Posted By sethmj
Using Expect scripts to port files to different unix box
Hello all,

I've been trying to design a script which will help me transfer files from one unix box to another. Following is the code:


#!/usr/local/bin/expect
spawn /usr/bin/scp...
1,120
Posted By sethmj
This makes perfect sense!!! Thank-you...
This makes perfect sense!!!

Thank-you Scrutinizer!!
1,120
Posted By sethmj
I think I didnt got the solution here. ...
I think I didnt got the solution here.

what I tried is:


if [[ -f `echo "$XFER/${FILE}"20120621??????_sas.sig` ]]
then
print "its there"
else
print "its not there"
fi



But...
1,120
Posted By sethmj
Object matching with Wildcards
Greetings,

I am facing difficulty in pattern matching when I am trying to identify an object:

Below is the code


if [[ -f $XFER/${FILE}20120621??????_sas.sig ]]
then
print "its...
10,754
Posted By sethmj
/bin/ls -1...
/bin/ls -1 /prod/crmso/shared/SEAM/FRAU_USRO_CO_RK_10_ROMA_B0_?(20120524|20120525)??????_sas.sig
10,754
Posted By sethmj
hello Neurtonscott, It works fine... but...
hello Neurtonscott,

It works fine... but can you explain what this code is doing?


unset latest
for file in FILE_NM_?(20120515|20120516)??????_sas.sig
do
[[ $file -nt $latest ]] &&...
10,754
Posted By sethmj
BALAJESURI, Sorry about this, but it was a...
BALAJESURI,

Sorry about this, but it was a typo in the posting and not the actual code.

The acual code did had:

FILE_ARG='FILE_NM_?(20120515|20120516)??????_sas.sig'

I am still facing...
10,754
Posted By sethmj
Hi Jim, Thank-you for the response! ...
Hi Jim,

Thank-you for the response!

Here's how I tried:
> FILE_ARG=FILE_NM_?(20120515|20120516)??????_sas.sig'

and then
> /bin/ls -lt $FILE_ARG | head -n1 | awk '{print $9}'

...
10,754
Posted By sethmj
Variable with Special characters
Hello all,

I am facing with a problem of invoking an environment variable.

If I use this command :
/bin/ls -lt FILE_NM_?(20120515|20120516)??????_sas.sig | head -n1 | awk '{print $9}'
...
Showing results 1 to 19 of 19

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