Search Results

Search: Posts Made By: c_lady
1,380
Posted By c_lady
Could you please let me know how do you know that...
Could you please let me know how do you know that it will give ca 10%, for example; if I know the number of rows before hand; how I should play with the

(rand() <= .01)

parameter, which I...
1,380
Posted By c_lady
A script that processes a sample of a file
hi all, I need some help in regards of how to process just a sample from a large .txt file

I have a large file from many new lines (say above 200.000 new lines), I need a script that process just...
3,018
Posted By c_lady
Script to edit a text file
hi, could someone share a short script that would process a .txt file and do the following, for example the text file has this form

0:1.0 1:1.0 2:2.0 3:3.0 4:4.0 5:5.0 6:6.0 7:7.0 8:8.0 ......
2,107
Posted By c_lady
Thanks a lot, you're a life saver! I may get to...
Thanks a lot, you're a life saver! I may get to this post again, I hope you will find time to help me. Cheers!
2,107
Posted By c_lady
I use Mac OS X, and if type nawk then -> -bash:...
I use Mac OS X, and if type nawk then -> -bash: nawk: command not found

if I type awk, then:

usage: awk [-F fs] [-v var=value] [-f progfile | 'prog'] [file ...]
2,107
Posted By c_lady
I save the script in Desktop as script.awk and...
I save the script in Desktop as script.awk and then try to execute it, but I get an error like:

awk -f script.awk
awk: syntax error at source line 1 source file script.awk
context is
awk >>>...
2,107
Posted By c_lady
Thanks! But one more thing... after deleting: ...
Thanks! But one more thing... after deleting:

B-1 = {http://www.google.com}}

I would like the last brackets to be taken to the previous row, and the comma in the previous row to be deleted......
2,107
Posted By c_lady
Data: @article{Test1:2011aa, Abs =...
Data:

@article{Test1:2011aa,
Abs = {Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,...
2,107
Posted By c_lady
Delete specific parts in a .txt file
Hi all,

I desperately need a small script which deletes everything in a particular .txt file when "Abs = {" appears till "},", and also when "B-1 = {" appears till "},"

I would like all the...
1,679
Posted By c_lady
how to quit or exit from WMToggle
I want directly to move from WMToggle to bash, which command to type?

Now I need to type 3 times, :q! etc. any help? its very annoying to time something 3 times continuously :(
Forum: OS X (Apple) 03-28-2011
25,156
Posted By c_lady
Since this was one month ago ... I don't know as...
Since this was one month ago ... I don't know as well! But thank you... looks pretty cool this suggestions
Forum: OS X (Apple) 02-24-2011
25,156
Posted By c_lady
Copy entire line in bash (terminal) - keyboard shortcut
how can I do that?

I can paste a line with ctrl+p; but I dont know how to copy it?

ctrl+y - just deletes etc.
Forum: OS X (Apple) 01-29-2011
2,080
Posted By c_lady
directories which start with dot (.) as .ssh .vim etc?
Why this directories start with . and not without . ?

I am very curious :(
Forum: OS X (Apple) 01-28-2011
1,493
Posted By c_lady
how to open ~/.vim/ in 10.6
I have MacOSX 10.6, I cannot open this more than 24hours, Google is also not helpful.

pubxx-xxx:~ xxx$ cd ~/.vim
-bash: cd: /Users/xxx/.vim: No such file or directory
pubxx-xxx:~ xxx$

PLEASE...
Forum: OS X (Apple) 01-28-2011
3,261
Posted By c_lady
pubxx-xxx:~ xxx$ cd ~/.vim -bash: cd:...
pubxx-xxx:~ xxx$ cd ~/.vim
-bash: cd: /Users/xxx/.vim: No such file or directory
pubxx-xxx:~ xxx$

:( I cannot open this directory in MacOSX since morning :(
Forum: OS X (Apple) 01-28-2011
3,261
Posted By c_lady
vim and MacVim in MacOSX
Hi guys,

I just installed a plugin (script) at my MacVim -> MacVim.app/Contents/Resources etc. and the plug is installed! However when I load other files with vim which came with the MacOSX (by...
1,610
Posted By c_lady
it's ok to learn awk and not learning sed?
please reflect... since I am beginner and dont know what to do

---------- Post updated at 04:25 AM ---------- Previous update was at 04:19 AM ----------

I am aware that awk is programming...
1,749
Posted By c_lady
epstopdf etc. commands
guys I would like to have more commands (as epstopdf) as this e.g. jpgtogif etc. how can I install them? where I need to have a look on it... I use MacOSX
2,851
Posted By c_lady
the difference is?
scp 123.txt user1@computer1.com:..//john_x1/lab
scp 123.txt user1@computer1.com:../john_x1/lab

What is the difference between single and slash here and in general?

How to copy if we have a...
Forum: OS X (Apple) 08-22-2010
1,918
Posted By c_lady
iTerm (http://iterm.sourceforge.net/) You're...
iTerm (http://iterm.sourceforge.net/)

You're right! I agree.
Forum: OS X (Apple) 08-21-2010
1,918
Posted By c_lady
keyboard problem how to insert --> {} \
I have MACOSX Leoparad and MacBook Pro but I am unable to insert the above letters when I am in terminal any help please? e.g. to insert them I need to press alt+shift+) == } but if I do so pressing...
16,460
Posted By c_lady
thank you both!
thank you both!
16,460
Posted By c_lady
frans
dear frans, could you please suggest me where I should start to be able to write short scripts? I knew a bit of C (pointers and structures included)... could you suggest me some workflow or even...
16,460
Posted By c_lady
frans
could frans or someone else explain his code? ... I am curious to learn some scripting language but I am very poor on it :( but I can see that most of you use awk (although frans used bash)... I am...
16,460
Posted By c_lady
Compare lines within a file
could someone write a short script which is able to take a text file input and compare lines 1 and 2, 3 and 4, 5 and 6 ... ... until the end of the file. And to prompt if the lines are not equal.
...
Showing results 1 to 25 of 27

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