Hi,
I downloaded the latest sparc ver of sol10, tried to concatenate the files and encounter error: Not enough space on the disk. Tried from both sol10 x86 and winxp.
command used:
UNIX: cat file1 file2 file3 file4 file5 > file.iso
DOS: copy /b file1 + file2 + file3 + file4 + file5 file.iso... (3 Replies)
Hi , i want to Concatenate a string and use the following code
str="i"
str="$str am \n"
str="$str a \n"
str="$str boy \n"
echo $str
I want to ouput this
i
am
a
boy
However it outputs
i am \n a \n boy \n (3 Replies)
Hi,
I have a problem where some of the records I need to process have the first address field as something like "10Walpole Street" where obviously I want it to be "10 Walpole Street". I know I need to somehow separate out the integer and probably form a new string variable, but I just don't... (5 Replies)
Input:
--------------------------
123asd 456sdasda 789a
-------------------------
output wanted:
---------------------
123asd
456sdasda
789a
----------------------
I want this by sed in simple way
please help (I know by: tr ' ' '\n' < inputfile )I want it by sed only (5 Replies)
Can someone help me on this. I have a file that has a long line just like below. The long line keeps on being truncated to the next line (new line + space) for some reason. Basically, I just need to remove this problem. Hope somebody can help! Thanks!
INPUT FILE:
structuralObjectClass:... (4 Replies)
Hi All,I am facing the below problem I have set a variable:
a=`cat a.txt| grep "mad" | cut -c 30-50`the output is coming
echo $a1
10 Mad300 3215however the actual ouput is
1.10 Mad300 3215There are 4spaces between 300 and 3215 so if i do:
echo "$a" I am getting correct output:
1.10... (3 Replies)
I am having a peculiar problem. First I run the code below to append 0 at the start of each line in some hundreds of files that I have in a directory. These files have each word in a newline.
for f in *.dat; do
echo "0" > tmpfile
cat $f >> tmpfile
mv tmpfile $f
done
Then I run this... (7 Replies)
Hello
I have had a requirement where I need to move data to a new line based on a text .So basically as soon as it encounters :61: it should move to a new line
Source Data :
:61:D100,74NCH1 :61:D797,50NCH2 :61:D89,38NCHK2 :61:D99,38NCHK12 :61:D79,38NCHK22 :61:D29,38NCHK5
Target Data... (11 Replies)
Discussion started by: kamijia83
11 Replies
LEARN ABOUT FREEBSD
factor
FACTOR(6) BSD Games Manual FACTOR(6)NAME
factor, primes -- factor a number, generate primes
SYNOPSIS
factor [-h] [number ...]
primes [-h] [start [stop]]
DESCRIPTION
The factor utility will factor positive integers. When a number is factored, it is printed, followed by a ':', and the list of factors on a
single line. Factors are listed in ascending order, and are preceded by a space. If a factor divides a value more than once, it will be
printed more than once.
When factor is invoked with one or more arguments, each argument will be factored.
When factor is invoked with no arguments, factor reads numbers, one per line, from standard input, until end of file or error. Leading
white-space and empty lines are ignored. Numbers may be preceded by a single '+'. Numbers are terminated by a non-digit character (such as
a newline). After a number is read, it is factored.
The primes utility prints primes in ascending order, one per line, starting at or above start and continuing until, but not including stop.
The start value must be at least 0 and not greater than stop. The stop value must not be greater than the maximum. The default and maximum
value of stop is 3825123056546413050.
When the primes utility is invoked with no arguments, start is read from standard input and stop is taken to be the maximum. The start value
may be preceded by a single '+'. The start value is terminated by a non-digit character (such as a newline).
DIAGNOSTICS
negative numbers aren't permitted
illegal numeric format
start value must be less than stop value
Result too large
BUGS
factor cannot handle the ``10 most wanted'' factor list, primes will not get you a world record.
primes is unable to list primes between 3825123056546413050 and 18446744073709551615 since it relies on strong pseudoprime tests after siev-
ing, and nobody has proven how many strong pseudoprime tests are required to prove primality for integers larger than 3825123056546413050.
BSD October 10, 2002 BSD