Dear friends,
In VI, I have these data shown below:
Line1
Line2
Line3
Line4
How can I JOIN these line to the first line? When I finished I should have:
Line1 Line2 Line3 Line4
is there a text length limit of how long a single line can be in VI?
Thank you much! (10 Replies)
Hello Everyone :) ,
I have this printer installed on the network which is an HP 1160.
When sending a print job to the printer from SCO Unix 7.1 it prints one line of text and the rest of it comes up with blank pages.
I have tried deleting the printer and recreating it; but I am getting... (6 Replies)
Hi guys,
I am in need of a simple, (typically one-liner) script to get the last 17 bytes of a line.
Eg.
echo "abcdefghijklmnopqrstuv"
here i would need the last 17 bytes of the text
ie. fghijklmnopqrstuv
The text length is dymanic (but always more than 17)...it can even span upto... (2 Replies)
In emacs I perform a non-regex search and replace where the pattern is
'
+ '
and the replacement text length is zero. Note that the first and last characters in the search pattern are apostrophes.
How can I write a bash script to automate this search and replace using... (1 Reply)
Hi Friends,
I need to find out the number of files available in each directory.
It should list no of files and directory name.
For ex. if there are directories like : /home/Dir1/Dir2/Dir3
I need the output like the following:
Dir1 - x no of files
Dir2 - y no of files
Dir3 - z no of... (9 Replies)
I have a file where the text might exceed 80 characters. I want to have the maximum text lengths to be 80, and cut text from a space.
I written an awk script below but does not seem to work very well
{
gsub("\t"," ")
$0 = line $0
while (length <= WIDTH) {
line = $0
... (3 Replies)
This is regarding sendmail.
cat test.msg | sendmail -t
In test msg I have the following.
To: test@mymail.com
Subject: Test
Long text beings ...
Now when I receive the email in Outlook I get an "!" inserted usually at position 990 and repeated mostly after every 990 chars or 65 chars.... (2 Replies)
So I am trying to use the .ce 3 command to center 3 lines in my text, but I am getting an execute permission denied. I made rwx capabilites for all users too. Any idea why I am getting this error? (15 Replies)
I would like to make a function or command that checks for keyboard input without interrupting the program and exits the program when a key is pressed (perhaps the 'q' key).
The program below monitors and prints/executes commands upon a change in primary (mouse selection) or clipboard buffer. If... (4 Replies)
Here is the JS I wrote and am now testing live for alerting a member when they have received a new badge (seems to be working OK so far, still testing live):
var badgeChange = readCookie("badgestatechange");
$(function() {
if (badgeChange == "1") {
if (vbuserId > 0) {
var... (0 Replies)