Search Results

Search: Posts Made By: AK47
5,906
Posted By AK47
RudiC & rdrtx1 @ Thank man...really helpful!!...
RudiC & rdrtx1 @ Thank man...really helpful!! There both working :D Hardcore sripting ;):):b:.

---------- Post updated at 03:53 PM ---------- Previous update was at 08:31 AM ----------



@...
5,906
Posted By AK47
Tnx. But I'm receiving this error :confused: ...
Tnx.
But I'm receiving this error :confused:



[~/scripts/test]$ awk -f format.awk
awk: format.awk:1: awk 'function printall (RES) {
awk: format.awk:1: ^ invalid char ''' in...
5,906
Posted By AK47
ohh sorry you're right. bad copy paste ...
ohh sorry you're right. bad copy paste


Range OBB BO VER MVER PER CBAA CBAZA ALP
20201 OBB-9 BO-11 VER-2 CBAA-44 CBAZA-25


---------- Post updated at 02:21 PM ----------...
5,906
Posted By AK47
Converting Single Column into Multiple rows, but with strings to specific tab column
Dear fellows, I need your help.

I'm trying to write a script to convert a single column into multiple rows.
But it need to recognize the beginning of the string and set it to its specific Column...
2,067
Posted By AK47
Thank you :b: :b: ---------- Post updated at...
Thank you :b: :b:

---------- Post updated at 04:44 PM ---------- Previous update was at 03:48 PM ----------

I'm trying another script to convert Column to Rows.


awk '{printf("%c%s",...
2,067
Posted By AK47
Search word in 3rd column and move it to next column (4th)
Hi, I have a file with +/- 13000 lines and 4 column. I need to search the 3rd column for a word that begins with "SAP-" and move/skip it to the next column (4th). Because the 3rd column need to stay...
7,568
Posted By AK47
Tnx. it worked very easy with COMM command. ...
Tnx. it worked very easy with COMM command.


comm -3 file-A file-B >file-C

comm -3 range.txt list.txt >output.txt
7,568
Posted By AK47
It did not worked. grep -vf list.txt...
It did not worked.


grep -vf list.txt range.txt > output.txt
7,568
Posted By AK47
Grep the non-matching lines
Hi,

I need to make a script to extract the number that are not in a file.

Example:
I have file-A that has 100000 (70000-799999) numbers. And a file-B with number that already are in the...
3,586
Posted By AK47
No it's not for homework. Trying to learn some...
No it's not for homework. Trying to learn some scripting to automze @ work.

---------- Post updated at 04:21 PM ---------- Previous update was at 04:15 PM ----------



serious that did it...
3,586
Posted By AK47
pffffff..... found the problem. It needed a...
pffffff..... found the problem. It needed a space before the first pattern.

sed '/ begin/,/Total:/!d' 001.log > Outputfile.txt

Tnx :b:
3,586
Posted By AK47
the first one print the whole file back sed...
the first one print the whole file back

sed '/alt/,/Total/!d' 013.log > Outputfile.txt
3,586
Posted By AK47
I have tried both commands awk...
I have tried both commands

awk '/begin/,/Total:/' 001.log >> OutputFile.txt

sed '/begin/,/Total:/' 001.log >> OutputFile.txt

and they both print full the file back
3,586
Posted By AK47
it stays stuck. (typo :s ) sed...
it stays stuck. (typo :s )

sed '/begin/,/Total/!d 001.log


Because it has to do it for all 35 .log files in the folder and output it in a new file :)
3,586
Posted By AK47
Yes, I will have to use a shell file for loop ...
Yes, I will have to use a shell file for loop

I have tried the script, but is stay stock.
3,586
Posted By AK47
Copy/print all lines between pattern is found in .log files
Hi,

I have a folder with multiple (< 33) .log files.
And I have to copy the lines between two patterns from all the .log files to a new file.

(script file with a loop?)

Thanks in advance....
16,669
Posted By AK47
Tnx you all very much :). bipinajith I'm...
Tnx you all very much :).

bipinajith I'm receiving error with your Code.:confused:


awk ' {
for (i=1; i<=NF ; i++)
{
if ($i == "&&")
{
st=$(i-1);
en=$(i+1);
...
16,669
Posted By AK47
tnx, but I am still missing the number between...
tnx, but I am still missing the number between &&.

I receive:
65936
65938
65942
65943
65945
65947
65949
65961
65962
65963
65965
65966
65967
65968
65969
6597
16,669
Posted By AK47
Print numbers between two number ranges
Hi, I have a list.txt file with number ranges and want to print/save new all.txt file with all the numbers and between the numbers.

== list.txt ==
65936
65938 ...
Showing results 1 to 19 of 19

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