Search Results

Search: Posts Made By: dsravanam
7,941
Posted By dsravanam
I think none of them are working fine. ...
I think none of them are working fine.

echo "Insert completed. 100 rows added" | tr -dc '[:digit:]'

gives

Insert completed. rows added

The other one below is not working as it is...
7,941
Posted By dsravanam
Extract number from string.
Hi

I am on Sun os. I have data in the below format and I need to grab the number out from the string.



O/p needed:



---------- Post updated at 12:39 PM ---------- Previous update...
2,856
Posted By dsravanam
Yes, I need to convert that to 10001 if that is...
Yes, I need to convert that to 10001 if that is the case.
2,856
Posted By dsravanam
Convert string number to a integer
I have data as below

"ROWS merge process complete. thousand rows changed"

I need to get a variable assigned the value of 1000. I mean convert the string thousand to 1000.

Any help or...
668
Posted By dsravanam
sed 's.|.'|.g' file but this adding to the...
sed 's.|.'|.g' file

but this adding to the last field as well


Please use CODE tags as required by forum rules!
668
Posted By dsravanam
Adding ' in particular fields
I have a file with 4 columns

a|b|c|d

I need to add single quotes around field 2 and 3

I need it to be like

a|'b'|'c'|d
1,357
Posted By dsravanam
Thanks Don
Thanks Don
1,357
Posted By dsravanam
What i was looking for was to find out which file...
What i was looking for was to find out which file is missing by assigning a variable in the check condition for each file and if any of the variables have a value exit it out by throwing which file...
1,357
Posted By dsravanam
Thanks. How can I check if any of the 3 files is...
Thanks. How can I check if any of the 3 files is missing and exit out with the missing file information
1,357
Posted By dsravanam
Identify missing file
I am on linux and I am supposed to receive 3 files. If any of the files are not received I need to identify the missing file and throw it out in a variable.

I have put in something like this
...
1,781
Posted By dsravanam
i/p <?xml version="1.0" encoding="UTF-8"...
i/p

<?xml version="1.0" encoding="UTF-8" standalone="no"?><test_sox xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><testdetials>....</test_sox>
<?xml version="1.0" encoding="UTF-8"...
1,781
Posted By dsravanam
Rudic I am sorry for the confusion. ...
Rudic

I am sorry for the confusion. Actually I need from the 2nd record onwards to remove the below string as well

<test_sox xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">


<?xml...
1,781
Posted By dsravanam
Thanks Rudic. If i have to replace the below...
Thanks Rudic. If i have to replace the below string at the end of each record except the last record what should i use

</test_sox>
1,781
Posted By dsravanam
Replace a string for every record after the 1st record
I have data coming in the below format for each record

<?xml version="1.0" encoding="UTF-8" standalone="no"?><test_sox...
955
Posted By dsravanam
Please see my responses below Is the fixed...
Please see my responses below

Is the fixed width in bytes or in characters?
What character set are you using?
What shell are you using?
What operating system are you using?
955
Posted By dsravanam
Help with file processing
I have a fixed width file coming from source system. The total characters on each record is 786.

I am getting records in the file with less than and greater than this number and the process is...
1,004
Posted By dsravanam
Move files from one date to another
Hi

I have hundreds of files with the following format



I need to move this 1000 files from above to a different date



Is there a way to do that with a script or command
2,154
Posted By dsravanam
Exclude certain file names while selectingData files coming in different names in a file name called
Data files coming in different names in a file name called process.txt.

1. shipments_yyyymmdd.gz
2 Order_yyyymmdd.gz
3. Invoice_yyyymmdd.gz
4. globalorder_yyyymmdd.gz

The process needs...
Showing results 1 to 18 of 18

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