Search Results

Search: Posts Made By: elamurugu
11,250
Posted By jim mcnamara
try cut. cut -c2-39,44- filename
try cut.

cut -c2-39,44- filename
2,600
Posted By Chubler_XL
awk -vSTART=899 '$0=START++"\t"$0'...
awk -vSTART=899 '$0=START++"\t"$0' infile
5,261
Posted By Scrutinizer
The use of eval to execute input data is...
The use of eval to execute input data is dangerous stuff because it allows a malicious user with access to the data file to execute any code as the user who executes the script.

Alternative shell...
5,320
Posted By rdcwayx
sed 's/[[:graph:]]*=//g' want.dat awk '{for...
sed 's/[[:graph:]]*=//g' want.dat

awk '{for (i=1;i<=NF;i++) gsub(/.*=/,"",$i)}1' OFS="\t" want.dat
2,600
Posted By Scrutinizer
awk '$0=NR"\t"$0' infile
awk '$0=NR"\t"$0' infile
5,261
Posted By frans
#!/bin/bash while IFS='&' read -a L do ...
#!/bin/bash
while IFS='&' read -a L
do
for i in ${!L[@]}; do
eval "${L[$i]}"
done
for V in poc ooc mjv omj mov ps rel bod oxi ozn lang loc
do
echo -en "$V=${!V}\t"
...
1,053
Posted By cabrao
If you just want to count the number of...
If you just want to count the number of occurences try this:
$ awk '/poc=4060.*loc=JPN$/{++c}END{print c}' file

or
$ cat pattern.txt
poc=4060.*loc=JPN

$ grep -c -f pattern.txt file
3,911
Posted By Corona688
This will check all files in the current...
This will check all files in the current directory. The sed is to add a newline after the word, to guarantee it never happens more than once per line, so that grep can count them properly. If you...
Showing results 1 to 8 of 8

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