Search Results

Search: Posts Made By: dsrookie
3,617
Posted By dsrookie
Search String in File List
Hi,

I have a list of files which can be identified as abcd*.xml where * represent multiple timestamps for multiple files.

I need to do following checks

1. Find number of files (which we get...
17,020
Posted By dsrookie
Resolved
thanks everyone

following also works fine in the script

sed 's/'"$(printf '\015')"'$//g' $DIR/$FILENAME > $DIR/$Temp_FILENAME

Thanks
again
17,020
Posted By dsrookie
Removing ^M through shell script
Hi all,

I am trying to write a ksh script to remove controlM characters from the input csv file.

I tried following command
sed 's/^M//g' $DIR/$FILENAME > $DIR/$Temp_FILENAME

while writing...
18,041
Posted By dsrookie
Thanks Scott it work perfectly fine sed...
Thanks Scott it work perfectly fine

sed "s/,/\\\,/g;s/|/,/g" testcommafile.txt > newfile
18,041
Posted By dsrookie
Escaping comma with \ in file
Hi,

I have pipe delimited file in which some of the description fields can have commas. e.g.

1|123|abc,def
2|456|qwert
3|345|aty,try,rty

I need to convert this to a 'csv' file BUT i need...
5,788
Posted By dsrookie
Actually the job is aborting if it fails to find...
Actually the job is aborting if it fails to find either of them. So I am thinking of passing just one argument to the ls command and not 2 like Emp*Delta.xml and Emp*Full.xml
5,788
Posted By dsrookie
Thanks All. I could get the result when I ran it...
Thanks All. I could get the result when I ran it on command prompt.

But I have another problem.

So assume that I get 2 files EmpCNTDelta_timestamp.xml and EmpCNTFull_timestamp.xml

I put
...
5,788
Posted By dsrookie
Combining resukts of ls commands
Hi,

I have a directory with some XML files in it. I can use wildcards to get the list of XMLs I want

say I have following XMLs in same dir
Employee1.xml
Employee2.xml
Employee3.xml
and...
2,998
Posted By dsrookie
Reading only particular TAG from XML
Hi,

I have an XML file with following structure. Between following tags I have pipedelimited records with newline characters (Data1|1|2|3)

<![CDATA[
and
]]>

I need to read the data between...
20,676
Posted By dsrookie
Thanks a lot robotronic...it works perfectly fine
Thanks a lot robotronic...it works perfectly fine
20,676
Posted By dsrookie
Passing Parameter in SED command
Hi,

I am trying to replace a URL by another URL in the SED command e.g.

cat dir/filename1 | sed -e 's/"http:\/\/[^ ]*dtd"/"http:\/\/abc.def.com\/xyz.dtd"/' > dir/newfile.xml

But I need to...
2,286
Posted By dsrookie
Checking for a file in file pattern before deleting it
Hi,

I need a script where I have delete all the files of type abc*.* from the directory /lmn/opq (passed as parameter to script)

But I need to check if there is file of type abc*.* existing in...
11,711
Posted By dsrookie
Script for FTPing files to mainframe GDG
Hi,

Request Unix gurus to kindly share a script which FTPs multiple files from Unix to a Mainframe GDG.

The script should check for oldest file named as 'abc*.txt' in a directory '/dir/child'....
62,085
Posted By dsrookie
ls command output to variable in script
Hi,

I wrote a script to get the oldest file from a directory path (which is passed as a parameter to the script)

#########################################################

XMLFILE_PATH={$1}
...
4,678
Posted By dsrookie
Hi Franklin, The echo | sed works fine, but...
Hi Franklin,

The echo | sed works fine, but the moment i try to the same thing in the file it doesnt work.

SED works and substitutes text if I specify any other text/pattern (which doesnt have...
4,678
Posted By dsrookie
Thanks....but the command didnt work.......it did...
Thanks....but the command didnt work.......it did not delete/replace

Regards
4,678
Posted By dsrookie
Replacing URL in a file with space
Hi,

I have a file with a URL text written in it within double quotes e.g.

"http://abcd.xyz.com/mno/somefile.dtd"

I want the above text to get replaced by a single space character.

I tried...
Showing results 1 to 17 of 17

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