Search Results

Search: Posts Made By: jdsignature88
1,330
Posted By daPeach
oh, no!! please, don't test a bash script calling...
oh, no!! please, don't test a bash script calling it with sh anyscriptit'll use sh as the interpreter
call it the proper way./anyscriptlet the shebang do its job
1,330
Posted By daPeach
#!/bin/bash #set deli = '|' deli="|" ...
#!/bin/bash

#set deli = '|'
deli="|"
#set ppattern = ""
#foreach i(`cat pattern`)
for i in $(<pattern)
#set ppattern = "$i$deli$ppattern"
do ppattern="$i$deli$ppattern"
echo $ppattern
#end...
1,879
Posted By Franklin52
Use the mv command with one of the examples like:...
Use the mv command with one of the examples like:
egrep 'ccc|ddd' test.txt > another_file && mv another_file test.txt
1,777
Posted By ygemici
try this set ff=$rr$rr1
try this

set ff=$rr$rr1
2,517
Posted By guruprasadpr
Hi Put backticks: set rr=`echo $tt | cut...
Hi
Put backticks:

set rr=`echo $tt | cut -d”_” -f1`

Guru.
Showing results 1 to 5 of 5

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