Search Results

Search: Posts Made By: Manu1234567
8,672
Posted By Manu1234567
Creating html table from data in file
Hi. I need to create html table from file which contains data. No awk please :) In example,

->cat file
num1 num2 num3
23 3 5
2 3 4 (between numbers and words single TAB).
after running mycode...
2,312
Posted By Manu1234567
Hi, thanks for replying. Assume I have...
Hi, thanks for replying.

Assume
I have three files in the directory /Users/Manu/files/*:
->cat file1
Katty
192.168.1.254.
-> cat file2
Manu
...
2,312
Posted By Manu1234567
Output pipes and incrementing
Hi... Basically, mycode does following:
it loops through every file in directory and gets second lines of those files (second lines contains IPs).

Then it creates a new file with IP which is...
2,607
Posted By Manu1234567
hm.....its a short code and I showed...
hm.....its a short code and I showed examples......ok, thanks....I will try

---------- Post updated at 12:08 PM ---------- Previous update was at 11:32 AM ----------

Example
so I run
sh...
2,607
Posted By Manu1234567
I cant fix it people. Help me please. Really...
I cant fix it people. Help me please. Really confused....
It gives me nothing but ideally:

sh mycode Manu tt-44-44
It creates file Manu
cat Manu
tt.44.44
192.168.1.1.

sh...
2,607
Posted By Manu1234567
I have changed but my file contains different...
I have changed but my file contains different things.....Any other suggestions? Maybe mu loops doing wrong stuff?
798
Posted By Manu1234567
Get the value of the file in path
I have file NUMBER with value 20131010.
The Path to the file is /Users/files/NUMBER.
I need to get value of the file through path.
I tried to use
echo ${/Users/files/NUMBER}
echo...
2,607
Posted By Manu1234567
Help me please to fix my error
Can you help me to fix my error please?! I checked the code and I think there is no mistake, but when I run it gives me error such
line 1: /Users/Manu/trials/hosts: is a directory
sort: open...
6,957
Posted By Manu1234567
Thank u:) One more thing it is more relating to...
Thank u:) One more thing it is more relating to the input from pipes...for example
echo 5 3 | sh my_code. What I need to add to my code for accepting input from pipes? Would appreciate if you tell...
6,957
Posted By Manu1234567
I m using Mac Pro..... So it gives you...
I m using Mac Pro..... So it gives you information what I am using i guess....
But as long as you recommend the strategy or what i have to add then you do not need to rewrite my code.

Basically,...
1,654
Posted By Manu1234567
LOl awk?!)) basically, i will try to change on...
LOl awk?!)) basically, i will try to change on if -while statement))) Anyway thank u so much :)
1,654
Posted By Manu1234567
So sorry... I just copied and run it...but it...
So sorry... I just copied and run it...but it gives me nothing....Anyway, thanks i will try to fix by myself
1,654
Posted By Manu1234567
Basically it does not give me contents of the...
Basically it does not give me contents of the files....I tried it already lol
path=/Users/files/
name (basename, "$path")
echo $name

Gives me error
1,654
Posted By Manu1234567
I did though...But it does not help me lol
I did though...But it does not help me lol
1,654
Posted By Manu1234567
Output all data of files into one file
I have three files (can be more than 3):
cat Katty
=> d4r4ff5rf5
123.44.32.4
=>cat Manu
ffrs44frfrf
123.33.44.3
=>cat Chris
derfe5rgrg ...
6,957
Posted By Manu1234567
Thanks I found out what is wrong. But can you...
Thanks I found out what is wrong. But can you recommend smth with previous comment about how to modify code with file containing numbers in row also.....
6,957
Posted By Manu1234567
it is strange.....sometimes it gives me an error:...
it is strange.....sometimes it gives me an error:
expr: syntax error
expr: syntax error
(standard_in) 1: parse error????
But sometimes it works fine O_o


My code is ok if file contains...
6,957
Posted By Manu1234567
Finding an average
Basically, I need to find average of numbers which are given like:
sh average file1 file (in files can be more than one number)
->10
sh average 5 7
->6
sh average /users/file
->5
echo 5 7 | sh...
10,080
Posted By Manu1234567
Thank u RudiC:b:
Thank u RudiC:b:
2,714
Posted By Manu1234567
lol Im so sorry guys... Confused u... Got it...
lol Im so sorry guys... Confused u... Got it thank you so much...
4,923
Posted By Manu1234567
Sorry lol ive checked.....Thank you...Sorry for...
Sorry lol ive checked.....Thank you...Sorry for confusion
10,080
Posted By Manu1234567
Thats cool but when its 254 i need to increment...
Thats cool but when its 254 i need to increment third oct....but in code we deleted it lol how to make it happen?;)

---------- Post updated at 02:25 PM ---------- Previous update was at 02:09 PM...
2,714
Posted By Manu1234567
Lol wow is it possible to make it without awk...
Lol wow is it possible to make it without awk utility? just using for looops and if statements? Totally confused with awk(
4,923
Posted By Manu1234567
How to make it without awk utility??? is it...
How to make it without awk utility??? is it possible?
2,714
Posted By Manu1234567
Lol I know what you mean. But I just wanted to...
Lol I know what you mean. But I just wanted to increment m4 after finding the maximum m4 and output it in file. Sorry, I just started to learn... I deleted m4 = $4 +1, but I dont know how to...
Showing results 1 to 25 of 34

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