well what I'm trying to do is to remove underscores from filenames and leaving empty spaces instead:
Code:
arturas@Universe:/windows/Center/training$ ls
big_file failas su shudu
arturas@Universe:/windows/Center/training$ a=big_file
arturas@Universe:/windows/Center/training$ mv $a `echo $a | sed 's/_/\\ /g'`
mv: target `file' is not a directory
arturas@Universe:/windows/Center/training$
I've tried a few more variations, but still, I think this one's the most accurate, others do the same though.
Hello all!
I'm having a hard time with an IBM RS/6000 J40 machine.
I'm trying to install AIX 5.2L on it but, up to now, I can't make it boot from the CDROM.
I can go to the configuration menu, but, I don't know hot to point to my SCSI CDROM in order to boot from it.
Do any of you have an... (2 Replies)
Hello all!
This is my first post here!
I'm having a hard time with an IBM RS/6000 J40 machine.
I'm trying to install AIX 5.2L on it but, up to now, I can't make it boot from the CDROM.
Do any of you have an ideia?
Thank you for your time! (3 Replies)
I am using GNU sed but this does not output "what". Why?
HEY=$(echo "hey 70.70.70.70:21 what: " | sed -nr 's/.*(70.70.70.70\|71.71.71.71):(21\|22\|115\|443\|989\|990) (.*):.*/\3/p')
echo $HEY (2 Replies)
Hi,
I am cutting data from a fixed length test file and then writing out a new record using the echo command, the problem I have is how to stop multiple spaces from being written to the output file as a single space.
Example:
cat filea | while read line
do
field1=`echo $line | cut -c1-2`
... (6 Replies)
one more question. I want to skip the first echo statement the first time the loop gets entered
while #keep prompting for more funds until selling price achieved
do
echo "You have inserted a total of ${total_inserted} cents. Please insert $total_remaining more cents"
echo... (1 Reply)
Hey im new in this...anything will be helpful...
The user will input the word or phrase .... I want to search the user input in file (by lines) but not all then with this line search on another file ( with the specific line) and show to the user.
Example:
file1.txt
=======
a
aa
aaa... (2 Replies)
Is there any way in a script to print out the commands being ran? In DOS script, there is the "@echo on" and "@echo off".
so I have a script like this:
#!/bin/ksh
echo "hello there. moving files."
<turn on echoing here>
cp thisfile.txt thatfile.txt
cp whatfile.prop whyfile.prop
<turn... (2 Replies)
Hi all,
I am trying to find a rewrite rule that can help me with the following situation.
So I am currently on a page which has a URL:
http://www.test.mobile.com/#!/shop/phones/max-plus/features/
Now when I hover over a certain link, I can see that it will goto:
<a... (0 Replies)
version info : Fedora 28 (Kernel version: 4.16.12-300)
shell : bash
Using echo command , if I redirect a text like "Chocolate" to a file , all the contents in the file are overwritten as shown below.
# cat /tmp/someTest
Hello world
One more Hello world
myLine3
# echo... (4 Replies)
Discussion started by: kraljic
4 Replies
LEARN ABOUT PHP
fann_set_callback
FANN_SET_CALLBACK(3) 1 FANN_SET_CALLBACK(3)fann_set_callback - Sets the callback function for use during trainingSYNOPSIS
bool fann_set_callback (resource $ann, collable $callback)
DESCRIPTION
Sets the callback function for use during training. It means that it is called from fann_train_on_data(3) or fann_train_on_file(3).
PARAMETERS
o $ann
-Neural network resource.
o $callback
- The supplied callback function takes following parameters:
o ann - The neural network resource
o train - The train data resource or NULL if called from fann_train_on_file(3)
o max_epochs - The maximum number of epochs the training should continue
o epochs_between_reports - The number of epochs between calling this function
o desired_error - The desired fann_get_MSE(3) or fann_get_bit_fail(3), depending on the stop function chosen by
fann_set_train_stop_function(3)
o epochs - The current epoch
The callback should return TRUE. If it returns FALSE, the training will terminate.
RETURN VALUES
Returns TRUE on success, or FALSE otherwise.
SEE ALSO fann_train_on_data(3), fann_train_on_file(3).
PHP Documentation Group FANN_SET_CALLBACK(3)