Search Results

Search: Posts Made By: ROFL
10,058
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...
2,750
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.
2,750
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,951
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,802
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,951
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...
2,054
Posted By ROFL
Thank you!
Thank you!
2,054
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?
2,054
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]
2,585
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,802
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 04:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy