Search Results

Search: Posts Made By: AlbertGM
5,363
Posted By Corona688
Saving args to a variable like that is going to...
Saving args to a variable like that is going to break down if any of your filenames have spaces or the like.

Just do a little more checking in your input loop:

#!/bin/bash

die() {
...
1,467
Posted By ctsgnb
Please issue an : echo $LIB_HOME as well as...
Please issue an :
echo $LIB_HOME
as well as an :
env | grep LIB_HOME
before running the while statement (this to make sure that the $LIB_HOME variable have a relevant value and exists in your...
1,977
Posted By radoulov
Depends on what you mean by similar ... ...
Depends on what you mean by similar ...
Consider the following:

zsh-4.3.14[t]% printf '\t 42\t \t \n'
42
zsh-4.3.14[t]% printf '\t 42\t \t \n' | awk '{ print length }'
8...
3,897
Posted By Franklin52
Useless Use of Cat...
Useless Use of Cat (http://partmaps.org/era/unix/award.html), this is suffice:

while read first second third rest; do ## Reads each line into separate variables
if [ "$third" == "27" ]; then ...
3,897
Posted By rbatte1
You spend lots of time looping round and...
You spend lots of time looping round and demanding in cut again & again. Each time, you start a new process so the system spends effort there. The awk answer is probably the way to go if you are...
3,897
Posted By Franklin52
Try this: awk '$3==27{print $2}' file
Try this:
awk '$3==27{print $2}' file
3,981
Posted By methyl
Is "ls" and alias ? Try the full path...
Is "ls" and alias ?
Try the full path /usr/bin/ls .
3,981
Posted By zaxxon
Looks odd to me too - did you check it on another...
Looks odd to me too - did you check it on another (similar) box?
Showing results 1 to 8 of 8

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