I wonder if the script below is possible to write somehow more efficiently. It seems to me the problem is very common..
CreateFolders() # parameter: name of file with relative path with regard to directory $project_root
{
echo $1 | awk '{ n=split($1, array, "/");
... (2 Replies)
Good morning,
Can someone help to color a figure in columns if its exceeding a threshold using shell script .
ex. I have file contains 5 columns showing a value in % I need to show the value in red if it exceed 90 %
Appreciate your help (3 Replies)
Hi
#Testing for file existence
if ; then
echo 'SCHOOL data is available for processing'
else
echo 'SCHOOL DATA IS NOT AVAILABLE FOR PROCESSING'
:
i wrote a script, where it begins by checking if file exists or not.
If it exists, it truncates the database... (2 Replies)
I am trying to find case insensitive file names and then replace that particular file with other name.
if
then
ls | grep -i "update" | xargs -I {} mv {} LineItems.csv
echo "File moved from *update*"
elif
then
ls | grep -i "priority" | xargs -I {} mv {} ... (1 Reply)
Hello,
I am creating a file with all the source folders included in my git branch, when i grep for the used source, i found source included as relative path instead of absolute path, how can convert relative path to absolute path without changing directory to that folder and using readlink -f ? ... (4 Replies)
i have make file which i try to make them generic
but it keeps to compline it missing include directory
this is the makefile :
CXX=g++
CPPFAGS= -Wall -O0 -g -std=c++14
INCLUDES = -I/home/vagrant/libuv/include -Isrc
LIBS_DIRS = -L/home/vagrant/libuv/build
LDFLAGS=... (7 Replies)
Discussion started by: umen
7 Replies
LEARN ABOUT OSX
talagent
TALAGENT(8) BSD System Manager's Manual TALAGENT(8)NAME
talagent -- helper agent for the Transparent App Lifecycle feature.
SYNOPSIS
talagent [command [arguments]]
DESCRIPTION
The talagent daemon provides services related to the Transparent App Lifecycle feature. talagent may also be run manually as a command line
tool to output information about persistent state.
The options are as follows:
-help
Outputs usage information.
-dump bundle_id_fragment
Outputs the persistent state of an application whose bundle ID contains the given fragment, case insensitive ("textedit" for example).
You may also pass a path directly to the app's persistent state directory, usually in ~/Library/Saved Application State.
-launch bundle_id
This launches an app (in this case, TextEdit) in a manner approximating how apps get launched at login. You can pass either a bundle ID
fragment or a path to an app. The app is maintained stopped until you hit return in the launching window (or until it receives SIGCONT).
This is the easiest way to test the login scenario without needing to log in.
-casinfo [ASN]
With no arguments, outputs summary information about all apps. With one argument (an ASN), outputs the CAS record for that app.
-memory_pressure
Simulates memory pressure, which may cause apps that support automatic termination to exit. This does not actually allocate any memory.
-refresh_encryption
Rotates the bitmap encryption key, and attempts to cross-encrypt all existing window bitmaps under the new key. This is done periodically
by talagent.
HISTORY
First appeared in Mac OS X 10.7
Mac OS X September 1, 2010 Mac OS X