Search Results

Search: Posts Made By: NYankz
2,963
Posted By NYankz
i'm still learning too, thx for the tip, don't...
i'm still learning too, thx for the tip, don't need to be rude though.
6,537
Posted By NYankz
try putting the command in an executable file and...
try putting the command in an executable file and alias the command as running the file?
2,963
Posted By NYankz
Here try this: cat file.txt|wc -l| awk...
Here try this:
cat file.txt|wc -l| awk '{$1=$1-1;system("head -"$1" file.txt")}'| awk '{printf("%c%s%c\n",39,$1,39)}'; tail -1 file.txt | awk '{printf("%c%s%c);",39,$1,39)}'
9,850
Posted By NYankz
ls -1R|grep :$|sed 's/:$//g'| awk '{print...
ls -1R|grep :$|sed 's/:$//g'| awk '{print $1"/*"}'|xargs cat > bigfile


ls -1R #recursively searches all files in all subdirectories

grep :$ #will show all lines which end in :, this is a list...
9,850
Posted By NYankz
ya i keep forgeting you don't get output from awk...
ya i keep forgeting you don't get output from awk '{system("cat"w/e)}' i edited my post
9,850
Posted By NYankz
hmm... lemme give it a shot: you can combine...
hmm... lemme give it a shot:
you can combine the files like this

ls -1R|grep :$|sed 's/:$//g'| awk '{print $1"/*"}'|xargs cat > bigfile

edit:
changed output method

as for removing, i'd...
5,295
Posted By NYankz
did you try putting in the full path for the file?
did you try putting in the full path for the file?
4,216
Posted By NYankz
not sure how your timestamp is formatted but you...
not sure how your timestamp is formatted but you can:

grep -n timestamp file| head -1 | awk '{FS=":"; system("more +"$1" file|cat")}'

edit:
hmm i tried this on a test file, it's definately...
4,278
Posted By NYankz
If you only want to change the value if it's an...
If you only want to change the value if it's an invalid date on the spots you listed:

awk '{FS=OFS=","} $5=="0"{$5=""} $8=="0"{$8=""} $9=="0"{$9=""} $19=="0"{$19=""} $20=="0"{$20=""}...
5,295
Posted By NYankz
not sure why, you should also be able to cat the...
not sure why, you should also be able to cat the file first to make sure it displays:

cat file.html |grep href | sed -e 's/<[^>]*>//g' -e 's/[0-9]*_/ /g' -e 's/[0-9]..*\] //' -e 's/\(.*\)\..*/\1/'...
7,332
Posted By NYankz
more +n file|head -1
more +n file|head -1
5,295
Posted By NYankz
Try: sed 's/<[^>]*>//g' file.html edit: ...
Try:
sed 's/<[^>]*>//g' file.html

edit:
This should work
grep href webfile.html|sed -e 's/<[^>]*>//g' -e 's/[0-9]*_/ /g' -e 's/[0-9]..*\] //' -e 's/\(.*\)\..*/\1/'
Showing results 1 to 12 of 12

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