Search Results

Search: Posts Made By: cristalp
7,284
Posted By jgt
Use the find command, find ./ -type d -name...
Use the find command,

find ./ -type d -name "dir*" -print
if [ $? -eq 0 ]
then
echo found

There is a problem with this if there are directories within directories.
Use grep,

ls -l...
19,141
Posted By ahamed101
#From 1 to 8 awk 'NR<=8 {print}' file ...
#From 1 to 8
awk 'NR<=8 {print}' file

#Between 5 and 9 inclusive
awk 'NR>=5 && NR<=9 {print}' file
You can use FNR if you have multiple files.
NR is the total number of records for all the...
19,141
Posted By durden_tyler
You have to compare and not assign. $ ...
You have to compare and not assign.


$
$
$ cat f20
This is line 1
This is line 2
This is line 3
This is line 4
This is line 5
This is line 6
This is line 7
This is line 8
This is line...
Showing results 1 to 3 of 3

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