Search Results

Search: Posts Made By: Arun Mishra
2,442
Posted By Scrutinizer
Is your file in DOS format? Try converting it to...
Is your file in DOS format? Try converting it to UNIX format first:
tr -d '\r' < file > newfile
1,215
Posted By Scrutinizer
The first means: The second is a regular...
The first means:

The second is a regular variable assignment. The quotes are not necessary:

Both variables are exported.

To give an example:
$ echo "$var"

$ var=${var-foo}
$ echo "$var"...
1,424
Posted By Scrutinizer
eval is a two-stage operation, it first...
eval is a two-stage operation, it first concatenates the arguments with spaces in between and then executes the resulting command. The backslash is there to keep the first $-sign from being evaluated...
3,991
Posted By balajesuri
#! /bin/bash n=$1 x=`ls -l | wc -l` for...
#! /bin/bash

n=$1
x=`ls -l | wc -l`
for y in $(ls -1t | tail -$(( $x - $n ))); do rm -rf $y; done
Showing results 1 to 4 of 4

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