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?
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...
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?
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...
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...
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...
Can anybody please help with the following script source code?
I have a script which is executed every 15 mins via a Crontab entry. In the script I set a counter initially to zero. If a particular file exists, I read the counter value stored. If it equals 3 I set it to zero. If the counter is...
I have some UNIX software which runs in a windows environment via some Telnet software. This UNIX software calls a script which passes a PCL file to a users windows default printer using the following source code;
(echo "\0033\0133\0065\0151\c"
cat $spoolfile
echo "\0033\0133\0064\0151\c"...
I have a problem of trying to identify whether a certain set of files in a source folder exist in a target folder.
I'm looking to create a HP-UX KSH script which when given the following as command line args would check if a file exists in both directories;
a) File pattern e.g. *.txt
b) Source...
I had a Word97 document with the following source for printing bar code labels. It works fine with Office97 but fails with Office2003 displaying the message;
Run-time error '5843':
One of the values passed to this method or property is out of range...
I am currently having problems updating a DataSet via a DataAdapter and CommandBuilder. The following code works when adding new records;
Dim myOleDbConnection As OleDb.OleDbConnection
Dim myOleDbCommand As OleDb.OleDbCommand
Dim myOleDbCommandBuilder As...
I have the following code for processing the contents of an Excel worksheet, however I'm having a little difficulty inserting a new row [sadeyes].
Dim myExcel As New Excel.Application
Dim myWorkBook As Excel.Workbook
Dim myWorkSheet As Excel.Worksheet
Dim XLData As String
Dim IRow As...
I am attempting to create new records in an MS Access database using ADO.NET. I have opened a connection, created a DataAdapter and added a new row to the table in the filled dataset. When the DataAdapter is updated I get the message;
"Update requires a valid InsertCommand when passed DataRow...
I'm in the process of migrating from VB6 to VB.NET and need some assistance with opening a DBase IV (.DBF) file using ADO.NET and either OLEDB or ODBC [banghead].
As this appears to be quite different from VB6, what with the use of DataAdapters & DataSets (which appear to replace...
I'm new to VB.NET and have come across a sample application which resembles a basic file explorer. Having opened the project, when I run it I get a message stating;
An unhandled exception of type 'System.Security.SecurityException' occurred in mscorlib.dll
Additional information: Request for...
I have a need to include the seconds in the time & date Modified column for files when displayed in Windows Explorer [surprise]. At present it displays just date and time (dd mmm yyyy hh:mm). Is this possible? [ponder].
Please help!.[sadeyes]
I'm having extreme problems with the login speed of my PC. It is taking 30 minutes to complete the login process. Watching the processes start up in "Task Manager" I'm noticing that it is using almost all of my 512Mb RAM and upto 2Gb of swap file space. It all appears to...
The HDD on my WindowsME PC has sadly died [sad]. When I bought the PC from a UK computer retailer, it came with the OEM version of WindowsME which takes the form of a boot disk & a Recovery CD. I've bought a new HDD, however I've read that I might now need to buy a new copy of Windows [mad]. Can...
I have recently converted a C++ program to a MFC DLL and am having problems with istream::getline function. It opens the file (sufficed .sac) no problem [smile], but it hangs on the first call to the getline function [sad] - see code below;
#include <iostream.h>
#include <strstrea.h>
#include...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.