Search Results

Search: Posts Made By: tempestas
2,293
Posted By tempestas
Hello, Thanks SO much! It does work! ...
Hello,

Thanks SO much! It does work!
Unfortunately, I don't understand every step. May I ask for explanations?
In particular: IAm=${0##*/}
I have never seen this. If I echo $IAm the output is...
2,293
Posted By tempestas
Hi, If you've got Umlaute from a windows...
Hi,


If you've got Umlaute from a windows machine, they won't be Umlaute on a *nix machine any more, esp. if that machine uses the unicode encoding.


I thought so too but I could not rename...
2,293
Posted By tempestas
Hello, I am a bit shocked. It's been a...
Hello,



I am a bit shocked. It's been a while since I have programmed but usually my programs worked in the end. Have I really forgotten everything?

Anyways, here is what I wanna do:
I have...
2,293
Posted By tempestas
Hi, I want to rename folders and the...
Hi,



I want to rename folders and the respective files in those folders. Problem: both, folders and files, contain funny characters: umlauts and spaces and special characters.



Yes, I do...
2,293
Posted By tempestas
Problem with find
Hello,

I have trouble using the find command (I am working on Mac OSX).


for i in *.pdf
do
if find . -name "EV"
then
mv "$i" E-test.pdf
elif find . -name "GV"
then
mv "$i"...
1,760
Posted By tempestas
Thanks a lot. I was close: echo...
Thanks a lot. I was close:

echo "Name_Firstname" | cut -d _ 1


tempestas
1,760
Posted By tempestas
Finding a certain character in a filename and count the characters up to the certain character
Hello,

I do have folders containing having funny strings in their names and one space.
First, I do remove the funny strings and replace the space by an underscore.

find . -name '* *' | while...
5,921
Posted By tempestas
Hi ctsgnb, I just tried your code on the...
Hi ctsgnb,

I just tried your code on the entire input file: it doesn't work. For some reason it only works if I use the short example lines that you used. As soon as I add some more lines in the...
5,921
Posted By tempestas
Hi ctsgnb, thanks a lot for your effort! ...
Hi ctsgnb,

thanks a lot for your effort!
But at which point can I insert the condition that the next line has to start with textb? Sorry for that question, but your code seems so complex to me...
5,921
Posted By tempestas
Hi ctsgnb, thanks a lot for your effort! The...
Hi ctsgnb,

thanks a lot for your effort! The code seems quite complicated. Actually, I do not understand what is done. Can you explain it a little bit so that I learn something?
And one question:...
5,921
Posted By tempestas
Hi, sorry, I thought the longer examples...
Hi,

sorry, I thought the longer examples help to better understand the structure, because the input files are a mess, but they are given to me like that.
I shortened the examples in my former...
5,921
Posted By tempestas
Hi birei, thanks a lot for your comments!...
Hi birei,

thanks a lot for your comments! Sorry, if it's not really clear what I meant. I'll try to improve that:


Sorry, my mistake: it should be called "insert.txt". I changed that in my...
5,921
Posted By tempestas
inserting and replacing lines with awk
Hello,

I need to insert varying lines (i.e. these lines are an output of another script) between lines starting with certain fields.
An example to make it more clear.

This is the file where I...
1,970
Posted By tempestas
Well, what I actually wanna do is a little more...
Well, what I actually wanna do is a little more complex:

I have many files like the example file.

First, I wanna call specific files, i.e. they contain a certain string in their file names....
1,970
Posted By tempestas
Thanks vgersh99! What a stupid mistake that I...
Thanks vgersh99!
What a stupid mistake that I made :o

But, still, i f I try to implement that in variable it does not work:
findpicline=`awk 'NR >= awkv1 && NR <= awkv2'...
1,970
Posted By tempestas
result in variable
Hi all,

I'll try to get a result from a search with "awk" into a variable.
It works for those examples:

findfirstline=`awk 'BEGIN{ mycount = 1 } { if(mycount == 1 && /^Video/){ row=NR; print...
1,455
Posted By tempestas
Hi, sorry for the late reply. I had to...
Hi,

sorry for the late reply. I had to install nawk in order to run the script.

Thanks vgersh99 for the script! It works (as you probably know). But actually, I do not fully understand how it...
1,455
Posted By tempestas
Rearranging
Hello,

I spent all day trying to write a script and cannot find the solution :(

I have plenty files looking like this:

several hundred
lines precede
the following interesting
Bla xxx:...
Showing results 1 to 18 of 18

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