Search Results

Search: Posts Made By: pen
3,563
Posted By pen
Hi, use find - you can traverse your...
Hi,

use find - you can traverse your directories with it, and even start your conversion per each file found. There are more efficient methods, but this depends on the amount of the files you...
26,570
Posted By pen
First of all, as mentioned in the "Edit" part of...
First of all, as mentioned in the "Edit" part of my last posting, my solution does not provide a proper answer to the original question - the requirement was to number sequentially (1,2,3...) the...
26,570
Posted By pen
Hi! Still :-) one way to skin the cat:sed...
Hi!

Still :-) one way to skin the cat:sed -n "/^$/ ="pen
5,594
Posted By pen
Hi! Well, the space character is lurking...
Hi!

Well, the space character is lurking there again when running xargs. You should loop over the file names as methyl proposed earlier.

pen
3,400
Posted By pen
Excellent! I figured there should be something...
Excellent! I figured there should be something more straightforward way of assigning, but forget to mention it in my posting. One does learn something new everyday, right? :-)

Best regards,

...
82,026
Posted By pen
Works (almost) fine in bash, too. But I don't...
Works (almost) fine in bash, too. But I don't understand the use of the sleep command as a background process. Furthermore, the "done" messages caused by returning sleeps disturb the display :-(

...
1,538
Posted By pen
I'm still not sure I understood you correctly,...
I'm still not sure I understood you correctly, but given that E contains the extension
for F in $Paytos; do
ls ${F}.$E
done


Regards,

pen
3,685
Posted By pen
One more to go - why use printf? for f in $(seq...
One more to go - why use printf?
for f in $(seq 1 10); do echo -n $f; done; echo

BR,

pen
3,400
Posted By pen
Hi! Here's one a bit more generic solution...
Hi!

Here's one a bit more generic solution using bash's array capabilities:
declare -a A; export A
FOO="one two three four"
IND=0
set $FOO #break up the string
while test ! -z $1
do
...
1,889
Posted By pen
Hi! Crossposting, are we...? ...
Hi!

Crossposting, are we...?

https://www.unix.com/emergency-unix-linux-support-help-me/120462-string-search-generating-file.html

Please note from the Forum rules:
(4) Do not 'bump up'...
6,076
Posted By pen
Curly brackets separate the variable name from...
Curly brackets separate the variable name from other text surrounding it. Eg.
echo ${foo}barmeans fetch variable foo's value and append it with text bar. Without curly brackets the shell would be...
3,258
Posted By pen
Umm, I have never heard of '<' operator for test...
Umm, I have never heard of '<' operator for test command, test being synonym for '['. If you (according to your comment in the code) want to check that you are not comparing a file against itself,...
11,105
Posted By pen
Uh. What's wrong with these people - minimal...
Uh. What's wrong with these people - minimal information provided, maximum outcome required...

Given that this is an Oracle script, AND given that these queries are in different scripts:


...
7,777
Posted By pen
Hi! You need to replace the single quotes...
Hi!

You need to replace the single quotes with double ones, ie. ' => ". Otherwise the alert variable won't get expanded properly.

pen
4,099
Posted By pen
Um, you can't use a file descriptor that does not...
Um, you can't use a file descriptor that does not exist (hopefully you have prepared your C code better :-)

As mentioned earlier, you should create a FIFO (a special file). Have a look at mknod's...
Forum: AIX 08-12-2009
13,854
Posted By pen
Um, yes and no :-) Firmware is a piece of...
Um, yes and no :-) Firmware is a piece of software for different kind of peripherals (routers, switches, ...). Microcode goes into the CPU, providing a slightly higher level or more complex...
2,650
Posted By pen
Hi! The END part (actually, END{...})...
Hi!

The END part (actually, END{...}) marks to code that will be executed when all input has been handled. To be exact, END is a special pattern known to awk, matching end-of-file.

pen
3,983
Posted By pen
Hi! There are actually two errors in your...
Hi!

There are actually two errors in your script:


testing a variable doesn't work that way. You have to use test - external or built-in, I don't remember how this is in ksh - hence, I'll...
2,650
Posted By pen
I'm afraid that won't give the answer. How about...
I'm afraid that won't give the answer. How about adding to arr[$1] - like
arr[$1] = arr[$1] + $3 instead.

Regards,

pen
2,343
Posted By pen
Hi! I rekon you are missing histexpand...
Hi!

I rekon you are missing histexpand option in your SHELLOPTS variable. The command you are looking for is
set -H

As histexpand is on by default, you should have a look at /etc/bash.bashrc...
2,691
Posted By pen
NFR contains the number of fields read so far. In...
NFR contains the number of fields read so far. In pseudo code:


loop: if NFR equals to 1 then
line1 = line_we_just_read
goto loop
end
print line_we_just_read line1
Hence, the assignment...
2,457
Posted By pen
Why not just chmod 777 *.mp3? =>...
Why not just
chmod 777 *.mp3?

=> eugenes18t: in you code
for i in /tmp/list ; chmod 777 "$i"
there are two errors.


the for i part would only go through the filename, not the contents of...
65,545
Posted By pen
Hi! Just one tiny comment: you can use one...
Hi!

Just one tiny comment: you can use one single date command in order to form the filename:
date "${base}%Y%m%d.${suf}" Also, echo command does not require sitation marks.

Regards,

...
13,493
Posted By pen
You have ”dirty” filesystems, meaning you should...
You have ”dirty” filesystems, meaning you should run fsck against them. Normally this is done during the startup, but for a reason or another the system has failed to do so. Normally this situation...
18,758
Posted By pen
Hi! JerryHone gave you an excellent...
Hi!

JerryHone gave you an excellent background pack of information; here's a practical (but perhaps clumsy, a sort of quick-and-dirty-and-don't-tell-your-mama) example.
One clumsy but an...
Showing results 1 to 25 of 32

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