Search Results

Search: Posts Made By: sandeep_1105
2,521
Posted By sandeep_1105
Hi Gary, Your Method worked. Thanks a ton...
Hi Gary,

Your Method worked. Thanks a ton for your help.

Thanks
Sandeep
2,521
Posted By sandeep_1105
We are using Linux 2.6.9-78.0.13.0.1.ELsmp...
We are using Linux 2.6.9-78.0.13.0.1.ELsmp x86_64.

The shell is ksh.

Thanks
Sandeep

---------- Post updated at 10:19 PM ---------- Previous update was at 10:12 PM ----------

methyl,

I...
2,521
Posted By sandeep_1105
[Solved] Variable Name as a Prompt
Dear Members,

I have an variable by name dir.If i do echo $dir i will get the path (/usr/bin/).

I am writing a shell script which will prompt to enter the variable name if run.Suppose the...
7,551
Posted By sandeep_1105
Find Quarter Start and End Dates
Dear Members,

Depending on the current date i should find out the start and end dates of the quarter.

ex: Today date is 14-Nov-2011 then Quarter start date should be Oct 1 2011 and Quarter End...
3,620
Posted By sandeep_1105
ux2dos does not exist on our system. I got the...
ux2dos does not exist on our system. I got the following error:

ksh: unix2dos: not found

We are on Linux x86_64
3,620
Posted By sandeep_1105
Send Files as Attachments through email
Dear Members,

I am trying to send a file as an attachment from the command prompt in Linux.

I am using the following:

(echo "Find attached Exception Report"; uuencode...
1,906
Posted By sandeep_1105
Replace \ with new line
Dear Members,

I have a file by name test.txt with data as below:

hur*091117*1434*U*00301*000000001*0*P*~\GT*AA*BHT*678i9*20091117*1434*1*X*0030
10\JU*822*0001\gt6*00*hjt578*091117\

I need...
4,442
Posted By sandeep_1105
First Three Characters of the first line of a file
Dear Members,

For example i have a file which contains 10 lines as below:

123testing
gopjp
jg9459\
834789rh
fh456
47rf
497rvg
409748\
08ntr

i need the first three characters of the...
11,425
Posted By sandeep_1105
Identify a file for encryption or decryption
Dear Members,

Can we find if a particular file is encrypted or decrypted.

I need a command by which i should be able to identify if a file is encrypted or decrypted.

How can we do this?
6,803
Posted By sandeep_1105
Thanks methyl, Your code is working...
Thanks methyl,

Your code is working perfectly fine.
6,803
Posted By sandeep_1105
^M comes when we hold ctrl V and M together. This...
^M comes when we hold ctrl V and M together. This can be done in vi editor.
How do i print ^M in my shell script.
6,803
Posted By sandeep_1105
Identify File with ControlM Characters
Dear Members,

I have a file which contains ControlM characters in it.

I need a command by the means of which i should be able to identify if a file has controlM characters.

How can this be...
44,674
Posted By sandeep_1105
Count of Number of Lines in a File
Dear Members,

I want to count the number of lines in a file; for that i am using the following command :

FILE_LINE_COUNT=`wc -l $INT_IN/$RAW_FILE_NAME`

if i do an echo on FILE_LINE_COUNT...
2,551
Posted By sandeep_1105
Thanks vgersh, it works now. You are a Genius. :)
Thanks vgersh, it works now. You are a Genius. :)
2,551
Posted By sandeep_1105
How to remove \ character
Dear Members,

I have a file which is a single line file. It has "\" character and i need to replace this character with a new line character.

How can we do this?

I tried with sed but it did...
2,524
Posted By sandeep_1105
Removing selectively the last character from a file
Dear Members,

Problem is suppose i have 50 lines in a file, 40 lines last character is "\" and the remaining 10 lines are good(i mean these 10 lines do not have "\" character)

How can i remove...
104,670
Posted By sandeep_1105
Deleting a file without Prompt
Dear Members,

When i try to delete a file, i am getting a prompt which asks me to enter Y or N for deleting a file.

I should not get this prompt and it should delete the file.

How can we do...
2,023
Posted By sandeep_1105
Modifying a file using SED
Dear Members,

I have a file which contains data as shown below:

LOAD DATA
APPEND
INTO TABLE xxap.test
( RAW_DATA char(3000) "replace(:raw_data,'*','|')",
LOADING_SEQUENCE...
11,685
Posted By sandeep_1105
Thanks Methyl, Its adding new line...
Thanks Methyl,

Its adding new line characters now.

I am very new to UNIX, so what exactly are you doing here.

I guess you are converting from hexadecimal to octal and searching for that...
11,685
Posted By sandeep_1105
Thanks for your reply. I tried using your...
Thanks for your reply.

I tried using your commands but it replaces the special character with a $ sign instead of new line character.

After this i again tried to replace $ with a newline...
11,685
Posted By sandeep_1105
How to Remove Special Characters
Dear Members,

We have a file which contains some special characters. I need to replace these special character by a new line character(\n).

The Special character is \x85.

I am not sure what...
1,699
Posted By sandeep_1105
The Line Separator is "\". I tried using your...
The Line Separator is "\". I tried using your code its not working

tr '\' '\n' < PGP_EDI_OUT822_CAFSEDI.20090812190012 > test.txt
1,699
Posted By sandeep_1105
Replace \ with a new line
Dear Members,

I have a file which contains data in a single line. The data is huge and the delimiter between each data set is "/".

I need to replace "/" with a new line character so that i get...
1,944
Posted By sandeep_1105
Help with Date Formats
Hi,

Following are the results of various date formats:

1. date +%h" "%d
Result: Jun 02

2. date
Result: Tue Jun 2 09:59:15 CDT 2009

If i use the date format as date +%h%d then i am...
9,836
Posted By sandeep_1105
Jim, My bad, i was not putting $ before s. I...
Jim,

My bad, i was not putting $ before s. I mean i was using sed 's/,$//' filename.

Now its works exactly i intended if i use your code sed '$s/,$//' filename


Thanks for your reply and...
Showing results 1 to 25 of 35

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