Search Results

Search: Posts Made By: chen.xiao.po
3,083
Posted By itkamaraj
what u tried ? did u read the man page for...
what u tried ?

did u read the man page for sort ?

read about the -n option


$ cat test
34.dat
2.dat
16.dat
107.dat

$ sort -n test
2.dat
16.dat
34.dat
107.dat
1,278
Posted By bartus11
awk '{$3=$2<1?"L":$2>2?"H":"M"}1'...
awk '{$3=$2<1?"L":$2>2?"H":"M"}1' file1.dat
7,977
Posted By Franklin52
Assuming the value "0.00" occurs once in a...
Assuming the value "0.00" occurs once in a record:
awk 'NR==FNR{a[NR]=$0; next}{sub("0.00",a[FNR])}1' file2.pdb file1.pdb
7,977
Posted By itkamaraj
use awk intead of nawk
use awk intead of nawk
1,972
Posted By bartus11
Place this script in the directory containing...
Place this script in the directory containing .dat files, then run it there.#!/usr/bin/perl
chomp(@files=`ls *.dat`);
for $i (@files){
open I, "$i";
$l=$m=$h=0;
while ($n=<I>){
chomp...
11,233
Posted By Scrutinizer
Hi, welcome to the forum. This would be one way...
Hi, welcome to the forum. This would be one way of doing that:
mv "$file" "$(head -1 "$file")"
Showing results 1 to 6 of 6

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