Hi Guru's,
I need to create 3 files with the contents "ABC" using single command.
Iam using:
echo "ABC" > file1.txt file2.txt file3.txt
the above command is not working. pls help me...
With Regards / Ganapati (4 Replies)
Hello,
I come to you asking you a hand on a script that I have performed on a unix server.
I have two files that I have to concatenate in a single line.
The first file is created like this:
mag;code_art;campagne;st_juillet;st_aout;etc
The second file is created like this:... (7 Replies)
Bonjour,
J'ai un petit problème, je voudrais savoir comment faire pour ajouter de l'espace disque sur un NCR version 4 et surtout savoir si ce vdisk contient encore de l'espace disponible
smp001-4 4.0 3.0
Par exemple sur ce vdisk :
/dev/dsk/vdisk15 3940505 3807833 132672 97% /data... (1 Reply)
I have a diff command that does what I want but when comparing large text/log files, it uses up all the memory I have (sometimes over 8gig of memory)
diff file1.txt file2.txt | grep '^<'| awk '{$1="";print $0}' | sed 's/^ *//'
Is there a better more efficient way to find the lines in one file... (5 Replies)
This is appending a column.
My question is fairly simple. I have a program generating data in a form like so:
1 20
2 22
3 23
4 12
5 43
For ever iteration I'm generating this data. I have the basic idea with cut -f 2 fileA.txt | paste -d >> FileB.txt ???? I want FileB.txt to grow, and... (4 Replies)
I want to add/append the info in the following format to my.txt file.
20130702|abcd20130702.txt FN|SN|DOB
I tried the below script but it throws me some exceptions.
<#!/bin/sh
dt = date '+%y%m%d'members;
echo $dt+|+members+$dt;
/usr/bin/awk -f
BEGIN { FS="|"; OFS="|"; } { print... (6 Replies)
Dear all,
I have a huge txt file (DATA.txt) with the following content . From this txt file, I want the following output using some shell script.
Any help is greatly appreciated.
Greetings,
emily
DATA.txt (snippet of the huge text file)
407202849... (2 Replies)
Hello,
I am looking for a shell script that can
1- take as input a variable, like "server.cpu"
2- do a search for that variable in a directory that contains subdirectories.
The search will start at the last subdirectory working up to the top level if I can not find the file
3-... (7 Replies)
Hi dears
i have text file like this:
INPUT.txt
001_1_173 j nuh ]az
001_1_174 j ]esma. nuh ]/.xori
.
.
. and have another text
like this
TABLE.txt
j j
nuh word1... (6 Replies)
Perl::Critic::Policy::ValuesAndExpressions::RequireNumbeUseraContributed PPerl::Critic::Policy::ValuesAndExpressions::RequireNumberSeparators(3pm)NAME
Perl::Critic::Policy::ValuesAndExpressions::RequireNumberSeparators - Write " 141_234_397.0145 " instead of " 141234397.0145 ".
AFFILIATION
This Policy is part of the core Perl::Critic distribution.
DESCRIPTION
Long numbers can be difficult to read. To improve legibility, Perl allows numbers to be split into groups of digits separated by
underscores. This policy requires number sequences of more than three digits to be separated.
$long_int = 123456789; #not ok
$long_int = 123_456_789; #ok
$long_float = 12345678.001; #not ok
$long_float = 12_345_678.001; #ok
CONFIGURATION
The minimum absolute value of numbers that must contain separators can be configured via the "min_value" option. The default is 10,000;
thus, all numbers >= 10,000 and <= -10,000 must have separators. For example:
[ValuesAndExpressions::RequireNumberSeparators]
min_value = 100000 # That's one-hundred-thousand!
NOTES
As it is currently written, this policy only works properly with decimal (base 10) numbers. And it is obviously biased toward Western
notation. I'll try and address those issues in the future.
AUTHOR
Jeffrey Ryan Thalhammer <jeff@imaginative-software.com>
COPYRIGHT
Copyright (c) 2005-2011 Imaginative Software Systems. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license
can be found in the LICENSE file included with this module.
perl v5.14.22012-0Perl::Critic::Policy::ValuesAndExpressions::RequireNumberSeparators(3pm)