Search Results

Search: Posts Made By: ScKaSx
16,888
Posted By ScKaSx
Thanks guys, these work great! Maybe you can...
Thanks guys, these work great!

Maybe you can also shed so light on another thing I am trying to do. In these files I have 3 columns with example data as such:

1 2 3
2 3 4
3 4 ...
16,888
Posted By ScKaSx
Apply 'awk' to all files in a directory or individual files from a command line
Hi All,

I am using the awk command to replace ',' by '\t' (tabs) in a csv file. I would like to apply this to all .csv files in a directory and create .txt files with the tabs.

How would I do...
Forum: Programming 11-03-2010
4,644
Posted By ScKaSx
Thanks for that. I think it does have something...
Thanks for that. I think it does have something to do with the -dev install.

Does anyone know where I can get that for cygwin/x11? I tried to reinstall plotutils from source but got an error. ...
Forum: Programming 11-03-2010
4,644
Posted By ScKaSx
Where are -lplot and -lpng
Hi All,

I have a makefile for a graphing program utilizing the 'plotutils' pacakage on cygwin/x11. However, when I run the make it can't find the following libraries:

-lplot
-lpng

Have the...
1,454
Posted By ScKaSx
quiting x11/xserver from command line
Hi All,

running cygwin/x11 and when I exit last xterm, Xwin is still running and I can't open anymore windows. When I rehit the Xwin executable a new window doesn't open. So I either want to...
17,794
Posted By ScKaSx
The error I get when I try to run from...
The error I get when I try to run from cygwin/bin/ is:

/usr/bin/startxwin: No such file or directory (errno 2): no server "X" in PATH
17,794
Posted By ScKaSx
Cygwin/X11 issues on Windows 7
Hi All,

I recently upgraded to windows 7 and am therefore reinstalling cygwin/x11 after a long time. On XP I would start xterm from the startxwin.bat file. I am experiencing trouble starting...
4,195
Posted By ScKaSx
Cygwin/X install help
Hi All,

Not sure if this is the right forum but hope someone has the answer. I installed Cygwin/X and usually use the 'startxwin.bat' to start xwin. However, I recently updated to Windows 7 and...
9,768
Posted By ScKaSx
Darn, I thought I tried that! Thanks alot...
Darn, I thought I tried that!

Thanks alot its working!

Cheers,
ScKaSx
9,768
Posted By ScKaSx
Thanks for the reply scottn, however what I...
Thanks for the reply scottn,

however what I want to replace is "\begin{}" the thing that is giving me trouble is the "\" backslash which is used for many other things in vi.

Actually the :g//d...
9,768
Posted By ScKaSx
Thanks guys, afew more questions. Just...
Thanks guys, afew more questions.

Just curiousity but what is :g//d (is it part of substitution)

As for the \(..\) that was a regular expression capture that I forgot to take out.

As for...
9,768
Posted By ScKaSx
Substitue 'Special Characters' in VI
Hi All,

I am using LATEX and need to delete all the lines in a file matching:
\begin{work}

I know there are several ways to do this, but I am trying to do it with the substitute command in VI....
16,310
Posted By ScKaSx
rajavu didn't you just remove the ones I wanted...
rajavu didn't you just remove the ones I wanted to keep? I wanted to remove a.txt and KEEP a_[12].txt.

The -v option is just verbose mode, which I thought might work at first as well (thinking of...
16,310
Posted By ScKaSx
inverse remove command
Hi All,

Is there an option for 'rm' to "remove everything but these files"?

For instance if I have:
a.txt <-- I just want to remove this one
a_1.txt
a_2.txt

Is there an option ? for...
2,137
Posted By ScKaSx
Nevermind, it works! I'm a dumbass.
Nevermind, it works! I'm a dumbass.
2,137
Posted By ScKaSx
Rename multiple files lesson
Hi All,

So I found a cool way to change extensions to multiple files with:

for i in *.doc
do
mv $i ${i%.doc}.txt
done

However, what I want to do is move *.txt to *_0hr.txt but the...
13,126
Posted By ScKaSx
Thanks guys, cfajohnson your script works...
Thanks guys,

cfajohnson your script works great. Now i understand that I was just passing literals rather than variables. I just have two questions about the rest of the script:

(1) what does...
13,126
Posted By ScKaSx
Simple 'sed' script for replacing text
Hi All,

So I found a simple sed command to replace text in a file (http://www.labnol.org/internet/design/wordpress-unix-replace-text-multiple-files/1128/):
sed -e 's/OLDtext/NEWtext/' -i file(s)...
4,849
Posted By ScKaSx
Hi All, I was being foolish. Ygor's command...
Hi All,

I was being foolish. Ygor's command works fine, the file I was testing on with numbers was separated by spaces rather than tabs (My Bad!).

I still can't get the cut command to work. ...
4,849
Posted By ScKaSx
Hi, Let's say I have the following file: ...
Hi,

Let's say I have the following file:

5000.00 2.387 0 1704 19.1 27.2 0.350 0.350 0.0031 17 18 0.00
3721.90 2.178 0 1003 ...
4,849
Posted By ScKaSx
Hi Guys, Thanks for the info: Ygor - I...
Hi Guys,

Thanks for the info:

Ygor - I got 'awk' to work on the "a_b_c_d file" but when I try it on a file with numbers it lists all the columns as opposed to just the ones I specify with...
4,849
Posted By ScKaSx
grepping columns
Hi All,

I was recently helped out 'big time' with my last post on changing multiple file formats (thx, scott1256ca and bakunin)!

My new question is about selecting and displaying columns in a...
6,736
Posted By ScKaSx
Hi Guys, Thanks alot! Scott1256ca, the for...
Hi Guys,

Thanks alot! Scott1256ca, the for command worked brillantly! Also thanks for the tutorial on while bakunin!

Cheers,
ScKaSx
6,736
Posted By ScKaSx
Hi Jim and Everyone Else, I should've...
Hi Jim and Everyone Else,

I should've mentioned but I'm using the bash shell so I get errors when I try your solution. What would be the bash equivalent? Also, is there a way to do it with WHILE...
6,736
Posted By ScKaSx
Change multiple filename formats with WHILE
Hi All,

I'm trying to run a simple shell program to change all the files named *.cvs to *.txt. I am trying to use WHILE and this is what I have so far:

This changes the first file from *.cvs...
Showing results 1 to 25 of 25

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