Search Results

Search: Posts Made By: albertogarcia
4,402
Posted By albertogarcia
awk '{printf "%-12s%-12s%-12s%-7s\n", $1" "$2,$3"...
awk '{printf "%-12s%-12s%-12s%-7s\n", $1" "$2,$3" "$4,$5" "$6,$7}' IN_FILE
2,277
Posted By albertogarcia
Hello, I recommend you read: Sed - An...
Hello,

I recommend you read: Sed - An Introduction and Tutorial (http://www.grymoire.com/Unix/Sed.html)

.* is:
. = any character
* = the "anterior" repeated any times

so, .* is "any...
2,277
Posted By albertogarcia
try: sed "150s/.*/HELLO/"...
try:

sed "150s/.*/HELLO/" FICHERO_IN
1,932
Posted By albertogarcia
Hello again! ..:) try with this: ...
Hello again! ..:)

try with this:
contador=0
salir=0
while [ salir -eq 0 ]
do
if [ -f fichero$contador ]
then
echo "fichero fichero$contador existe"
...
1,888
Posted By albertogarcia
Hi, I think that when you do: for log in...
Hi,

I think that when you do:
for log in "${dir_array[@]}".log

the las log has the .log suffix.

Try with:

for log in "${dir_array[@]}"
do
log=$log.log
...and the rest
3,554
Posted By albertogarcia
Hi, try with: awk -F";" '{if...
Hi,

try with:

awk -F";" '{if ($1>1272904749 && $1<1272905399) print}' IN_FILE
2,696
Posted By albertogarcia
Hi, if then number of fields are always 4...
Hi,
if then number of fields are always 4 (with . as field separator) maybe this would be a solution:


echo $string | awk 'BEGIN{FS="."} {print $1"."$2"."$3".D"}'


if the number of fields...
2,706
Posted By albertogarcia
I'll try to explain it (in english). the -v...
I'll try to explain it (in english).

the -v options shows lines that doesn't match the expresion.

"\^" is the expresion, I have considered the ^ character as the only "special" character in...
Showing results 1 to 8 of 8

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