Search Results

Search: Posts Made By: Physix
2,320
Posted By Physix
Thanx all of you for helpful information. ...
Thanx all of you for helpful information.

And I have another question,

If I would like for ex. copy all files with for ex. read, write and execute permissions, I guess I can use some think...
2,320
Posted By Physix
something like that ex: file1 -> filea ...
something like that

ex:

file1 -> filea
or
file1 -> newfile1

file21 -> file2a
or
file21 -> newfile21

file11 -> fileaa
or
file11 -> newfile11
2,320
Posted By Physix
Rename many files
Hi,

I have many files ex: file1, file2 ...file100, and I would like to rename only files with "1" in name. I don't have experience with bash and other shells. I know I can use "for i in" and "if",...
3,376
Posted By Physix
zsh version: 4.3.10ksh version Version JM...
zsh version:
4.3.10ksh version
Version JM 93t+ 2009-05-01ksh
100000 loops
1.8 secksh
500000 loops
9.4 sec
3,376
Posted By Physix
Sorry for my ignorance, and thanx for...
Sorry for my ignorance,
and thanx for informations.

BTW.
% which echo
echo: shell built-in command
% type -a echo
echo is a shell builtin
echo is /bin/echo
3,376
Posted By Physix
When I type which echoit is /usr/bin/echo Can I...
When I type which echoit is /usr/bin/echo
Can I choose which echo would be executing ?

And why in different shells everything is OK ?
3,376
Posted By Physix
Book and Links about Shells; and zsh question
HI,
I would like to ask You about some good books or links where I can find information about shells, theoretical information.
I will be grateful if You can help me

And I have question about...
29,750
Posted By Physix
let not found ;/
let not found ;/
29,750
Posted By Physix
i=`expr $i + 1`ok thx is't working And what...
i=`expr $i + 1`ok thx is't working

And what aboute for in sh if my shell doesn't support seq and I need ex 1000 repetition
29,750
Posted By Physix
grep yourusername /etc/passwd: ...
grep yourusername /etc/passwd:
w29185:x:4496:203:MyName:/export/home/w29185:/bin/bashI tried:
#!/bin/sh

for i in `seq 1 500000`; do
echo $i
done... and seq: not found
29,750
Posted By Physix
"for" and "while" loop problem in "sh"
Hi,
I have a problem with "for" and "while" loop in "sh".
I have:
#!/bin/sh

for i in $(seq 1 500000); do
echo $i
doneand it's working in sh on my ubuntu, but when I try to run this on...
5,837
Posted By Physix
"Time" command and save result in a file.txt
Hi,
I'am using "time" to check execution time of some script. Is there any possibility to save time command result into a file ?
3,486
Posted By Physix
Ackermann function
Hi,
Do you konw how should Ackermann function look in bash or sh, or any diffrent shell laguage ??
I know this function i c++ but I don't know enough shell language

Thanks for any help
3,236
Posted By Physix
Thank you for that information. Sorry but...
Thank you for that information.
Sorry but english isn't my native language and I have problem to understand this part "number of builtins", what do you mean "builtins".

Cheers.
3,236
Posted By Physix
Yes, I know, it's just for test
Yes, I know, it's just for test
3,236
Posted By Physix
Yeah, I was thinking about some thing like that,...
Yeah, I was thinking about some thing like that, maybe something more sophisticated :), but not too much ;)
3,236
Posted By Physix
Time-consuming simple script
Hi,

I need some simple but time-consuming script, I would like to compare run time in different shells. I thought about factorial or exponentiation in many loop, but I don't know it's a good...
2,334
Posted By Physix
Oops ... It's so embarrassing :o ... but thanks...
Oops ... It's so embarrassing :o
... but thanks for perceptiveness :)
2,334
Posted By Physix
Change files names
HI,
Is there any possibility to change names of many files using "mv" and "for" loop ???

For ex. I have many txt files.
file1.txt
file2.txt
...
And I tried something like this, but it's not...
1,832
Posted By Physix
Thank you scottn and thank all of you for...
Thank you scottn and thank all of you for helpfull information :)
1,832
Posted By Physix
"For" and "While" - Different Shells
Hi all,

I have a problem with "for" and "while" in different shells.
I know "for" and "while" in bash and sh, but I can't find "for" in "csh"

Here are simple loops in bash and sh

BASH
...
Showing results 1 to 21 of 21

 
All times are GMT -4. The time now is 09:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy