Search Results

Search: Posts Made By: ROFL
9,622
Posted By ROFL
CShell if statement
If I want to compare two string variables in csh how do I correctly implement it. For example I'm checking if on cmdln the $1 == -r do something.

if($1 == -r) then
code....


However when I...
1,798
Posted By ROFL
Thank you very much. Yes, I wasn't aware you...
Thank you very much. Yes, I wasn't aware you could call commands directly - it is the first shell script I've ever written you see and my lecturer is useless.
1,798
Posted By ROFL
Loosing formatting when echoing an awk script
1. The problem statement, all variables and given/known data:
When I echo out the output of my awk script I loose the formatting
that I set in my awk script (it should be in a table format).

...
1,644
Posted By ROFL
Thanks a lot for the useful reply but I have to...
Thanks a lot for the useful reply but I have to use the C-Shell as it's a piece of coursework. Any other suggestions?
2,143
Posted By ROFL
I managed to fix it before your post, but thanks...
I managed to fix it before your post, but thanks anyway, it's a much shorter solution.
1,644
Posted By ROFL
CShell Syntax Problem
Hi guys,

Basically I'm trying to write a CShell script that calls an awk script on a given directory (given in command-line). I keep getting a syntax error with my code though:


#!/bin/csh...
1,868
Posted By ROFL
Thank you!
Thank you!
1,868
Posted By ROFL
No, sorry, I meant /html$/ i think. That means a...
No, sorry, I meant /html$/ i think. That means a string ending in html right?
1,868
Posted By ROFL
Test Regular Expressions on Arrays in Awk
How would I test for a suffix on an element in an array?

e.g. testing for /$html/ of an element array[x]
1,935
Posted By ROFL
AWK script to detect webpages from file
Hi guys I'm very new to unix and I have to create an awk script that detects webpage addresses from a file/webpage and outputs how many times each webpage was detected.e.g. if my file was:

(Note:...
2,143
Posted By ROFL
AWK script to detect webpages from file
Hi guys I'm very new to unix and I have to create an awk script that detects webpage addresses from a file/webpage and outputs how many times each webpage was detected.e.g. if my file was:
...
Showing results 1 to 11 of 11

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