Search Results

Search: Posts Made By: jasahasch
1,476
Posted By jasahasch
src from [url]http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-7.html[/url]
You can use a WHILE loop like this ...

COUNTER=0; while [ $COUNTER -lt 6 ]; do; echo "Oh Nooo... The counter is $COUNTER. I need to stop the iteration and jump out of the loop"; let...
3,176
Posted By jasahasch
I like my code to run in /tmp file when I am...
I like my code to run in /tmp file when I am using a static files.

#!/bin/bash
for i in /home/*/Desktop/test.txt; do cp $i /tmp/test.txt && echo "Usage: $i...
8,877
Posted By jasahasch
Try this ... for i in *.dsx; do grep `help`...
Try this ...

for i in *.dsx; do grep `help` "$i" ; cp "$i" Dateline_$1.txt ; done

The idea is to put grep information into varible then copy the variable to the txt file
Please use CODE tags...
Showing results 1 to 3 of 3

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