Search Results

Search: Posts Made By: chlorine
8,712
Posted By chlorine
Something like this should be useful to you: ...
Something like this should be useful to you:

#!/bin/bash

output=`sh script1.sh`
echo "This is the output of sript1: $output"


The ` ` symbols execute a command.
output=`...` stores the...
10,424
Posted By chlorine
Thanks, but as I said in many cases awk is not as...
Thanks, but as I said in many cases awk is not as practical as cut, so I was hoping for a solution using cut or something very similar.

For instance, I don't think there's an easy way in awk of...
4,833
Posted By chlorine
I'm not sure about this, but vi may have an...
I'm not sure about this, but vi may have an option to automatically add a newline at the end of each line.

So, if a file has 3 lines with no newline at the end of the 3d line, pressing enter would...
10,424
Posted By chlorine
cut -- line with no delimiters
I just discovered, to my dismay, the following part of the cut man page:

-f, --fields=LIST
select only these fields;
also print any line that contains no delimiter character, unless the...
1,243
Posted By chlorine
Hi, I'm not sure where are all the files...
Hi,

I'm not sure where are all the files that you're trying to find exactly (is blah.txt in the same Processed/090624005217 directory than the file you're trying to compare it to?).

But I can...
5,433
Posted By chlorine
Thanks for the answers. I suspected that such a...
Thanks for the answers. I suspected that such a thing as 2| did not exist in any shell, but I thought this was the place to ask to be sure of it!

The idea of creating the pipes myself is pretty...
5,433
Posted By chlorine
Redirect standard error to input of other process, 2| ?
Hello,

I would like to know if there is a shell in which operations such as 2| (redirect standard error of one process to the standard input of another one) exist?
I know it is possible to do it...
25,316
Posted By chlorine
I have no idea if it is feasible to change the...
I have no idea if it is feasible to change the filesize limit.
For sort, the man page should tell you exactly the limitations. If the man page doesn't mention any limitations then there should be...
25,316
Posted By chlorine
I think it's quite possible that you have such a...
I think it's quite possible that you have such a file size limitation.
If I were you I'd try to edit your C code to see if the error occurs before the sort
command is called or not. I'd say it's...
10,213
Posted By chlorine
OK, problem solved. It's not a bug, I just...
OK, problem solved.

It's not a bug, I just misunderstood the behaviour of the -c option of sort:
it does not just check that the file is sorted according to the field specified
by the -k...
9,436
Posted By chlorine
There's surely a more elegant way to do this, but...
There's surely a more elegant way to do this, but if you have only 4 fields
you can do it with cut:

var1=`cut -d',' -f1 $string`
var2=`cut -d',' -f2 $string`

and so on (the cut command cuts a...
10,213
Posted By chlorine
Misunderstanding of sort behavior
Hi everyone,

I use the sort from the 5.3.0 coreutils package. I have a file consisting in 5 fields
separated by a single space, with no leading or trailing blanks.
I want to sort it first...
Showing results 1 to 12 of 12

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