Search Results

Search: Posts Made By: uri_crack
2,292
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,292
Posted By albertogarcia
try: sed "150s/.*/HELLO/"...
try:

sed "150s/.*/HELLO/" FICHERO_IN
2,292
Posted By Scrutinizer
sed '150s/.*/HELLO/' infile
sed '150s/.*/HELLO/' infile
1,941
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,714
Posted By agn
$ basename /home/Desktop/example/audio.html .html...
$ basename /home/Desktop/example/audio.html .html
audio
1,630
Posted By kevintse
this would be more succinct. awk '/name/ {print...
this would be more succinct.
awk '/name/ {print NR; exit}' file
1,630
Posted By clx
Try: awk '/name/ {print NR}' file | head -1 ...
Try:

awk '/name/ {print NR}' file | head -1

also,

awk '/name/ {print NR;exit}' file
1,613
Posted By anbu23
awk -v cntr=1 ' /hello/{cntr++} {print...
awk -v cntr=1 ' /hello/{cntr++} {print >"file"cntr}' file
Showing results 1 to 8 of 8

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