Search Results

Search: Posts Made By: Johanni
1,987
Posted By Johanni
that is correct but how could i put the owner...
that is correct but how could i put the owner user of each folder in front of each folder path in the text file?
1,987
Posted By Johanni
Find the owner user of each folder in a list
Hello

I have a file containing the list of different folders like this file_list.txt:

/s8/tests/test1
/s8/tests/tests/test2
/s8/tests/test2
/s8/tests/tests/test2/test5


I want a script...
1,063
Posted By Johanni
Work 100% correct. Thanks
Work 100% correct.
Thanks
1,063
Posted By Johanni
It worked great, the only problem is it would...
It worked great, the only problem is it would removes zero if it is in the begining of the line. example of you script performance:

input:
0,003,0,200,0,000,0,000,0,020

Output:...
1,063
Posted By Johanni
Changing every other comma to point
Hi

I am working with set of data which is written in Swedish format. comma is used instead of point for decimal numbers in Sweden.

My data set is like this:

1,188,1,250,0,757,0,946,8,960...
11,925
Posted By Johanni
tnx, should I use it like this? awk...
tnx,

should I use it like this?

awk -F, '{printf("%8s%16s%16s%16s\n",$1,$2,$3,$4) }' input > output
11,925
Posted By Johanni
the output file does not have comma the first...
the output file does not have comma the first column of numbers would occupy just first 8 columns of the output file and the rest of column of numbers would go to sections of the output file which...
11,925
Posted By Johanni
Converting CSV to ascii format
Hej All,

I have a file like this which is a comma dilimited:

input:

6000318,-263.011520678,-59.05869872409,587.67924868792
6000319,-265.6996842902,-50.24902479999,590.65693082607...
38,261
Posted By Johanni
Input file to bash script
Hi,

I have this script

Script.sh:


#!/bin/sh
sed 's,\[20\],,g' input.dat > output .dat


But i want to run it witb different files. So i want the input file as an input argument...
1,523
Posted By Johanni
Thanks, there would be just one node session in...
Thanks, there would be just one node session in coordinates.key and i want to bring back the new calculated numbers to the keyword file, between *node and the first star after it.

---------- Post...
8,149
Posted By Johanni
using Octave and bash command together
Hej all,

I have an script which I run it with Octave command in Linux, I want to know how could I put bash commands like grep and sed and use them together with octave?

My Octave script:
...
1,523
Posted By Johanni
copying text from between a pattern and *
Hej all,

I have a LS-DYNA keyword file which I want to extract the node coordinates from it to another file for processing and then returning the result coordinates to the same place, the...
2,306
Posted By Johanni
yeah, all of them working, but the thing is I...
yeah, all of them working, but the thing is I don't want just one line of the product name az output, I want something like this:

input:

Some random data
Some random data
Some random data...
2,306
Posted By Johanni
it's a big file and one line should be converted...
it's a big file and one line should be converted like that, just the line that has "Products from"
2,306
Posted By Johanni
remove non-alphabetic from a match line
Hey all,

I want to remove non-alphabetic charecters from the line that have

"Products from "

for example a line like this:

Products from [16]LG (295)

should just become like
...
1,259
Posted By Johanni
filename in the script as input
Hey guys,

I have a list of urls which I want to download and analyze with bash and lynx, I'm using this codefor each url:

downloader.sh:


#!/bin/bash
lynx -source...
5,311
Posted By Johanni
It is a fixed text for all of the lines that...
It is a fixed text for all of the lines that would be added,

For example adding 'index' before everyline in the text
5,311
Posted By Johanni
add a word every other line
hey guys,

How to add a line to every other line, means adding a line to the above of all the lines of a file?

tnx
1,396
Posted By Johanni
searching keywords in file
hey guys,

Hey all,

I'm doing a project currently and want to index words in a webpage.
So there would be a file with webpage content and a file with list of words, I want an output file with...
3,452
Posted By Johanni
anybody knows how to do that with lynx?
anybody knows how to do that with lynx?
3,452
Posted By Johanni
copy html to file with lynx
hey huys,

i'm extacting some data from a webpage. I used

lynx -dump URL > temp.dat

its working fine, but I need some data that is in the html code, so how could I store the whole html code...
2,351
Posted By Johanni
Not working :( sed: -e expression #1, char...
Not working :(

sed: -e expression #1, char 40: unknown option to 's'

---------- Post updated at 07:06 AM ---------- Previous update was at 06:59 AM ----------

worked, it was a problem by...
2,351
Posted By Johanni
special characters
Hey guys,

I'm trying to replace "]Facebook" from the text

but

sed 's/]Facebook/Johan/g'

is not working

could you please help me with that?
1,545
Posted By Johanni
hey ahamed, thnx, it worked, but didn't show...
hey ahamed,

thnx, it worked, but didn't show the last null, I don't know why!
1,545
Posted By Johanni
if I have some extra lines between features like...
if I have some extra lines between features like the input file above, all of the output lines would be "null" :(

---------- Post updated at 06:18 PM ---------- Previous update was at 05:31 PM...
Showing results 1 to 25 of 46

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