Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by pfildes

  1. pfildes

    Replacing Formfeed (\f) with Carriage Return (\r) & New Line (\n)

    I tried the following command; cat myfile.txt | tr '\014' '\015\012' > myfile.out but this didnt seem to do anything. I was thinking that I need to replace a single character with another single character, not multiple characters
  2. pfildes

    Replacing Formfeed (\f) with Carriage Return (\r) & New Line (\n)

    I have a text file with the '\f' character that I need to replace with the characters '\r\n'. I have tried the 'TR' command but that failed. Can anybody please advise how I do this?
  3. pfildes

    Samba - Using smbclient to copy a file onto a Windows Share

    Thanks Annihilannic, adding the "eval" command as per your suggestion has resolved my problem nicely. The file I was trying to PUT was copied successfully [thumbsup]
  4. pfildes

    Samba - Using smbclient to copy a file onto a Windows Share

    I have amended the "-c" command entry to include a "lcd", such that tmpSambaCommand="$smbclientEXE //${AXWINSERVER}/${AXWINSHARE} -I ${AXWINIP} -A ${AXSMBAUTH} -d 2 -c \"lcd; put ${tmpFileToCopy}; exit;\"" echo $tmpSambaCommand $tmpSambaCommand;; This had the following affect; It still hangs.
  5. pfildes

    Samba - Using smbclient to copy a file onto a Windows Share

    Hi, I am having difficulty tranferring a file from my UNIX server to a Windows Share using the Samba client - smbclient, from a UNIX SH script When I execute the following command from the shell prompt, it works perfectly; /opt/samba/bin/smbclient //MyWinServer/MyWinShare$ -I 10.85.0.89 -A...
  6. pfildes

    Replace FF character with CRLF

    I tried many solutions which didnt give me the desired effect. I eventually went with the following; tr '\014' '\012' Seemed to work for me Thanks to those who responded [smile]
  7. pfildes

    Replace FF character with CRLF

    That did work, but not quite how I expected. I need another blank line. I'd therefore need something like ; tr '\014' '\012\012' Obviously, I can't do that because there's a mismatch of number of characters. Is there any other method of doing this? Is it possible using 'sed'?
  8. pfildes

    Replace FF character with CRLF

    Hi, I have a need to replace a FF character (Form Feed) in a printer spool file with a CRLF (Carriage Return & Line Feed). I previously replaced the FF character with a blank character using the TR command (e.g: tr '\014' ' '), but I now need to insert a blank line too. Can anybody help please?
  9. pfildes

    PROGRESS OpenEdge 10.1c - Use of DbTool

    Can anybody please provide details of how to call the PROGRESS OpenEdge tool - DbTool, from a UNIX script? [ponder]
  10. pfildes

    Convert fixed format text output to CSV

    I implemented the most recent AWK code. That has worked for me and resolved my predicament. [thumbsup2] Thanks to PHV & also to those who offered their advice.
  11. pfildes

    Convert fixed format text output to CSV

    I have a fixed format text file which I need to convert to CSV. As this will need to be done repeatedly can you please tell me how I can do this via scripting? My file currently looks something similar to this below; I'd like for the output to be converted so that it looks similar to this...
  12. pfildes

    Installing Progress OpenEdge 10.1c

    Can anybody please provide me with some advice/guidance notes for installing Progress openEdge 10.1c on UNIX (HP-UX Itanium)? On the server, I currently have v9.1e and 10.1b, but need to install 10.1c alongside. Obviously, versions can co-exist, but I do not want to upset these current...
  13. pfildes

    Formatting script output into columns

    Thanks hoinz that worked a treat. [thumbsup]
  14. pfildes

    Formatting script output into columns

    In my script I have created a list of subdirectories. How can I present this list formatted in to four columns? i.e. Folder1 Folder2 Folder3 Folder4 Folder5 Folder6 Folder7 Folder8 So far I have the following; for tmpDIR1 in `ls -l /opt/myapp | grep '^d' |awk '{print $9}'`; do if [ -d...
  15. pfildes

    Script for checking file existance

    I managed to resolve my problem with the following script code; cd $srcFolder for aFile in `ls -C *.*`; do if [ ! -f $trgFolder/$aFile ]; then echo "Missing file: $aFile" fi done

Part and Inventory Search

Back
Top